IBM Support

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

Technote (troubleshooting)


Problem(Abstract)

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.

Document information

More support for: Rational ClearCase
Cleartool

Software version: 7.0, 2002.05.00, 2003.06.00

Operating system(s): AIX, HP-UX, IRIX, Linux, Solaris

Reference #: 1259802

Modified date: 26 October 2010