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

Jenkins fails to start with Exception after update to 2.144

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: core, gradle-plugin
    • Labels:
      None
    • Environment:
      Operating system: CentOS release 6.10 x86_64
      JRE running Jenkins: OpenJDK 1.8.0_181-b13
      Jenkins version: 2.144 (updated from 2.142), installed via yum from repository
      Gradle Plugin: 1.29
    • Similar Issues:

      Description

      After updating Jenkins from 2.142 to 2.144 via yum, Jenkins does not successfully start up. On accessing the web UI the following exception is displayed:

      java.lang.IllegalArgumentException: Comparison method violates its general contract!
      	at java.util.ComparableTimSort.mergeHi(ComparableTimSort.java:866)
      	at java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:483)
      	at java.util.ComparableTimSort.mergeForceCollapse(ComparableTimSort.java:422)
      	at java.util.ComparableTimSort.sort(ComparableTimSort.java:222)
      	at java.util.Arrays.sort(Arrays.java:1312)
      	at java.util.Arrays.sort(Arrays.java:1506)
      	at java.util.ArrayList.sort(ArrayList.java:1462)
      	at java.util.Collections.sort(Collections.java:141)
      	at hudson.ExtensionList.sort(ExtensionList.java:400)
      	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:320)
      	at hudson.ExtensionList.iterator(ExtensionList.java:172)
      	at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1522)
      	at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:158)
      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:1066)
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      	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:48)
      	at jenkins.model.Jenkins.executeReactor(Jenkins.java:1100)
      	at jenkins.model.Jenkins.<init>(Jenkins.java:904)
      	at hudson.model.Hudson.<init>(Hudson.java:85)
      	at hudson.model.Hudson.<init>(Hudson.java:81)
      	at hudson.WebAppMain$3.run(WebAppMain.java:233)
      Caused: hudson.util.HudsonFailedToLoad
      	at hudson.WebAppMain$3.run(WebAppMain.java:250)
      Page generated: Oct 4, 2018 12:34:51 PM CESTJenkins ver. 2.144

      In the jenkins.log log file there are many exceptions. I will attach text files with examples. Some of the exceptions seem to point to the Gradle Plugin but I may be wrong about that. I can't easily uninstall the Gradle Plugin to test, because we depend on two plugins which have the Gradle Plugin as a dependency.

      For now a Jenkins downgrade to 2.142 solves the issue.

        Attachments

        1. 1.txt
          6 kB
        2. 2.txt
          2 kB
        3. 3.txt
          2 kB
        4. 4.txt
          2 kB
        5. 5.txt
          3 kB

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Well, there is nothing in the stack traces I saw implicating ruby-runtime specifically, whereas I did see some stuff indicating something was very broken in the gradle plugin.

          Show
          jglick Jesse Glick added a comment - Well, there is nothing in the stack traces I saw implicating ruby-runtime specifically, whereas I did see some stuff indicating something was very broken in the gradle plugin.
          Hide
          shimizuf Frank Shimizu added a comment -

          Thank you for all the information so far, especially about the deprecation of ruby-runtime. I was able to disable ruby-runtime since we do not seem to actually use its dependency. Which is the GitLab Hook Plugin.

           

          I also manually downgraded the gradle plugin to 1.24 which for me seems to be the latest release with matching checksums. Now the Jenkins update to 2.144 seems to have succeeded. Jenkins starts up successfully, the many Exceptions in the log are gone and we're testing whether everything works. I may also proceed to update to 2.145 since it's available now.

           

          Not sure if the issue with the gradle plugin checksums happens only to us or others too. Should I close this issue if we find no more problems with the update and create a new one concerning the gradle plugin checksums?

          Show
          shimizuf Frank Shimizu added a comment - Thank you for all the information so far, especially about the deprecation of ruby-runtime. I was able to disable ruby-runtime since we do not seem to actually use its dependency. Which is the GitLab Hook Plugin.   I also manually downgraded the gradle plugin to 1.24 which for me seems to be the latest release with matching checksums. Now the Jenkins update to 2.144 seems to have succeeded. Jenkins starts up successfully, the many Exceptions in the log are gone and we're testing whether everything works. I may also proceed to update to 2.145 since it's available now.   Not sure if the issue with the gradle plugin checksums happens only to us or others too. Should I close this issue if we find no more problems with the update and create a new one concerning the gradle plugin checksums?
          Hide
          shimizuf Frank Shimizu added a comment -

          Update to 2.145 was successful too. Again thanks for the helpful information. I'm setting this issue to Resolved.

          Show
          shimizuf Frank Shimizu added a comment - Update to 2.145 was successful too. Again thanks for the helpful information. I'm setting this issue to Resolved.
          Hide
          shimizuf Frank Shimizu added a comment - - edited

          Fixed by downgrading to a gradle plugin version with matching checksums.

          Show
          shimizuf Frank Shimizu added a comment - - edited Fixed by downgrading to a gradle plugin version with matching checksums.
          Hide
          jglick Jesse Glick added a comment -

          Not sure what exactly happened here.

          Show
          jglick Jesse Glick added a comment - Not sure what exactly happened here.

            People

            Assignee:
            wolfs Stefan Wolf
            Reporter:
            shimizuf Frank Shimizu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: