Address already in use
"Device Server Service is already running
"Message similar to the following is seen when trying to restart the Smarts NCM vcmaster service:
[<USERNAME>@<HOSTNAME> conf]# service voyence restart
Stopping Device Server Service: [ OK ]
Starting Device Server Service: Device Service is already started, stop the other process first before starting the services: Address already in use
[FAILED]
NCM - 10.1.x
Restarting the Smarts NCM vcmaster/voyence can sometimes fail to restart the other Smarts NCM services because a few processes are running in backend. When this happens, a message similar to the following will be seen:
[<USERNAME>@<HOSTNAME> conf]# service voyence restart
Stopping Device Server Service: [ OK ]
Starting Device Server Service: Device Service is already started, stop the other process first before starting the services: Address already in use
[FAILED]
netstat -anp | grep commmgrd | grep LISTEN
netstat -anp | grep autodiscd | grep LISTEN
netstat -anp | grep syssyncd | grep LISTEN
netstat -anp | grep evdispatchd | grep LISTEN
netstat -anp | grep cfgmgrd | grep LISTEN
netstat -anp | grep voyenced | grep LISTEN
ps -auxx | grep -i NCM
to find all services that are related to NCM and running in background.kill -9 <PID noted from Step1>
systemctl start vcmaster
for NCM 10.1.8 and above service vcmaster start
for rest of the versions like NCM 10.1.6 and below.
The following three processes should not be running and their associated ports should not be used by any other processes:
ps -elf | grep commmgrd
ps -elf | grep autodiscd
ps -elf | grep syssyncd
If any other processes are using these ports, find the associated processes using the following command:
netstat -anp | grep <999>
By default, the voyence service uses ports 9991-9998. Some third-party agents overlap on these ports, preventing the voyence service from starting.
Kill any process has been found to be using the specified ports. Once all processes have been stopped, you can start the service.