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>".
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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…