Window Agent fails to connect to AE. When it start it creates two logs. The first one shows that it started and shutdown with return code 0-
20220725/110522.357 - -------------------------------------------------------------------------------------------------------------------------------
20220725/110522.357 - U02000071 Current directory: C:\Automic\Agents\Windows\WIN01\Bin
20220725/110522.357 - U02000360 Agent 'WIN01' has been started with process ID '132'.
20220725/110522.372 - U02000066 Host information: Host name='AUTOMIC01', IP address='[server IP address]'
20220725/110522.372 - U02000066 Host information: Host name='AUTOMIC01', IP address='::1'
20220725/110522.372 - U02000350 Agent supports IP version: 'IPv4'
20220725/110522.372 - U02000350 Agent supports IP version: 'IPv6'
20220725/110522.372 - U02000331 OpenSSL library Version 'OpenSSL 1.1.1l 24 Aug 2021' is used.
20220725/110522.372 - C:\Automic\Agents\Windows\WIN01\Bin\libcrypto-1_1-x64.dll
20220725/110522.372 - C:\Automic\Agents\Windows\WIN01\Bin\libssl-1_1-x64.dll
20220725/110522.372 - U02000302 Agent shutdown has been initiated with return code '0'.
Whereas the second one fails with Error in function 'TCP-Thread', error code '-1', error description: 'Unexpected exception thrown'.
20220809/114859.272 - U02000313 Communication error with partner 'https://[other server IP]:8443/agent', error: 'No connection could be made because the target machine actively refused it'.
20220809/114859.272 - U02000343 Server connection has been closed.
20220809/114900.303 - U02000379 Initiating connection to server '[other server IP]:8443' using WebSocket URI: 'wss://[other server IP]:8443/agent'.
20220809/114901.335 - U02000313 Communication error with partner 'wss://[other server IP]:8443/agent', error: 'No connection could be made because the target machine actively refused it'.
20220809/114901.335 - U02000343 Server connection has been closed.
20220809/114902.366 - U02000379 Initiating connection to server '[JCP FQDN]:8443' using WebSocket URI: 'wss://[other server IP]:8443/agent'.
20220809/114903.397 - U02000072 Connection to system 'AUTOMIC' initiated.
20220809/114903.397 - U02001040 Error in function 'TCP-Thread', error code '-1', error description: 'Unexpected exception thrown'.
Release : 21.0.1
Component :
Trace was enabled with tcp=9 on the agent.
000001CC 20220729/073559.205 - U02000071 Current directory: C:\Automic\Agents\Windows\WIN01\Bin
000001CC 20220729/073559.205 - U02000360 Agent 'WIN01' has been started with process ID '5484'.
20220725/110522.372 - U02000066 Host information: Host name='AUTOMIC01', IP address='[server IP address]'
20220725/110522.372 - U02000066 Host information: Host name='AUTOMIC01', IP address='::1'
000001CC 20220729/073559.205 - U02000350 Agent supports IP version: 'IPv4'
000001CC 20220729/073559.205 - U02000350 Agent supports IP version: 'IPv6'
000001CC 20220729/073559.205 <-- uc4::AgentContext::logAgentStart
000001CC 20220729/073559.205 <-- uc4::AgentContext::initialize
000001CC 20220729/073559.205 --> uc4::AgentContext::start
000001CC 20220729/073559.205 <-- uc4::AgentContext::start
000001CC 20220729/073559.205 --> tcp::TcpIpModule::open
000001CC 20220729/073559.205 - U02000331 OpenSSL library Version 'OpenSSL 1.1.1l 24 Aug 2021' is used.
000001CC 20220729/073559.205 - C:\Automic\Agents\Windows\WIN01\Bin\libcrypto-1_1-x64.dll
000001CC 20220729/073559.205 - C:\Automic\Agents\Windows\WIN01\Bin\libssl-1_1-x64.dll
000001CC 20220729/073559.205 --> tls::PrivateKey::genPrivateKeyFile
00003360 20220729/073559.205 --> uc4::AgentLifeCycle::cancel
00003360 20220729/073559.205 --> uc4::AgentContext::shutdown(0)
00003360 20220729/073559.205 - U02000302 Agent shutdown has been initiated with return code '0'.
00003360 20220729/073559.205 --> ipc::notify(ShutDown, 0, )
00003360 20220729/073559.205 --> ipc::notify(0000009470D0F4D0 [fa, 0 bytes])
00003360 20220729/073559.205 Queue not bound, message will be not dispatched
00003360 20220729/073559.205 <-- ipc::notify
00003360 20220729/073559.205 <-- ipc::notify
00003360 20220729/073559.205 <-- uc4::AgentContext::shutdown
00003360 20220729/073559.205 <-- uc4::AgentLifeCycle::cancel
Delete the security folder and restart the agent. The agent might require to be started a second time.