After Migration from CCS V14 to CCS V15 and ENDEVOR V18.1 encountered a problem trying to approve package using Endevor Web Services.
01:39:48 {Error: connect ECONNREFUSED ###.###.###.###:8090
01:39:48 at Object._errnoException (util.js: 1022: 11)
01:39:48 at _exceptionWithHostPort (util.js: 1044: 20)
01:39:48 at TCPConnectWrap.afterConnect [as oncomplete] (net.js: 1198: 14)
01:39:48 code: 'ECONNREFUSED',
01:39:48 errno: 'ECONNREFUSED',
01:39:48 syscall: 'connect',
01:39:48 address: '###.###.###.###',
01:39:48 port: 8090}
01:39:48 Got error: connect ECONNREFUSED ###.###.###.###:8090
Release : 18.1
Endevor Web Services
The error connect ECONNREFUSED ###.###.###.###:8090 indicates that the connection to IP address ###.###.###.### and port 8090 was refused by the Tomcat server.
WSTOMCCS install log confirmed ENWSInstallOptions.properties is configured to use Tomcat port 8090 (TOMCAT_PORT) and had updated the Tomcat server.xml file with that port.
However, WSTOMSTC log showed that Tomcat server.xml file did not have HTTP connector port 8090 enabled and after manual changes to the server.xml to enable it the problem was resolved.
Please note the WSTOMCCS job only updates port number in server.xml according to the setting in ENWSInstallOptions.properties (the script customises the HTTP connector and shutdown port).
No extra step needed for Tomcat 7 after running WSTOMCCS because Tomcat 7 uses the HTTP connector by default .
However, for Tomcat 8 and Tomcat 9 the HTTPS connector is used by default, so need to manually customise the server.xml to enable HTTP connector port for 8090. Also need to edit the HTTPS setting to point to the correct keyring/certificate etc after Web Services installation, otherwise will receive HTTPS connection error.
CA EndevorĀ® SCM 18.1 > Web Services > Install and Set Up CA Endevor Web Services