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

Restart from UI after updating plugins doesn't work

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      If attempting an "update after no jobs are running", I get:

      Exception in thread "safe-restart thread" hudson.security.AccessDeniedException2: anonymous is missing the Administer permission
      at hudson.security.ACL.checkPermission(ACL.java:53)
      at hudson.model.Node.checkPermission(Node.java:310)
      at hudson.model.Hudson.doQuietDown(Hudson.java:2466)
      at hudson.model.Hudson$17.run(Hudson.java:2942)

          [JENKINS-6667] Restart from UI after updating plugins doesn't work

          voorth added a comment -

          I'm getting the same error, even though I'm logged in with admin privileges.

          voorth added a comment - I'm getting the same error, even though I'm logged in with admin privileges.

          Alan Harder added a comment -

          this is caused by r31001 / r31015
          the doQuietDown call added in the background thread checks ADMINISTER permission.. the background thread is anonymous. (and ADMINISTER permission was already checked before starting bg thread)

          Alan Harder added a comment - this is caused by r31001 / r31015 the doQuietDown call added in the background thread checks ADMINISTER permission.. the background thread is anonymous. (and ADMINISTER permission was already checked before starting bg thread)

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/31608
          Log:
          [FIXED JENKINS-6667] Background threads should run as the SYSTEM user.

          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 trunk/www/changelog.html http://jenkins-ci.org/commit/31608 Log: [FIXED JENKINS-6667] Background threads should run as the SYSTEM user.

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
          http://jenkins-ci.org/commit/31633
          Log:
          JENKINS-6667 wait indefinitely for quiet down to complete,
          instead of waiting just 10 seconds and proceeding with restart (not so safe!)

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java http://jenkins-ci.org/commit/31633 Log: JENKINS-6667 wait indefinitely for quiet down to complete, instead of waiting just 10 seconds and proceeding with restart (not so safe!)

            kohsuke Kohsuke Kawaguchi
            davidkarlsen davidkarlsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: