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

support-core dynamic loading error: hudson.security.AccessDeniedException2: anonymous is missing the Overall/Administer permission

XMLWordPrintable

      Scenario:

      1/ Install and configure Jenkins LTS 2.190.2
      2/ Configure the experimental update center ( https://updates.jenkins.io/experimental/update-center.json ) to get access to support-core 2.63-alpha
      3/ Install Health Advisor by CloudBees plugin 3.0 from the UC. It will install support-core 2.63-alpha
      4/ Look at the logs:

      Failed to instantiate Key[type=com.cloudbees.jenkins.support.impl.JenkinsLogs, annotation=[none]]; skipping this component
      hudson.security.AccessDeniedException2: anonymous is missing the Overall/Administer permission
      	at hudson.security.ACL.checkPermission(ACL.java:73)
      	at hudson.security.AccessControlled.checkPermission(AccessControlled.java:47)
      	at jenkins.model.Jenkins.getLog(Jenkins.java:2501)
      	at com.cloudbees.jenkins.support.impl.JenkinsLogs.<init>(JenkinsLogs.java:50)
      	at com.cloudbees.jenkins.support.impl.JenkinsLogs$$FastClassByGuice$$adeef6a3.newInstance(<generated>)
      	at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
      	at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
      	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
      	at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
      	at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
      	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
      	at hudson.ExtensionFinder$GuiceFinder$SezpozModule.onProvision(ExtensionFinder.java:567)
      	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
      	at hudson.ExtensionFinder$GuiceFinder$SezpozModule.onProvision(ExtensionFinder.java:567)
      	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
      	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
      	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
      	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      Caused: com.google.inject.ProvisionException: Unable to provision, see the following errors:
      
      1) Error injecting constructor, hudson.security.AccessDeniedException2: anonymous is missing the Overall/Administer permission
        at com.cloudbees.jenkins.support.impl.JenkinsLogs.<init>(JenkinsLogs.java:46)
      
      1 error
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
      	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
      	at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:439)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
      	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
      	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
      	at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:401)
      	at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:392)
      	at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:344)
      	at hudson.ExtensionList.load(ExtensionList.java:381)
      	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:317)
      	at hudson.ExtensionList.iterator(ExtensionList.java:172)
      	at com.cloudbees.jenkins.support.SupportPlugin.postInitialize(SupportPlugin.java:593)
      	at hudson.PluginManager.start(PluginManager.java:953)
      	at hudson.model.UpdateCenter$CompleteBatchJob.run(UpdateCenter.java:2175)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112)
      	at java.lang.Thread.run(Thread.java:748)
      

      Jenkins logs aren't available in the bundle because of this bug (until you restart)

      Archive:  2.190.2/jenkins-home/support/support_2019-11-06_09.13.16.zip
        Length      Date    Time    Name
      ---------  ---------- -----   ----
           6759  11-06-2019 10:13   about.md
            556  11-06-2019 10:13   identity.md
           3867  11-06-2019 10:13   nodes.md
           1648  11-06-2019 10:13   plugins/active.txt
              0  11-06-2019 10:13   plugins/disabled.txt
              0  11-06-2019 10:13   plugins/failed.txt
             28  11-06-2019 10:13   plugins/backup.txt
          10259  11-06-2019 10:13   docker/Dockerfile
           5014  11-06-2019 10:13   nodes/master/checksums.md5
            184  11-06-2019 10:13   admin-monitors.md
             75  11-06-2019 10:13   buildqueue.md
           3354  11-06-2019 10:13   nodes/master/environment.txt
            567  11-06-2019 10:13   nodes/master/file-descriptors.txt
           1900  11-06-2019 10:13   load-stats/no-label/sec10.csv
            460  11-06-2019 10:13   load-stats/no-label/min.csv
            172  11-06-2019 10:13   load-stats/no-label/hour.csv
           1679  11-06-2019 10:13   load-stats/no-label/gnuplot
           1900  11-06-2019 10:13   load-stats/overall/sec10.csv
            460  11-06-2019 10:13   load-stats/overall/min.csv
            172  11-06-2019 10:13   load-stats/overall/hour.csv
           1679  11-06-2019 10:13   load-stats/overall/gnuplot
           2760  11-06-2019 10:13   load-stats/label/master/sec10.csv
            620  11-06-2019 10:13   load-stats/label/master/min.csv
            172  11-06-2019 10:13   load-stats/label/master/hour.csv
           1679  11-06-2019 10:13   load-stats/label/master/gnuplot
            102  11-06-2019 10:13   loggers.md
          77662  11-06-2019 10:13   nodes/master/metrics.json
           1860  11-06-2019 10:13   nodes/master/networkInterface.md
            720  11-06-2019 10:13   node-monitors.md
             74  11-06-2019 10:13   reverse-proxy.md
              0  11-06-2019 10:13   running-builds.txt
           3588  11-06-2019 10:13   nodes/master/system.properties
            275  11-06-2019 10:13   update-center.md
              0  11-06-2019 10:13   nodes/master/pipeline-timings.txt
              0  11-06-2019 10:13   nodes/master/pipeline-thread-dump.txt
          41652  11-06-2019 10:13   nodes/master/thread-dump.txt
           2141  11-06-2019 10:13   manifest.md
      ---------                     -------
         174038                     37 files
      

      Annoying but not critical.

            allan_burdajewicz Allan BURDAJEWICZ
            aheritier Arnaud Héritier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: