When running a CA Access Gateway (SPS), trying to stop it, the command line returns an error:
# ./sps-ctl stop
httpd (no pid file) not running
CA Access Gateway Proxy has been successfully stopped..
Attempting to stop CA Access Gateway Engine..
Sending stop message to server...
Cannot stop Proxy Engine
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
[...omitted for brevity...]
Unable to stop the CA Access Gateway Engine..
CA Access Gateway Engine may not be initialized or may not be running.
Consult CA Access Gateway Engine logs for details.
When the account that runs the CA Access Gateway (SPS) differs from the one that tries to stop it, this issue might occur.
If the embedded Tomcat server is in an undetermined state, this can happen too.
To investigate further what is causing this problem, run the following commands:
# ps auxww | grep -i Tomcat
# ls -Rltrha / > ls.txt