search cancel

Using CA Endevor Web Services with CCS Tomcat 9.0.27 receive "Error: connect ECONNREFUSED ..."

book

Article ID: 202453

calendar_today

Updated On:

Products

Endevor Software Change Manager (SCM)

Issue/Introduction

After Migration from CCS V14 to CCS V15 and ENDEVOR V18. to ENDEVOR V18.1  encounter problem trying to approve package using Endevor Web Services.

01:39:48 {Error: connect ECONNREFUSED xxx.xxx.xxx.xxx: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: 'xxx.xxx.xxx.xxx',
01:39:48 port: 8090}
01:39:48 Got error: connect ECONNREFUSED xxx.xxx.xxx.xxx:8090

Environment

Release : 18.1 
Component : CA Endevor Software Change Manager

Resolution

The error connect ECONNREFUSED xxx.xxx.xxx.xxx:8090 indicates that the connection to IP address xxx.xxx.xxx.xxx 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.

Additional Information

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