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

烂漫一生 提交于 2019-11-29 12:35:43
VonC

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.

On creating a view, other common problems for remotely stored views are:

1) The "clearcase" group on the client and server do not point to the same group. You would need to get clearbug2's of both hosts and compare the albd credentials and the host data in the registry data in the "clearcase_info" directory of the .zip file.

2) You are attempting to create a Unix-hosted view from a Windows client.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!