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

hudson.security.AccessDeniedException2: anonymous is missing the Administer permission

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have my Jenkins installation configured to require LDAP logins and only certain users are administrators and the rest just have read only rights. When restarting Jenkins after installing the ios-device-connector plugin, all my slaves fail to connect with the following:

      ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins.
      hudson.security.AccessDeniedException2: anonymous is missing the Administer permission
              at hudson.security.ACL.checkPermission(ACL.java:54)
              at hudson.model.Node.checkPermission(Node.java:393)
              at org.jenkinsci.plugins.ios.connector.iOSDeviceList.update(iOSDeviceList.java:91)
              at org.jenkinsci.plugins.ios.connector.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:21)
              at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:396)
              at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:317)
              at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:454)
              at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:293)
              at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:679)
      

      If I allow all users administrator access, then the slaves reconnect correctly and I can see the iOS device status.

        Attachments

          Activity

          Hide
          jolu Johannes Luther added a comment -

          After upgrading the SSH Slaves Plugin from version 0.23 to 0.24 I got the same exception, while trying to connect nodes.

          As workaround a downgraded the SSH Slaves Plugin to version 0.23.

          I new ticket describing this problem can be found here: JENKINS-17648

          Show
          jolu Johannes Luther added a comment - After upgrading the SSH Slaves Plugin from version 0.23 to 0.24 I got the same exception, while trying to connect nodes. As workaround a downgraded the SSH Slaves Plugin to version 0.23. I new ticket describing this problem can be found here: JENKINS-17648
          Hide
          msteinberg Mark Steinberg added a comment -

          I had to disable iOS Device connector plugin.

          Show
          msteinberg Mark Steinberg added a comment - I had to disable iOS Device connector plugin.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/slaves/SlaveComputer.java
          http://jenkins-ci.org/commit/jenkins/4a71b011613f8e8c5a31b6b4dee66de43aa4f4dc
          Log:
          [FIXED JENKINS-15578]

          The slave launch thread is another background thread, and it should run
          like a super-user

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/slaves/SlaveComputer.java http://jenkins-ci.org/commit/jenkins/4a71b011613f8e8c5a31b6b4dee66de43aa4f4dc Log: [FIXED JENKINS-15578] The slave launch thread is another background thread, and it should run like a super-user
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #2616
          [FIXED JENKINS-15578] (Revision 4a71b011613f8e8c5a31b6b4dee66de43aa4f4dc)

          Result = SUCCESS
          kohsuke : 4a71b011613f8e8c5a31b6b4dee66de43aa4f4dc
          Files :

          • core/src/main/java/hudson/slaves/SlaveComputer.java
          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2616 [FIXED JENKINS-15578] (Revision 4a71b011613f8e8c5a31b6b4dee66de43aa4f4dc) Result = SUCCESS kohsuke : 4a71b011613f8e8c5a31b6b4dee66de43aa4f4dc Files : core/src/main/java/hudson/slaves/SlaveComputer.java changelog.html
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          core/src/main/java/hudson/slaves/SlaveComputer.java
          http://jenkins-ci.org/commit/jenkins/a799c7f232f592e3d2b240c7729d458b57ef8fc9
          Log:
          [FIXED JENKINS-15578]

          The slave launch thread is another background thread, and it should run
          like a super-user

          (cherry picked from commit 4a71b011613f8e8c5a31b6b4dee66de43aa4f4dc)

          Conflicts:
          changelog.html

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: core/src/main/java/hudson/slaves/SlaveComputer.java http://jenkins-ci.org/commit/jenkins/a799c7f232f592e3d2b240c7729d458b57ef8fc9 Log: [FIXED JENKINS-15578] The slave launch thread is another background thread, and it should run like a super-user (cherry picked from commit 4a71b011613f8e8c5a31b6b4dee66de43aa4f4dc) Conflicts: changelog.html

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              craign Craig Newell
            • Votes:
              7 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: