Unable to add Managed Host "ERROR: Could not connect to server (err=167)" using gendeploy

book

Article ID: 100051127

calendar_today

Updated On:

Description

Error Message

When trying to run the gendeploy script on the host, it would initiate as below

Checking if MH version [7.4.0.801] is same or greater than as that of least supported MH version [5.0.0.0]Veritas InfoScale Operations Manager Managed Host Deployment
Initializing

Then throw up the below error

ERROR: Could not connect to server (err=167)
Cannot contact central server on CMS
Managed host cannot be configured


The error.log would report below at \ProgramData\Veritas\VRTSsfmh\logs(Windows)

OR

/var/opt/VRTSsfmh/logs(Unix)

[error] [client -] "-" xprtld 7.4.0.200 started on port(s) 5634, serving /opt/VRTSsfmh/web
[error] [client -] "-" Terminating all spawned processes
[error] [client -] "-" xprtld 7.4.0.801 started on port(s) 5634, serving /opt/VRTSsfmh/web
[error] [client -] "-" 5 requests 0.00 Mb in 0.00 Mb out. Exit on signal 15
[error] [client -] "-" xprtld 7.4.0.801 started on port(s) 5634, serving /opt/VRTSsfmh/web

readline() on closed filehandle HANDLE at /opt/VRTSsfmh/lib/modules/VRTS/OS.pm line 851.
Use of uninitialized value $lang in string ne at /opt/VRTSsfmh/lib/modules/VRTS/OS.pm line 863.
/opt/VRTSsfmh/bin/xdbadm: error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory

The vxdeploy.log would report entries similar to below at ProgramData\Veritas\VRTSsfmh\logs (Windows)

OR /var/opt/VRTSsfmh/logs(Unix)

[error] 29367 vxdeploy: query_table: Query select * from HABDBSYNC.SF_VIEW_ADD_ON_R; failed: 32512:
[error] 29367 vxdeploy: list_store: Failed to query DB


 

Cause

This issue is caused when there is an issue with the network/port communication between the Managed Host (to be added) and the Veritas Operation Manager Management Server (CMS)

 

Resolution

1) Run getvitals query against both (CMS & MH) to ensure communication for port 5634 is open

For UNIX/LINUX, run below
    a) From MH: /opt/VRTSsfmh/bin/xprtlc -u "root" -l https://CMS:5634/world/getvitals
    b) From CMS: /opt/VRTSsfmh/bin/xprtlc -u "root" -l https://MH:5634/world/getvitals

For Windows environment, run below

a) From MH: C:\Program Files\Veritas\VRTSsfmh\bin>xprtlc.exe -l https://CMS:5634/world/getvitals

 b) From CMS: C:\Program Files\Veritas\VRTSsfmh\bin>xprtlc.exe -l  https://MH:5634/world/getvitals

2) Telnet against both the CMS and MH for port 5634

If any issues with bi-directional communication for port 5634 are noticed, then they need to be addressed first..

Post resolution, repeat the above steps again and confirm it returns a valid output. If yes, then run the gendeploy script and it should now be able to add the host.

Issue/Introduction

When attempting to add an new MH (Windows or Unix) using the gendeploy script, the task would report a failure.