The vob_object registry specifies incorrect hostname

Problem
This technote explains causes for the error The vob_object registry for "/vobstorage/vob.vbs" specifies incorrect hostname for server and provides solutions to resolve the issue.
Cause

The following errors are reported in the logs:

Error message from albd_server_log:

********************************
05/18/04 11:17:47 albd_server(236): Ok: Server vobrpc_server(21827) exited with status 1
05/18/04 11:17:47 albd_server(236): Error: Server vobrpc_server (pid=21827) on "
/vobstorage/vob.vbs" died on startup; marking it as "down".

Error message from vobrpc_server_log:

**********************************
05/18/04 11:15:59 vobrpc_server(21751): Error: The vob_object registry for "
/vobstorage/vob.vbs" specifies incorrect hostname for server; expected hostname: host1 actual hostname: myhost. Use cleartool unregister/register -vob to correct.

Error message from vob_log:

********************************
05/18/04 11:16:59 vob_server(21768): Error: The vob_object registry for "
/vobstorage/vob.vbs" specifies incorrect hostname for server; expected hostname: host1 actual hostname: myhost. Use cleartool unregister/register -vob to correct.

A VOB was moved from one server to another.

The new server was using a different registry server, but the VOB was not properly registered.

Cause 2


The following error is reported when running the db_loader:

db_loader: Warning: Database not found in local registry for cmd: "". Using client path /export/home/joe/vobstore/db_loader_vob.vbs/db
db_loader: Error: The vob_object registry for "/export/home/joe/vobstore/db_loader_vob.vbs/db/.." specifies incorrect hostname for server; expected hostname:
old-host actual hostname: . Use cleartool unregister/register -vob to correct.
db_loader: Error: Process not running on registry specified hostname ( ┐⌠╕)
db_loader: Error: Cannot open database in '/export/home/joe/vobstore/db_loade
r_vob.vbs/db': db_loader: Error: Error from libdb (1)

The VOB database was previously dumped (db_dumper) and then the VOB storage directory was moved to a new host. The loader failed in it's attempt at validating the hostname which was still set to the old host.

Solution

The VOB needs to be correctly registered with the new registry server.

To correct the errors, do one of the following:

A. If the VOB is already registered (incorrectly):

    • cleartool register -replace -vob

      OR
    • cleartool unregister and cleartool register -vob

    Example:

    cleartool register -replace -vob /vobstorage/vob.vbs

    OR

    cleartool unregister -vob /vobstorage/vob.vbs

    cleartool register -vob /vobstorage/vob.vbs

    Note: Restart ClearCase services on all clients that used to point to this VOB in the old location.

B. If the VOB is not registered:

    • cleartool register -vob /vobstorage/vob.vbs


For further information about the cleartool register | unregister commands refer to the ClearCase command reference manual or run cleartool man register | unregister from the command line.

Note: The hostname of the VOB server is stored in the .hostname file that is located in the VOB storage directory (such as /vobstorage/vob.vbs/.hostname in the above example). The .hostname file can be modified directly (using caution as not to corrupt the file) to identify the correct hostname if the above solutions don't resolve the issue.

No comments:

Post a Comment