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

GitHub Plugin settings not surviving Jenkins restart

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • github-plugin
    • None
    • Jenkins 2.19.1 (LTS)
      GitHub API Plugin 1.7.7
      GitHub plugin 1.22.1

      This is occurring on the new LTS version of Jenkins, with all plugins updated to latest levels available on stable plugins list:

      The configuration of the GitHub values are not surviving a restart of Jenkins. Each time the server is restarted, the configuration must be recreated in the "Manage Jenkins" -> "Configure System" panels

      At server start time, the following is in the logs:

      WARNING: Failed to load /var/lib/jenkins/github-plugin-configuration.xml
      java.io.IOException: Unable to read /var/lib/jenkins/github-plugin-configuration.xml
              at hudson.XmlFile.unmarshal(XmlFile.java:165)
              at hudson.model.Descriptor.load(Descriptor.java:885)
              at org.jenkinsci.plugins.github.config.GitHubPluginConfig.<init>(GitHubPluginConfig.java:77)
              at org.jenkinsci.plugins.github.config.GitHubPluginConfig$$FastClassByGuice$$cfc1c5a3.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:108)
              at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)
              at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
              at com.google.inject.Scopes$1$1.get(Scopes.java:65)
              at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:424)
              at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
              at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051)
              at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
              at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:386)
              at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:377)
              at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:478)
              at hudson.ExtensionList.load(ExtensionList.java:349)
              at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
              at hudson.ExtensionList.iterator(ExtensionList.java:156)
              at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1430)
              at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:156)
              at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
              at hudson.PluginManager$2$1$2.run(PluginManager.java:542)
              at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
              at jenkins.model.Jenkins$7.runTask(Jenkins.java:1026)
              at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
              at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: github-plugin-configuration
              at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:282)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
              at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
              at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)
              at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)
              at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
              at hudson.util.XStream2.unmarshal(XStream2.java:114)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
              at hudson.XmlFile.unmarshal(XmlFile.java:163)
              ... 35 more
      
      
      

          [JENKINS-38935] GitHub Plugin settings not surviving Jenkins restart

          Kirill Merkushev added a comment - same http://codepaste.net/6sbmwn

          Greg Smith added a comment -

          For information's sake, another bug I opened for the GitHub Plugin on Jenkins LTS version 2.19.1.

          I found them together, and feel they could be related:
          https://issues.jenkins-ci.org/browse/JENKINS-38937

          Greg Smith added a comment - For information's sake, another bug I opened for the GitHub Plugin on Jenkins LTS version 2.19.1. I found them together, and feel they could be related: https://issues.jenkins-ci.org/browse/JENKINS-38937

          Code changed in jenkins
          User: Kirill Merkushev
          Path:
          src/main/java/org/jenkinsci/plugins/github/GitHubPlugin.java
          http://jenkins-ci.org/commit/github-plugin/b9169402c380a4e9b8d758b1a6b5bedace551807
          Log:
          JENKINS-38935 Should add aliases on base plugin methods as 'start'

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kirill Merkushev Path: src/main/java/org/jenkinsci/plugins/github/GitHubPlugin.java http://jenkins-ci.org/commit/github-plugin/b9169402c380a4e9b8d758b1a6b5bedace551807 Log: JENKINS-38935 Should add aliases on base plugin methods as 'start'

          should be fixed in 1.22.2

          Kirill Merkushev added a comment - should be fixed in 1.22.2

          Greg Smith added a comment -

          This is fixed in 1.22.2

          After installing 1.22.2, I was able to restart Jenkins and the configuration was loaded from disk, without above original error.

          Greg Smith added a comment - This is fixed in 1.22.2 After installing 1.22.2, I was able to restart Jenkins and the configuration was loaded from disk, without above original error.

          thanks for the report

          Kirill Merkushev added a comment - thanks for the report

          Greg Smith added a comment -

          This is verified in latest builds

          Greg Smith added a comment - This is verified in latest builds

            lanwen Kirill Merkushev
            gregcovertsmith Greg Smith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: