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.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21259802