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

Restarting a Windows slave causes the master to shutdown

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • core
    • master Ubuntu 16.04.2 LTS
      slave Windows 7 64bit

      When we restart or connect a Windows slave, the master shuts down. This doesn't happen consistently, but now that we are restarting the slaves over night, the master is down pretty much every morning.

      The master log just says:

      Aug 16, 2017 4:41:48 AM winstone.Logger logInternal
      INFO: JVM is terminating. Shutting down Winstone
      

      No exception or other error.

      We had this issue for some time which happened sporadically, when connecting a Windows slave.

      Our Windows slaves are on Windows 7 64bit and uses the Jenkins agent installed as a service. When we restart the machine, the node is not brought temporary offline, that is, it goes offline because the slave is disconnected, then comes back online by itself. I wonder is that could be an issue?

      How can I get more information on why the JVM is shutting down?

          [JENKINS-46215] Restarting a Windows slave causes the master to shutdown

          Maxime Viargues created issue -

          Oleg Nenashev added a comment -

          Do you have master and agent on the same machine?

          Please provide service configuration files for both instances

          Oleg Nenashev added a comment - Do you have master and agent on the same machine? Please provide service configuration files for both instances
          Oleg Nenashev made changes -
          Labels New: winsw
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]

          Thanks for the reply.

          No they are different machines, the master being an Ubuntu server.

          Which configuration files are you referring to?

          Maxime Viargues added a comment - Thanks for the reply. No they are different machines, the master being an Ubuntu server. Which configuration files are you referring to?

          Oleg Nenashev added a comment -
          • Node's config.xml (on the master side)
          • If you use Windows service, jenkins-slave.xml from the work directory (and WinSW version)

          Oleg Nenashev added a comment - Node's config.xml (on the master side) If you use Windows service, jenkins-slave.xml from the work directory (and WinSW version)
          Maxime Viargues made changes -
          Attachment New: config Mac 150.xml [ 39305 ]
          Attachment New: config Win 160.xml [ 39306 ]
          Maxime Viargues made changes -
          Attachment New: config master.xml [ 39307 ]

          I have uploaded the the config files. We also have Mac slaves but I suspect it's the Windows ones causing the problem. Note that I had to obfuscate job names for confidentiality reasons.

          I noticed we don't have Email notifications on the Mac ones, maybe that could be related?

          Maxime Viargues added a comment - I have uploaded the the config files. We also have Mac slaves but I suspect it's the Windows ones causing the problem. Note that I had to obfuscate job names for confidentiality reasons. I noticed we don't have Email notifications on the Mac ones, maybe that could be related?

          Maxime Viargues added a comment - - edited

          It happened again this morning. This time I have a Windows 7 VM that I use for testing on my machine, and when I woke up my PC this morning (therefore the VM too), Jenkins when off-line at this exact same time.

          I have disabled all email notifications so that's not the problem.

          Maxime Viargues added a comment - - edited It happened again this morning. This time I have a Windows 7 VM that I use for testing on my machine, and when I woke up my PC this morning (therefore the VM too), Jenkins when off-line at this exact same time. I have disabled all email notifications so that's not the problem.

            Unassigned Unassigned
            mviargues Maxime Viargues
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: