Getting error while updating the view

2019-04-13 00:33发布

问题:

I am getting below error while updating the view.

Problems were encountered while retrieving view synchronization and data.

Clearcase CM server error: Unable to access "vob name" : unknown error in vob
Clearcase CM server error: Error 2 config spec load rule problems encountered 

How to troubleshoot that error message?

回答1:

You need to access the logs (both locally or on the server) to know more.
It used to be cleartool getlog (ClearCase 7.x, even for CC 8.x)

cleartool: Error: Checkout is currently disabled for element "element_name".
Its config spec rule information is currently unavailable due to either an aborted update or an update in progress

That is similar to an older CC (7.0.x) described in this technote:

Possible cause for symptom 1:

If an update, rebase or deliver operation is not currently in progress for the view in question, the error can often be attributed to the view being out of sync with the stream.

Try:

cd /path/to/snapshot/view
cleartool setcs -stream

Possible cause for symptom 2:

Hijacked nocheckout means that the version hijacked in the view is no longer the version the config spec selects from the VOB.

  1. Rename the hijacked file and update the view.
  2. Check out the version from which the file was hijacked.
  3. Copy the hijacked file over the checked-out version.
  4. Merge from the current version to the checked-out version.
  5. The version can now be checked in.

Possible cause for symptom 3:

Per the error message explanation noted above, the problem may be caused by an issue with the view's config spec or an aborted or incomplete view update.

Try:

cd /path/to/snapshot/view
cleartool setcs -current

(original answer)

It can be a right issue, as illustrated by this thread.

Check group permissions on user and on those two VOBs.
Do you rely on the CLEARCASE_PRIMARY_GROUP environment variable?
If so, check the value of the user performing the update.

Compare the rights of the vob with the ones for your current snapshot view that you are trying to update:

cd /path/to/snapshot/view
cleartool lsview -l -full -pro -cview

If the CLEARCASE_PRIMARY_GROUP is not set properly, it is easier to:

  • set it to the right group (ie the primary group of the vob, or one of the secondary groups)
  • delete and recreate your view.
    (if you do not want to delete/recreate your view, you can fix_prot it)


标签: clearcase