Users are unable to log in to the Automic Web Interface (AWI). The system displays an error indicating that connections to the Communication Processes (CPs) cannot be established. This often requires a restart of the Java Communication Process (JCP) to restore service.
Symptoms:
Connection to the AE system not possible. No connection to the following CPs could be established: [Hostname]:[Port]No connection to the following CPs could be established. make sure that the system meets the minimum requirement for processes and that it uses WS.PORT to establish the connection.U00003438 Error in connection 'Connection *CP001#####'. 'java.util.concurrent.TimeoutException' function: Error 'Idle timeout expired: 60000/60000 ms'U00003407 Client connection '*CP001#####' from '####:####' has logged off from the Server.A defect (DE182534) in the JavaAPI WebSocket implementation causes the JCP to incorrectly maintain an old connection ID. When the AWI attempts to reconnect, the JCP flags the request as a duplicate (U00045419) and suspends the new connection.
This issue is fixed in Automic Automation release 24.4.4+HF1 and higher (Note: both the Automation Engine and AWI must be updated)
Workaround
If an immediate upgrade is not possible, follow these steps to adjust TCP keepalive settings to prevent connection hangs.
Step 1:
Modify the /etc/sysctl.conf file to adjust the TCP keepalive settings.
Note: Tomcat or the Jetty AWI might only reside on one compute node (e.g., compute 2), but these settings must be applied to both servers because the AWI connects to the JCP across both.
Add the following lines to /etc/sysctl.conf:
net.ipv4.tcp_keepalive_time = 60
net.ipv4.tcp_keepalive_intvl = 10
net.ipv4.tcp_keepalive_probes = 3
Step 2: Restart Services
For the changes in /etc/sysctl.conf to take effect, a restart is required.
Temporary/Immediate Workaround: If you are unable to apply the configuration changes and do a full restart immediately, you can temporarily resolve the outage by manually restarting Tomcat/Jetty AWI (kill the AWI process and start it once again).