DB_SERVICE agent won't start | Failed to connect to any CP.
search cancel

DB_SERVICE agent won't start | Failed to connect to any CP.

book

Article ID: 204555

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation

Issue/Introduction

DB_SERVICE agent won't stay started. When specifying host:port we get a "connection refused".  One case had one node of a HA setup starting, and the other not staying up.  Agent log for the failing agent shows:

20201205/003416.020 - U02000159 Initiate reconnect to the AE system.
20201205/003416.021 - U02000072 Connection to system 'AUTOPRD' initiated.
20201205/003416.024 - U02000011 Connection to Server 'localhost/127.0.0.1:2217' initiated.
20201205/003416.025 - U02000012 Connection to Server 'localhost:2217' denied.
20201205/003416.026 - java.net.ConnectException: Connection refused
20201205/003416.026 - Failed to connect to any CP.
20201205/003416.027 - U02000196 Next attempt to create a CP connection in '120' seconds.
20201205/003607.309 - U02000041 Shutdown Agent 'DB_SERVICE2'.

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Cause

Caused by an incorrect or commented cp= setting in the server's ucsrv.ini file

Example of commented out cp= setting:

[DB_SERVICE]
;
; cp: Address of the AE system's communication process to which the agent should connect.
; Allowed formats:
; DNS name:port number
; TCP/IP address:port number
;
;cp=localhost:2217

Example of incorrect where there are no CPs running on localhost:2222:

[DB_SERVICE]
;
; cp: Address of the AE system's communication process to which the agent should connect.
; Allowed formats:
; DNS name:port number
; TCP/IP address:port number
;
cp=localhost:2222

Resolution

Be sure that cp= setting in the [DB_SERVICE] section of the ucsrv.ini file is not commented out and is pointing to the correct port.  a semi-colon denotes a commented line:

[DB_SERVICE]
;
; cp: Address of the AE system's communication process to which the agent should connect.
; Allowed formats:
; DNS name:port number
; TCP/IP address:port number
;
cp=localhost:2217