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

Hudson restarts but the windows service doesn't

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Hudson 1.337 on Windows Server 2003 R2

      I have installed hudson as a windows service.
      When I restart hudson either using "/safeRestart" or after installing a plugin using the button in the GUI, Hudson restarts correctly but the windows service is stopped and never restarted.
      After restart

      • hudson.exe process is not present in the processes list;
      • no messages are reported in hudson.err.log or hudson.out.log files;
      • file hudson.wrapper.log reports the restart log as shown below:

      2009-12-15 09.43.40 - Starting java -Xrs -Xmx1024m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dhudson.scheduledRetention=true -jar "C:\DeveloperTools\Hudson\hudson.war" --httpPort=8080
      2009-12-15 09.43.40 - Started 3856
      2009-12-15 09.51.14 - Stopping hudson
      2009-12-15 09.51.14 - ProcessKill 3856
      2009-12-15 09.51.14 - Finished hudson
      2009-12-15 09.51.15 - Starting java -Xrs -Xmx1024m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dhudson.scheduledRetention=true -jar "C:\DeveloperTools\Hudson\hudson.war" --httpPort=8080
      2009-12-15 09.51.15 - Started 2772

          [JENKINS-5090] Hudson restarts but the windows service doesn't

          Marco Ambu added a comment -

          I have restarted again hudson (1.339 now) using the button provided in the GUI after upgrading a plugin. Now I find that problem #2 is quite blocking: hudson is running but not logging in any file (the last message is just before restarting) even if it is logging in the GUI (http://hudson:8080/log/all). In this way there is no possibility to control and monitor the hudson server.
          Can anybody please have a look on this?

          Marco Ambu added a comment - I have restarted again hudson (1.339 now) using the button provided in the GUI after upgrading a plugin. Now I find that problem #2 is quite blocking: hudson is running but not logging in any file (the last message is just before restarting) even if it is logging in the GUI ( http://hudson:8080/log/all ). In this way there is no possibility to control and monitor the hudson server. Can anybody please have a look on this?

          Marco Ambu added a comment -

          I have tried again after upgrade to 1.341 to use /safeRestart after a plugin installation and It seems that this problem is not more present. After restart hudson.exe process remains active, the service status is "started", only one java.exe instance is running and the log is correctly written to files.

          Marco Ambu added a comment - I have tried again after upgrade to 1.341 to use /safeRestart after a plugin installation and It seems that this problem is not more present. After restart hudson.exe process remains active, the service status is "started", only one java.exe instance is running and the log is correctly written to files.

          Fixed toward 1.392 in 081235acff1a791126bec3d395e9f3a38a53240e

          Kohsuke Kawaguchi added a comment - Fixed toward 1.392 in 081235acff1a791126bec3d395e9f3a38a53240e

          Code changed in hudson
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/pom.xml
          http://hudson-labs.org/commit/core/081235acff1a791126bec3d395e9f3a38a53240e
          Log:
          [FIXED JENKINS-5090] Hudson installed as Windows service wasn't restarting properly

          SCM/JIRA link daemon added a comment - Code changed in hudson User: Kohsuke Kawaguchi Path: changelog.html core/pom.xml http://hudson-labs.org/commit/core/081235acff1a791126bec3d395e9f3a38a53240e Log: [FIXED JENKINS-5090] Hudson installed as Windows service wasn't restarting properly

            kohsuke Kohsuke Kawaguchi
            mambu Marco Ambu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: