This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.
Control-M Automation API
Control-M Automation API 9.0.00 and higher
The error message, ECONNREFUSED, is received from Control-M Automation API when attempting to run a "ctm" command.
When running the emweb_status command, the HTTPS connector is missing:
Tomcat Process [UP]
Port: , Status: [UP]
[HTTPS Connectors] <<<----- This entry is missing!!
Port: , Status: [UP] <<<----- This entry is missing!!
--> Web server [UP]
1- Automation API Server not running. 2- Web Server Connectors do not exist in the server.xml
1- Make sure that the Automation API Server is started, it is started via the command emrestsrv
Note the only issue that may occur is the Command Prompt window may need to be closed after running emrestsrv command.
In order to eliminate this, run the command with the /B flag, as seen below:
start "emrestsrv" /B "%em_jre_home%\bin\javaw.exe" %EMCOMP_IDENT% %em_java_options% -DEM_HOME="%EM_HOME%" -Dlog4j.configuration="%LOG4J_CONF_FILE%" -jar "%SERVER_JAR%" %*
2- Verify that the connector exists in the server.xml. (Linux/Unix: $HOME/ctm_em/etc/emweb/tomcat/conf/server.xml Windows: %InstallPath%\BMC Software\Control-M EM\Default\emweb\tomcat\conf\server.xml) If it does not, follow these steps:
1. Run manage_webserver -> Tomcat Configuration(1) -> Secure Connector Configuration(3) -> Add New SSL Connector(2).
2. In keystore file name: name of the keystore
3. Password: password
4. Configure ciphers: Y
5. Recycle the web server by running "stop_web_server" (the web server will start automatically)
In the event this does not work, manually generate the Keystore file using the SSL Guide
9.0.18 example: http://documents.bmc.com/supportu/9.0.18/help/Main_help/en-US/index.htm#ManageSSLWizard.htm
Copy the connector as it was in the previous version into the new server.xml file and recycle the web server
E.G. <Connector SSLEnabled="true" clientAuth="false" keystoreFile="conf\emweb_unsigned.keystore" keystorePass="empass