PSMP ADBridge service error. ADBAP064E TCP Server initialization failed (Error: Failed to bind socket), 98) is seen in the ADBConsole.log
Symptom
The PSMP ADBridge service fails to start on the PSMP server and the below line can be seen in the ADBconsole.log:
ADBAP037E PSMP-ADBridge has been terminated. (Diagnostic information: ADBAP064E TCP Server initialization failed (Error: Failed to bind socket), 98)
Environment
11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted) PSMP PSMP Crashing
Cause
This typically indicates something else is occupying the port 19923 which ADBridge is using is occupied by another process.
Resolution
Following this article and running the 'netstat -na' command you may find the port is in a 'Listening' state even though the psmpsrv had been stopped:
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/12.6/en/Content/PAS%20INST/Installing-the-PSMP.htm#TCPport19923isusedbyanotherprocessonthelocalmachine
This indicates something else is currently occupying the port but the port used by the ADBridge service cannot be changed.
You can then run:
sudo netstat -tulnp | grep 19923
or
ps -ef | grep adb
This should reveal the PID and Process Name of the service running on that port, e.g. '2949343/psmpadbserv'
In this case we found it to be a zombie instance of the PSMP ADBridge service itself. This can be stopped by running:
kill -9 <PID_number_from_running_command_above>
Then restarting the psmp service:
service psmpsrv restart
The running service can then be confirmed using the command below:
systemctl status psmpsvr*
You should hopefully then see a line in the output which shows psmpsrv-psmpadbserver.service - PSMP ADBridge
Loaded: Loaded (/usr/lib/systemd/system/psmpsrv-psmpadbserver.service; enabled; vendor preset: disabled)
This verifies the ADBridge service is enabled and ready to be used.
N.B. The issue could also be resolved by a restart of the PSMP server.