Removing versioncolumn plugin and restarting jenkins makes jenkins UI unusable (showing exception below nodes in build executor status)

      Manual installation of plugin made jenkins to start UI normally.

       

      2022-08-14 04:58:01.263+0000 [id=23]    SEVERE  h.p.g.b.GlobalBuildStatsPluginSaver#reloadPlugin: Unable to read /local/jenkins/global-build-stats.xml
      java.lang.NullPointerException
              at java.base/java.util.ArrayList.addAll(ArrayList.java:702)
              at hudson.plugins.global_build_stats.model.JobBuildResultSharder.load(JobBuildResultSharder.java:143)
              at hudson.plugins.global_build_stats.xstream.migration.AbstractMigrator.readGlobalBuildStatsPOJO(AbstractMigrator.java:35)
              at hudson.plugins.global_build_stats.xstream.GlobalBuildStatsXStreamConverter.unmarshal(GlobalBuildStatsXStreamConverter.java:159)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)
      Caused: com.thoughtworks.xstream.converters.ConversionException:
      ---- Debugging information ----
      cause-exception     : java.lang.NullPointerException
      cause-message       : null
      class               : hudson.plugins.global_build_stats.GlobalBuildStatsPlugin
      required-type       : hudson.plugins.global_build_stats.GlobalBuildStatsPlugin
      converter-type      : hudson.plugins.global_build_stats.xstream.GlobalBuildStatsXStreamConverter
      path                : /hudson.plugins.global_build_stats.GlobalBuildStatsPlugin
      line number         : 2
      version             : not available
      -------------------------------
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)
              at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52)
              at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136)
              at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421)
              at hudson.util.XStream2.unmarshal(XStream2.java:189)
              at hudson.util.XStream2.unmarshal(XStream2.java:160)
              at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399)
              at hudson.XmlFile.unmarshal(XmlFile.java:196)
      Caused: java.io.IOException: Unable to read /local/jenkins/global-build-stats.xml
              at hudson.XmlFile.unmarshal(XmlFile.java:199)
              at hudson.XmlFile.unmarshal(XmlFile.java:179)
              at hudson.Plugin.load(Plugin.java:271)
              at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin.load(GlobalBuildStatsPlugin.java:102)
              at hudson.plugins.global_build_stats.business.GlobalBuildStatsPluginSaver.reloadPlugin(GlobalBuildStatsPluginSaver.java:99)
              at hudson.plugins.global_build_stats.business.GlobalBuildStatsBusiness.reloadPlugin(GlobalBuildStatsBusiness.java:395)
              at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin$GlobalBuildStatsItemListener.onLoaded(GlobalBuildStatsPlugin.java:157)
              at jenkins.model.Jenkins.<init>(Jenkins.java:1036)
              at hudson.model.Hudson.<init>(Hudson.java:86)
              at hudson.model.Hudson.<init>(Hudson.java:82)
              at hudson.WebAppMain$3.run(WebAppMain.java:247)
      2022-08-14 04:58:01.341+0000 [id=23]    INFO    hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running
      2022-08-14 04:58:07.591+0000 [id=12]    WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID ecfb4869-aa8d-4579-81e4-6ce093ebd574
      org.apache.commons.jelly.JellyTagException: jar:file:/local/jenkins/%25C/jenkins/war/WEB-INF/lib/jenkins-core-2.346.3.jar!/hudson/model/View/sidepanel.jelly:75:50: <st:include> org.apache.commons.jelly.JellyTagException: jar:file:/local/jenkins/%25C/jenkins/war/WEB-INF/lib/jenkins-core-2.346.3.jar!/lib/hudson/executors.jelly:41:70: <j:when> java.lang.NullPointerException
              at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:719)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:277)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
              at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)

        1. jenkins.png
          jenkins.png
          39 kB
        2. plugins.txt
          2 kB
        3. run-jenkins.sh
          0.9 kB

          [JENKINS-69336] removing versioncolumn plugin bricks UI

          In our case removing global-build-stats plugin first did the trick, afterwards removing versioncolumn worked without issues 

          daniel virasto added a comment - In our case removing global-build-stats plugin first did the trick, afterwards removing versioncolumn worked without issues 

          Mark Waite added a comment -

          I am unable to duplicate the issue. Steps that I tried:

          1. Create a plugins.txt file that defines the exact plugin versions I'm testing
          2. Create a run-jenkins.sh shell script that downloads Jenkins 2.440.3 and the plugins defined in plugins.txt
          3. Run the run-jenkins.sh shell script and complete the setup wizard
          4. Define a freestyle project and run it several times
          5. Define a Pipeline project and run it several times
          6. Define a global build stats graph and confirm that it shows the results of the recent builds
          7. Uninstall the version node monitors plugin
          8. Restart Jenkins
          9. Confirm that Jenkins restarts without an issue and that that user interface behaves as expected.

          Mark Waite added a comment - I am unable to duplicate the issue. Steps that I tried: Create a plugins.txt file that defines the exact plugin versions I'm testing Create a run-jenkins.sh shell script that downloads Jenkins 2.440.3 and the plugins defined in plugins.txt Run the run-jenkins.sh shell script and complete the setup wizard Define a freestyle project and run it several times Define a Pipeline project and run it several times Define a global build stats graph and confirm that it shows the results of the recent builds Uninstall the version node monitors plugin Restart Jenkins Confirm that Jenkins restarts without an issue and that that user interface behaves as expected.

            Unassigned Unassigned
            daniel_virasto daniel virasto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: