IBM Support

Checkout fails with error: Unable to rename: Read-only file system

Troubleshooting


Problem

This technote details why the error, cleartool: Error: Checked out version, but could not copy data to "makefile" in view: File exists, occurs when trying to checkout an element version in an IBM® Rational® ClearCase® view.

Symptom


Attempts to checkout an element version to a view reports warnings and fails with the following error:

% cleartool co -nc makefile
cleartool: Warning: Unable to rename "makefile" to "makefile.keep": Read-only file system.
cleartool: Error: Checked out version, but could not copy data to "makefile" in view: File exists.
Correct the condition, then uncheckout and re-checkout the element.
cleartool: Warning: Copied checked-out version data to "makefile.checkedout".
cleartool: Warning: Checked-out version is not selected by view.
Checked out "makefile" from version "/main/branch/0".

Cause


The config spec for the view is missing the CHECKEDOUT rule.

Resolving The Problem



The CHECKEDOUT rule must be the first rule in the config spec, which is the default when a new view is created.

Edit the views config spec to add CHECKEDOUT as the first rule, like:

> cleartool edcs -tag admin_vu
element * CHECKEDOUT
#element * /main/dev/LATEST
element * /main/LATEST #-mkbranch dev

For more information on config_spec, refer to IBM Rational ClearCase Command Reference, or run cleartool man config_spec.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Cleartool","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"2002.05.00;2003.06.00;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21259802