Article - CS390804

Error "Closing socket connection. Attempting reconnect except it is a SessionExpiredException." is returned in a ThingWorx HA deployment

Modified: 14-Apr-2023   


Applies To

  • ThingWorx Platform 9.5 F000 to SP13
  • ThingWorx Platform 9.3 F000 to SP8

Description

  • When a new Zookeeper leader election occurs, continuous error of following type is seen in Application log file
Session 0x0 for sever XXXX:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
  • Zookeeper log show
WARN  [nioEventLoopGroup-4-2:NettyServerCnxn@524] - Closing connection to XXXX
  • These errors keeps on going until a restart of ThingWorx
  • Sometimes the platform terminates with
WARN] [O: c.t.s.c.ZookeeperHelper] [I: ] [U: ] [S: ] [P: platform2] [T: Curator-ConnectionStateManager-0] ZOOKEEPER STATE CHANGED TO : LOST
 [L: ERROR] [O: c.t.s.c.ClusteredModeCoordinator] [I: ] [U: ] [S: ] [P: platform2] [T: Curator-ConnectionStateManager-0] Could not connect to ZK. Shutting down server..
 [L: ERROR] [O: c.t.s.ThingWorxServer] [I: ] [U: ] [S: ] [P: platform2] [T: Curator-ConnectionStateManager-0] Shutting down server..


 
This is a printer-friendly version of Article 390804 and may be out of date. For the latest version click CS390804