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

My Jenkins agent getting disconnected every 7hours

      Hello all,
      I have installed the Jenkins v2.479.3 in windows, I have connected two windows slave machines which has same configuration as my master machine and same version of Java.

      Now, my problem is slaves are getting disconnected for every 7hours, even though jobs are running in it and getting connected back in few seconds.

       

      Please check the date modified for all the log files.

       

       

      I have connected the slaves through the batch command using web socket given in the slave page of Jenkins.

        1. version.png
          version.png
          8 kB
        2. image-2025-02-06-06-03-54-180.png
          image-2025-02-06-06-03-54-180.png
          7 kB
        3. slave.log.1
          7 kB
        4. connected_thru_bat_script.png
          connected_thru_bat_script.png
          115 kB
        5. log_files_slave_disconnect.png
          log_files_slave_disconnect.png
          114 kB

          [JENKINS-75235] My Jenkins agent getting disconnected every 7hours

          Barathvignesh created issue -
          Barathvignesh made changes -
          Attachment New: log_files_slave_disconnect.png [ 63907 ]
          Barathvignesh made changes -
          Attachment New: connected_thru_bat_script.png [ 63908 ]
          Barathvignesh made changes -
          Description Original: Hello all,
          I have installed the Jenkins v2.479.3 in windows, I have connected two windows slave machines which has same configuration as my master machine and same version of Java.

          Now, my problem is slaves are getting disconnected for every 7hours, even though jobs are running in it and getting connected back in few seconds.



          I have connected the slaves through the batch command given in the slave page of Jenkins.
          New: Hello all,
          I have installed the Jenkins v2.479.3 in windows, I have connected two windows slave machines which has same configuration as my master machine and same version of Java.

          Now, my problem is slaves are getting disconnected for every 7hours, even though jobs are running in it and getting connected back in few seconds.

          !log_files_slave_disconnect.png!

          I have connected the slaves through the batch command given in the slave page of Jenkins.
           !connected_thru_bat_script.png!
          Barathvignesh made changes -
          Labels New: disconnect slave-agent
          Barathvignesh made changes -
          Description Original: Hello all,
          I have installed the Jenkins v2.479.3 in windows, I have connected two windows slave machines which has same configuration as my master machine and same version of Java.

          Now, my problem is slaves are getting disconnected for every 7hours, even though jobs are running in it and getting connected back in few seconds.

          !log_files_slave_disconnect.png!

          I have connected the slaves through the batch command given in the slave page of Jenkins.
           !connected_thru_bat_script.png!
          New: Hello all,
          I have installed the Jenkins v2.479.3 in windows, I have connected two windows slave machines which has same configuration as my master machine and same version of Java.

          Now, my problem is slaves are *getting disconnected for every 7hours, even though jobs are running in it and getting connected back* in few seconds.

           

          Please check the date modified for all the log files.

          !log_files_slave_disconnect.png!

           

           

          I have connected the slaves through the batch command using *web socket* given in the slave page of Jenkins.


          !connected_thru_bat_script.png!
          Barathvignesh made changes -
          Summary Original: My Jenkins slave getting disconnected every 7hours New: My Jenkins agent getting disconnected every 7hours

          Neeraj added a comment -

          Did you notice anything triggering this disconnection? This seems like a network stability issue since it shown websocket errors. Did you try troubleshooting it from your side? Like connecting with another network ?

          Neeraj added a comment - Did you notice anything triggering this disconnection? This seems like a network stability issue since it shown websocket errors. Did you try troubleshooting it from your side? Like connecting with another network ?
          Barathvignesh made changes -
          Attachment New: slave.log.1 [ 63909 ]

          Barathvignesh added a comment -

          Hi Neeraj,

          Thanks! 

          I am facing this issue after migrating the Jenkins master to new windows machine. But i am not sure which is triggering the disconnection exactly for every 7hours and in some other slaves it is 5hours.

          This is the complete log of slave disconnection slave.log.1

          I had tried already with below methods,

          • If the issue is from Jenkins, i had tried installing other version.
          • Connecting the agent using windows service
          • Added no proxy to my env var.
          • Checked my Power options in my machine, it is in High Performance.

          Kindly let me know if i want to try different methods or how to troubleshoot the root cause of the issue.

          Barathvignesh added a comment - Hi Neeraj, Thanks!  I am facing this issue after migrating the Jenkins master to new windows machine. But i am not sure which is triggering the disconnection exactly for every 7hours and in some other slaves it is 5hours. This is the complete log of slave disconnection slave.log.1 I had tried already with below methods, If the issue is from Jenkins, i had tried installing other version. Connecting the agent using windows service Added no proxy to my env var. Checked my Power options in my machine, it is in High Performance. Kindly let me know if i want to try different methods or how to troubleshoot the root cause of the issue.

            neergasm Neeraj
            barath_jk Barathvignesh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: