Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
716 views
in Technique[技术] by (71.8m points)

clearcase ucm - While creting a view I got this error; cleartool: Error: Failed to record hostname in storage directory

I am creating a view and I got this error cleartool: Error: Failed to record hostname in storage directory . Check that root or the ClearCase administrators group has permission to write to this directory.

I tried all the possible troubleshoot using online help and others, but no luck. Can anyone help?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can check the technote "Registering a VOB or creating a new View or VOB reports error: Failed to record hostname"

View Tool

Error creating view - '<view-tag>'

Fail to record hostname " HOST " in storage directory "<path to view storage>. 
Check that root or the ClearCase administrators group has permission to write to 
this directory.
Unable to create view "<global path to view storage>".

http://www-01.ibm.com/support/docview.wss?uid=swg21234135&aid=1

Cause

The cause of the error ultimately stems from the inability of ClearCase to successfully record the hostname in the .hostname file located in the storage directory of the VOB or view.

In addition of the various solutions, check if that error persists on different clients, for different users.
If not, it is likely linked to your profile.
Check for instance your CLEARCASE_PRIMARY_GROUP and your credmap (credential mapping).


In my case, it was always a case of applying the right fix_prot to the view/vob storage.
For view storage, it was that exact sequence:

alias sfp sudo /usr/atria/etc/utils/fix_prot

sfp -force -rec -chown <owner> -chgrp <ClearCaseUsers> -chmod 775 /path/to/viewStorage/yourView.vws
sfp -force -root -chown <owner> -chgrp <ClearCaseUsers> /path/to/viewStorage/yourView.vws

Replace <owner> and <ClearCaseUsers> by the right owner and group.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...