IdleSun's Weblog

October 18, 2009

CCRC – How to fix “undo checkout” failure

Filed under: Source Control — idlesun @ 7:13 pm

As far as my experience is concerned, CCRC (ClearCase Remote Client) is not that stable on Windows (It was much more stable on Linux).
One of the problems I faced was the “undo checkout” failure with the “Unable to find checked out version” error. I guess it happened because of some network issue when I tried undo initially. Again, my guess is that undoing was done on server side but it was not reflected properly on my CCRC client.
This ghost checked-out file is a real problem because you can not update or check in anymore. Luckily, I could find a solution myself.

The solution that I found involves manual editing of “.copyarea.db” file in the directory where that checked-out file is. So do it at your own judgment and risk. Here is the procedure:

  1. Make “.copyarea.db” file writable and open it using a text edit of your choice.
  2. Find the line with the problematic file name and modify the number in the end of the line from ‘1’ to ‘0’.
  3. Save modified “.copyarea.db” file and change back it to ‘read-only’.
  4. Open CCRC and find that the file is not marked as ‘checked-out’ anymore. (It may be marked as ‘hijacked’ already. Then skip next step)
  5. Do “update resource” on the file. And find that file turns into ‘hijacked’ state.
  6. Do “undo hijack”. Once it is done with no problem, the file state is synched and good to go.

1 Comment »

  1. Thank you so much for posting this. I have been trying to figure out what each value in .copyarea.db file mean, but couldn’t get any good documentation on it. But mostly, I wanted to tweak it to resolve this issue. This was a life saver!!

    Comment by Milind Joshi — December 15, 2009 @ 6:49 pm | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: