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

Jenkins startup blocked on GoogleRobotMetadataCredentials$Descriptor.metadataDescriptor

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Noticed a Jenkins service taking a long time to start up. A thread dump revealed

      "Initializing plugin support-core" ...
         java.lang.Thread.State: RUNNABLE
              at sun.util.logging.PlatformLogger.getLogger(PlatformLogger.java:199)
              - locked <0x...> (a java.lang.Class for sun.util.logging.PlatformLogger)
              at sun.net.www.protocol.http.HttpURLConnection.<clinit>(HttpURLConnection.java:432)
              at sun.net.www.protocol.http.Handler.openConnection(Handler.java:62)
              at sun.net.www.protocol.http.Handler.openConnection(Handler.java:57)
              at java.net.URL.openConnection(URL.java:1002)
              at com.google.api.client.http.javanet.DefaultConnectionFactory.openConnection(DefaultConnectionFactory.java:31)
              at com.google.api.client.http.javanet.NetHttpTransport.buildRequest(NetHttpTransport.java:136)
              at com.google.api.client.http.javanet.NetHttpTransport.buildRequest(NetHttpTransport.java:62)
              at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:863)
              at com.google.jenkins.plugins.util.MetadataReader$Default.readMetadata(MetadataReader.java:80)
              at com.google.jenkins.plugins.util.MetadataReader$Default.hasMetadata(MetadataReader.java:105)
              at com.google.jenkins.plugins.credentials.oauth.GoogleRobotMetadataCredentials$Descriptor.metadataDescriptor(GoogleRobotMetadataCredentials.java:141)
              at ...
              at net.java.sezpoz.IndexItem.instance(IndexItem.java:183)
              at hudson.ExtensionFinder$GuiceFinder.instantiate(ExtensionFinder.java:369)
              at hudson.ExtensionFinder$GuiceFinder.access$700(ExtensionFinder.java:240)
              at hudson.ExtensionFinder$GuiceFinder$SezpozModule$1.get(ExtensionFinder.java:557)
              at ...
              at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:402)
              at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:393)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:344)
              at hudson.ExtensionList.load(ExtensionList.java:381)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:317)
              - locked <0x...> (a hudson.ExtensionList$Lock)
              at hudson.ExtensionList.iterator(ExtensionList.java:172)
              at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1590)
              at ...
      

      You must not make blocking network calls in this context.

      Note that the Jenkins service was not using Google OAuth in any way.

        Attachments

          Activity

          Hide
          hashim Hashim added a comment -

          My jenkins is not restarting after adding two plugins

           

          google-storage-plugin:1.5.4

          google-oauth-plugin:1.0.6

           

          io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Unclassified : throttleJobProperty.
          Available attributes : administrativeMonitorsConfiguration, ansiColorBuildWrapper, ansibleTowerGlobalConfig, artifactManager, buildDiscarders, casCGlobalConfig, codeBuilder, configuration, defaultFolderConfiguration, defaultView, envVarsFilter, fingerprints, gitHubConfiguration, gitHubPluginConfig, gitSCM, globalConfigFiles, globalDefaultFlowDurabilityLevel, globalLibraries, groovy, location, mailer, maskPasswords, masterBuild, myView, nodeProperties, pipeline-model-docker, plugin, pluginImpl, pollSCM, projectNamingStrategy, quietPeriod, resourceRoot, scmRetryCount, shell, sparkNotifyBuilder, sparkNotifyPostBuilder, sparkSendStep, timestamper, usageStatistics, veracodeNotifier, viewsTabBar, webhook, whitelist
          at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:376)
          at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:365)
          at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:287)
          at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$8(ConfigurationAsCode.java:777)
          at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:713)
          Caused: io.jenkins.plugins.casc.ConfiguratorException: unclassified: error configuring 'unclassified' with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator
          at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:719)
          at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:777)
          at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:762)
          at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:638)
          at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:307)
          at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:299)
          Caused: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
          Caused: java.lang.Error
          at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
          at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          Caused: org.jvnet.hudson.reactor.ReactorException
          at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
          at jenkins.InitReactorRunner.run(InitReactorRunner.java:49)
          at jenkins.model.Jenkins.executeReactor(Jenkins.java:1162)
          at jenkins.model.Jenkins.<init>(Jenkins.java:960)
          at hudson.model.Hudson.<init>(Hudson.java:86)
          at hudson.model.Hudson.<init>(Hudson.java:82)
          at hudson.WebAppMain$3.run(WebAppMain.java:295)
          Caused: hudson.util.HudsonFailedToLoad
          at hudson.WebAppMain$3.run(WebAppMain.java:312)

          Show
          hashim Hashim added a comment - My jenkins is not restarting after adding two plugins   google-storage-plugin:1.5.4 google-oauth-plugin:1.0.6   io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Unclassified : throttleJobProperty. Available attributes : administrativeMonitorsConfiguration, ansiColorBuildWrapper, ansibleTowerGlobalConfig, artifactManager, buildDiscarders, casCGlobalConfig, codeBuilder, configuration, defaultFolderConfiguration, defaultView, envVarsFilter, fingerprints, gitHubConfiguration, gitHubPluginConfig, gitSCM, globalConfigFiles, globalDefaultFlowDurabilityLevel, globalLibraries, groovy, location, mailer, maskPasswords, masterBuild, myView, nodeProperties, pipeline-model-docker, plugin, pluginImpl, pollSCM, projectNamingStrategy, quietPeriod, resourceRoot, scmRetryCount, shell, sparkNotifyBuilder, sparkNotifyPostBuilder, sparkSendStep, timestamper, usageStatistics, veracodeNotifier, viewsTabBar, webhook, whitelist at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:376) at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:365) at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:287) at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$8(ConfigurationAsCode.java:777) at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:713) Caused: io.jenkins.plugins.casc.ConfiguratorException: unclassified: error configuring 'unclassified' with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:719) at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:777) at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:762) at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:638) at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:307) at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:299) Caused: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) Caused: java.lang.Error at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused: org.jvnet.hudson.reactor.ReactorException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282) at jenkins.InitReactorRunner.run(InitReactorRunner.java:49) at jenkins.model.Jenkins.executeReactor(Jenkins.java:1162) at jenkins.model.Jenkins.<init>(Jenkins.java:960) at hudson.model.Hudson.<init>(Hudson.java:86) at hudson.model.Hudson.<init>(Hudson.java:82) at hudson.WebAppMain$3.run(WebAppMain.java:295) Caused: hudson.util.HudsonFailedToLoad at hudson.WebAppMain$3.run(WebAppMain.java:312)

            People

            Assignee:
            astroilov Andrey Stroilov
            Reporter:
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: