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

Failure to load many builds when Jenkins start

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core, git-plugin
    • Labels:
      None
    • Environment:
      Debian Squeeze, amd64, Jenkins installed using the Debian package from pkg.jenkins-ci.org.
    • Similar Issues:

      Description

      When Jenkins is restarted, it fails to load most of the builds. The jenkins.log file contains many exceptions like this one:

      hudson.util.IOException2: Unable to read /var/lib/jenkins/jobs/bones/builds/2011-12-30_16-42-43/build.xml
              at hudson.XmlFile.unmarshal(XmlFile.java:160)
              at hudson.model.Run.reload(Run.java:283)
              at hudson.model.Run.<init>(Run.java:272)
              at hudson.model.AbstractBuild.<init>(AbstractBuild.java:162)
              at hudson.model.Build.<init>(Build.java:100)
              at hudson.model.FreeStyleBuild.<init>(FreeStyleBuild.java:41)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at hudson.model.AbstractProject.loadBuild(AbstractProject.java:949)
              at hudson.model.AbstractProject$1.create(AbstractProject.java:256)
              at hudson.model.AbstractProject$1.create(AbstractProject.java:254)
              at hudson.model.RunMap.load(RunMap.java:221)
              at hudson.model.AbstractProject.onLoad(AbstractProject.java:254)
              at hudson.model.Project.onLoad(Project.java:88)
              at hudson.model.Items.load(Items.java:115)
              at jenkins.model.Jenkins$14.run(Jenkins.java:2360)
              at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
              at jenkins.model.Jenkins$5.runTask(Jenkins.java:800)
              at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
              at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: com.thoughtworks.xstream.converters.ConversionException: Cannot deserialize object with new readObject()/writeObject() methods
      ---- Debugging information ----
      class               : hudson.model.FreeStyleBuild
      required-type       : org.eclipse.jgit.lib.ObjectId
      path                : /build/actions/hudson.plugins.git.util.BuildData/buildsByBranchName/entry/hudson.plugins.git.util.Build/revision/sha1
      line number         : 18
      -------------------------------
              at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doUnmarshal(SerializableConverter.java:281)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
              at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:290)
              at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:233)
              at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
              at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:290)
              at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:233)
              at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
              at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
              at com.thoughtworks.xstream.converters.collections.MapConverter.populateMap(MapConverter.java:79)
              at com.thoughtworks.xstream.converters.collections.MapConverter.unmarshal(MapConverter.java:66)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
              at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:290)
              at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:233)
              at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
              at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
              at hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:85)
              at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
              at hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:76)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
              at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:290)
              at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:233)
              at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
              at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
              at hudson.util.XStream2.unmarshal(XStream2.java:91)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
              at hudson.XmlFile.unmarshal(XmlFile.java:156)
              ... 25 more

      We're using Jenkins 1.445 but I think the problems is present for several versions; I can't tell when it started.

      The consequence is that many builds are missing in the UI. If the last build of a job is missing, a new build may be triggered (ie. for those depending on a VCS commit).

      A workaround is to click on "Reload Configuration from Disk" in the "Manage Jenkins" page. This properly reloads all builds and they are visible again.

        Attachments

          Issue Links

            Activity

            Hide
            albers Harald Albers added a comment - - edited

            Same setup with identical problem here. Reloading from disk solves the issue for the current session. Downgrading git plugin to 1.1.14 permanently resolves the issue.

            Show
            albers Harald Albers added a comment - - edited Same setup with identical problem here. Reloading from disk solves the issue for the current session. Downgrading git plugin to 1.1.14 permanently resolves the issue.
            Hide
            typek_pb Peter Butkovic added a comment -

            could someone provide steps for workaround? where is the 1.1.14 version available for download?

            Show
            typek_pb Peter Butkovic added a comment - could someone provide steps for workaround? where is the 1.1.14 version available for download?
            Hide
            dumbbell Jean-Sébastien Pédron added a comment -

            typek_pb: IIRC, you should have a "Downgrade to $VERSION" button in the "Installed plugins" tab in the Plugins management interface.

            Show
            dumbbell Jean-Sébastien Pédron added a comment - typek_pb: IIRC, you should have a "Downgrade to $VERSION" button in the "Installed plugins" tab in the Plugins management interface.
            Hide
            albers Harald Albers added a comment -

            typek_pb: you can download it from http://updates.jenkins-ci.org/download/plugins/git/1.1.14/git.hpi and install it manually using jenkins' plugin upload feature.

            Show
            albers Harald Albers added a comment - typek_pb: you can download it from http://updates.jenkins-ci.org/download/plugins/git/1.1.14/git.hpi and install it manually using jenkins' plugin upload feature.
            Hide
            zaytsev Yury Zaytsev added a comment -

            I think this issue is a duplicate of JENKINS-12369 and has now been resolved.

            Show
            zaytsev Yury Zaytsev added a comment - I think this issue is a duplicate of JENKINS-12369 and has now been resolved.

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                dumbbell Jean-Sébastien Pédron
              • Votes:
                16 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: