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

safeRestart waits forever and does not restart Hudson

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Debian Linux
      java version "1.6.0_18"
      OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-1)
      OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)

      After change from Hudson ver. 1.358 to 1.359 the /safeRestart command will only bring Hudson to say "Hudson is being shut down", but the restart is not performed, although no jobs seem to be running (updates complete, no builds planned). The /restart command is still working properly.

          [JENKINS-6649] safeRestart waits forever and does not restart Hudson

          hendrik_millner created issue -

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
          http://jenkins-ci.org/commit/31484
          Log:
          JENKINS-6649 added additional logging so that we can see what's going on during the restart. This will be in 1.361.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java http://jenkins-ci.org/commit/31484 Log: JENKINS-6649 added additional logging so that we can see what's going on during the restart. This will be in 1.361.

          1.361 resolves this issue on my machine, safeRestart performs a proper restart again, without waiting anymore.

          hendrik_millner added a comment - 1.361 resolves this issue on my machine, safeRestart performs a proper restart again, without waiting anymore.
          hendrik_millner made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          hendrik_millner made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

          Also 1.362 has no problems with the safeRestart, seems fixed.

          hendrik_millner added a comment - Also 1.362 has no problems with the safeRestart, seems fixed.
          hendrik_millner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          voorth added a comment -

          Problem seems to have regressed in 1.363.
          Restart happens eventually, but web interface is completely unresponsive until all running jobs are completed.

          voorth added a comment - Problem seems to have regressed in 1.363. Restart happens eventually, but web interface is completely unresponsive until all running jobs are completed.
          voorth made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

          emmulator added a comment -

          Hmmm.. 1.362 here, and /safeRestart causes hudson to not respond to any further http requests. I click the 'Yes' button, and this request itself never returns, and no further requests return. But if I tail HUDSON_HOME/stderr.log, I see it counting down the running jobs until they're all done, at which point it restarts normally and the "Please wait..." page is available as normal.

          Running jdk 1.6 64bit Red Hat, bundled container.

          emmulator added a comment - Hmmm.. 1.362 here, and /safeRestart causes hudson to not respond to any further http requests. I click the 'Yes' button, and this request itself never returns, and no further requests return. But if I tail HUDSON_HOME/stderr.log, I see it counting down the running jobs until they're all done, at which point it restarts normally and the "Please wait..." page is available as normal. Running jdk 1.6 64bit Red Hat, bundled container.

            mindless Alan Harder
            hendrik_millner hendrik_millner
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: