Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69955

WebSocketTimeoutException: Connection Idle Timeout

XMLWordPrintable

    • 2.395

      We first experienced the problem that websocket connections were closed down unexpectedly in Jenkins  2.361.1 LTS. The problem was reported in JENKINS-69509, and Jenkins 2.375 was released subsequently to address the issue. We tried Jenkins 2.375 and found the websocket problem still there. The websocket was closed down in less than 2 hours after the build started.  Attached all the necessary logs

      Reverted back to  Jenkins 2.346.3 LTS is a workaround that works for us.

      How to Reproduce

      • Start Jenkins 2.361.x or later with -Djenkins.websocket.pingInterval=120
      • Connect a Websocket agent
        --> Notice that the websocket agent disconnect/reconnect at every ping

      An interval of 120 is a way to consistently see the error. Though it should happen with any value > 30. It may happen with the default 30 but with a lower likelihood.

        1. Agent logs.txt
          4 kB
          George Yu
        2. Agent logs httpKeepAliveTimeout=120000.log
          10 kB
          George Yu
        3. Agent sys info.txt
          3 kB
          George Yu
        4. Agent sys info httpKeepAliveTimeout=120000.txt
          3 kB
          George Yu
        5. Controller Log httpKeepAliveTimeout=120000.log
          15 kB
          George Yu
        6. Controller logs.txt
          5 kB
          George Yu
        7. Controller sys info.txt
          3 kB
          George Yu
        8. Controller Sys info httpKeepAliveTimeout=120000.txt
          3 kB
          George Yu
        9. hudson.remoting-0.log.0
          1.27 MB
          Allan BURDAJEWICZ
        10. jenkins.agents.WebSocketAgents-0.log.0
          886 kB
          Allan BURDAJEWICZ
        11. Job build console httpKeepAliveTimeout=120000.log
          12 kB
          George Yu
        12. Job build console log.txt
          5 kB
          George Yu
        13. org.jetty-0.log.0
          7.05 MB
          Allan BURDAJEWICZ
        14. Screenshot from 2022-12-20 16-51-57.png
          60 kB
          Nik Reiman
        15. Screenshot from 2022-12-22 13-26-21.png
          31 kB
          Nik Reiman

            allan_burdajewicz Allan BURDAJEWICZ
            gyu George Yu
            Votes:
            13 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved: