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

Pipeline libraries do not load after upgrading git

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • git-plugin
    • Jenkins 2.60.2, Pipeline 2.5, Pipeline Shared Groovy Library 2.6
    • Pipeline - December

      I updated Jenkins to the latest LTS Version incl. all plugin updates.

      After the restart I saw builds failing, because they can't load the global libraries.

      Taking a look at the configuration I also can't find the Settings anymore.

      Log shows an Exception that the plugin can't be loaded:

      Jul 24 09:23:10 juelich java[1729]: INFO: Prepared all plugins
      Jul 24 09:23:10 juelich java[1729]: Jul 24, 2017 9:23:10 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
      Jul 24 09:23:10 juelich java[1729]: INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
      Jul 24 09:23:10 juelich java[1729]: Jul 24, 2017 9:23:10 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
      Jul 24 09:23:10 juelich java[1729]: WARNING: Failed to instantiate Key[type=org.jenkinsci.plugins.workflow.libs.GlobalLibraries, annotation=[none]]; skipping this component
      Jul 24 09:23:10 juelich java[1729]: com.google.inject.ProvisionException: Unable to provision, see the following errors:
      Jul 24 09:23:10 juelich java[1729]: 1) Tried proxying org.jenkinsci.plugins.workflow.libs.GlobalLibraries to support a circular dependency, but it is not an interface.
      Jul 24 09:23:10 juelich java[1729]: 1 error
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:424)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:386)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:377)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:477)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionList.load(ExtensionList.java:365)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionList.ensureLoaded(ExtensionList.java:303)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionList.getComponents(ExtensionList.java:168)
      Jul 24 09:23:10 juelich java[1729]: at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:191)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionList.ensureLoaded(ExtensionList.java:303)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionList.iterator(ExtensionList.java:157)
      Jul 24 09:23:10 juelich java[1729]: at jenkins.plugins.git.GitSCMSource.readResolve(GitSCMSource.java:212)
      Jul 24 09:23:10 juelich java[1729]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      Jul 24 09:23:10 juelich java[1729]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      Jul 24 09:23:10 juelich java[1729]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      Jul 24 09:23:10 juelich java[1729]: at java.lang.reflect.Method.invoke(Method.java:498)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:66)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:271)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:393)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:331)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:393)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:331)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:85)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:80)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:76)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:393)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:331)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
      Jul 24 09:23:10 juelich java[1729]: at hudson.util.XStream2.unmarshal(XStream2.java:114)
      Jul 24 09:23:10 juelich java[1729]: at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
      Jul 24 09:23:10 juelich java[1729]: at hudson.XmlFile.unmarshal(XmlFile.java:160)
      Jul 24 09:23:10 juelich java[1729]: at hudson.model.Descriptor.load(Descriptor.java:893)
      Jul 24 09:23:10 juelich java[1729]: at org.jenkinsci.plugins.workflow.libs.GlobalLibraries.<init>(GlobalLibraries.java:57)
      Jul 24 09:23:10 juelich java[1729]: at org.jenkinsci.plugins.workflow.libs.GlobalLibraries$$FastClassByGuice$$602b3fdb.newInstance(<generated>)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:424)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
      Jul 24 09:23:10 juelich java[1729]: at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:386)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:377)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:477)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionList.load(ExtensionList.java:365)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionList.ensureLoaded(ExtensionList.java:303)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionList.iterator(ExtensionList.java:157)
      Jul 24 09:23:10 juelich java[1729]: at hudson.ExtensionList.get(ExtensionList.java:148)
      Jul 24 09:23:10 juelich java[1729]: at hudson.plugins.sonar.SonarPlugin.postInitialize(SonarPlugin.java:47)
      Jul 24 09:23:10 juelich java[1729]: at hudson.PluginManager$2$1$2.run(PluginManager.java:542)
      Jul 24 09:23:10 juelich java[1729]: at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      Jul 24 09:23:10 juelich java[1729]: at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      Jul 24 09:23:10 juelich java[1729]: at jenkins.model.Jenkins$7.runTask(Jenkins.java:1090)
      Jul 24 09:23:10 juelich java[1729]: at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      Jul 24 09:23:10 juelich java[1729]: at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      Jul 24 09:23:10 juelich java[1729]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      Jul 24 09:23:10 juelich java[1729]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      Jul 24 09:23:10 juelich java[1729]: at java.lang.Thread.run(Thread.java:745)
      Jul 24 09:23:11 juelich java[1729]: Jul 24, 2017 9:23:11 AM jenkins.InitReactorRunner$1 onAttained
      Jul 24 09:23:11 juelich java[1729]: INFO: Started all plugins

      I reverted back to the previous Jenkins Version (and the Pipeline Shared Groovy Library Plugin) with no luck.

       

      Edit:

      After downgrading the Branch API Plugin from 2.0.11 to 2.0.10, the Pipelien Multibranch Plugin from 2.16 to 2.15, the Git Plugin from 3.4.1 to 3.3.2 and the SCM API Plugin from 2.2.0 to 2.1.1 the plugin worked again. (It's mainly the Git Plugin and SCM API Plugin that seems to cause the issue.)

            Unassigned Unassigned
            mvollmer Marc Vollmer
            Votes:
            8 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: