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

Restart from UI after updating plugins doesn't work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None

      Description

      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)

        Activity

        Hide
        voorth voorth added a comment -

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

        Show
        voorth voorth added a comment - I'm getting the same error, even though I'm logged in with admin privileges.
        Hide
        mindless 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)

        Show
        mindless 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)
        Hide
        scm_issue_link 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.

        Show
        scm_issue_link 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.
        Hide
        scm_issue_link 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!)

        Show
        scm_issue_link 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!)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: