An agent that was connected to a SaaS system for a long time suddenly disconnects with messages like:
20260128/172526.979 - U02000385 Web socket error: 'An existing connection was forcibly closed by the remote host'.
20260128/172526.979 - U00045014 Exception 'java.io.IOException: "An existing connection was forcibly closed by the remote host"' at 'sun.nio.ch.SocketDispatcher.read0()'.
20260128/172527.011 - U02000196 Next attempt to create a CP connection in '10' seconds.
20260128/172537.052 - U02000379 Initiating connection to server 'ws-tenantid.saastest.example.com:443' using WebSocket URI: 'wss://ws-tenantid.saastest.example.com:443/agent'.
20260128/172537.146 - U02000438 Number of trusted certificates loaded from 'Windows Certificate Store': '55'.
20260128/172537.161 - U02000484 This agent trusts '178' certificates when creating a JCP connection.
20260128/172619.560 - U02000313 Communication error with partner 'ws-tenantid.saastest.example.com:443', error: 'Connection timed out: no further information'.
Attempting to restart the agent from that point fails with the following in the agent log:
20260130/091755.931 - U02000379 Initiating connection to server 'ws-tenantid.saastest.example.com:443' using WebSocket URI: 'wss://ws-tenantid.saastest.example.com:443/agent'.
20260130/091756.165 - U02000438 Number of trusted certificates loaded from 'Windows Certificate Store': '55'.
20260130/091756.181 - U02000484 This agent trusts '178' certificates when creating a JCP connection.
20260130/091838.846 - U02000313 Communication error with partner 'ws-tenantid.saastest.example.com:443', error: 'Connection timed out: no further information'.
20260130/091838.893 - U02000074 Connecting to system 'AUTSYSTEM' is not possible.
20260130/091838.893 - Initial connection with endpoint not possible. Please check your configuration.
20260130/091838.909 - U02000041 Shutdown Agent 'AGENT_NAME'.
20260130/091838.909 - U02000002 Agent 'AGENT_NAME' version '24.3.0+build.1732290291368' ended abnormally.
A Windows Agent can also fail to start (rather than disconnect after a long-running connection) with a different U02000313 error text, indicating a TLS handshake/certificate failure rather than a network timeout:
U02000313 Communication error with partner 'ws-tenantid.saastest.example.com:443', error: 'Remote host terminated the handshake'.
U02000327 Unexpected error on connection '*SERVER' (socket handle = '1'), reason '"category: 'asio.ssl', (...) certificate verify failed (SSL routines, tls_process_server_certificate)"'.
U02000002 Agent ... ended abnormally.
Automic Type: SaaS
Troubleshooting can be done to help see where the problem lies