The error message, ECONNREFUSED, is received from Control-M Automation API when attempting to run a "ctm" command.

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Enterprise Manager


    COMPONENT:

    Control-M Automation API


    APPLIES TO:

    Control-M Automation API 9.0.00 and higher



    PROBLEM:

    The error message, ECONNREFUSED, is received from Control-M Automation API when attempting to run a "ctm" command.

    For example:
    User-added image

    When running the emweb_status command, the HTTPS connector is missing:
    Tomcat Process [UP]
    ===========================================================
    [HTTP Connectors]
            Port: [18080], Status: [UP]
    [HTTPS Connectors]                       <<<----- This entry is missing!!
            Port: [8443], Status: [UP]        <<<----- This entry is missing!!
    ===========================================================
    --> Web server [UP]
    ===========================================================


    CAUSE:

    1- Automation API Server not running. 2- Web Server Connectors do not exist in the server.xml


    SOLUTION:

    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  
    OR  
    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 

     


    Article Number:

    000122761


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles