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

Stack Trace on startup

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Multi-branch plugin causes jenkins to crash on startup when it searches for config files in symbolic links:

      hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
      	at hudson.WebAppMain$3.run(WebAppMain.java:237)
      Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
      	at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
      	at jenkins.InitReactorRunner.run(InitReactorRunner.java:44)
      	at jenkins.model.Jenkins.executeReactor(Jenkins.java:916)
      	at jenkins.model.Jenkins.<init>(Jenkins.java:815)
      	at hudson.model.Hudson.<init>(Hudson.java:85)
      	at hudson.model.Hudson.<init>(Hudson.java:81)
      	at hudson.WebAppMain$3.run(WebAppMain.java:225)
      Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException
      	at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
      	at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      	at jenkins.model.Jenkins$7.runTask(Jenkins.java:905)
      	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: 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:106)
      	... 8 more
      Caused by: java.io.IOException: Tried to treat 'D:\Jenkins_Home\jobs\RaidenDevelopment\promotions\Upload packages to NuGet share\lastStable' as a directory, but could not get a listing
      	at com.github.mjdetullio.jenkins.plugins.multibranch.TemplateDrivenMultiBranchProject.getConfigFiles(TemplateDrivenMultiBranchProject.java:717)
      	at com.github.mjdetullio.jenkins.plugins.multibranch.TemplateDrivenMultiBranchProject.getConfigFiles(TemplateDrivenMultiBranchProject.java:732)
      	at com.github.mjdetullio.jenkins.plugins.multibranch.TemplateDrivenMultiBranchProject.getConfigFiles(TemplateDrivenMultiBranchProject.java:732)
      	at com.github.mjdetullio.jenkins.plugins.multibranch.TemplateDrivenMultiBranchProject.getConfigFiles(TemplateDrivenMultiBranchProject.java:732)
      	at com.github.mjdetullio.jenkins.plugins.multibranch.TemplateDrivenMultiBranchProject.getConfigFiles(TemplateDrivenMultiBranchProject.java:732)
      	at com.github.mjdetullio.jenkins.plugins.multibranch.TemplateDrivenMultiBranchProject.migrate(TemplateDrivenMultiBranchProject.java:758)
      	... 13 more
      

        Attachments

          Issue Links

            Activity

            Hide
            dhs Dirk Heinrichs added a comment - - edited

            Did another restart and this time it came up fine. But in the meantime I also did a Jenkins update from 2.19.4 to 2.32.1 (this is a playground environment anyway).

            Show
            dhs Dirk Heinrichs added a comment - - edited Did another restart and this time it came up fine. But in the meantime I also did a Jenkins update from 2.19.4 to 2.32.1 (this is a playground environment anyway).
            Hide
            plef Pe Le added a comment -

            Well I can confirm that only removing the invalid links does not help, the crash can occur again. So I think one has to either apply the patch provided above or do the workaround (and make sure to remove the invalid links to clean the mess).

            Show
            plef Pe Le added a comment - Well I can confirm that only removing the invalid links does not help, the crash can occur again. So I think one has to either apply the patch provided above or do the workaround (and make sure to remove the invalid links to clean the mess).
            Hide
            mjdetullio Matthew DeTullio added a comment -

            Fixed in version 0.6

            Show
            mjdetullio Matthew DeTullio added a comment - Fixed in version 0.6
            Hide
            plef Pe Le added a comment - - edited

            Just updated the Multi Branch Project plugin to 0.6, the Environment Script plugin to 1.2.5; I had to get rid of one (possibly forgotten) invalid symlink from one of the folders to fix the crash which occured again. Now Jenkins runs fine, will see if any ongoing builds will keep it.

            Show
            plef Pe Le added a comment - - edited Just updated the Multi Branch Project plugin to 0.6, the Environment Script plugin to 1.2.5; I had to get rid of one (possibly forgotten) invalid symlink from one of the folders to fix the crash which occured again. Now Jenkins runs fine, will see if any ongoing builds will keep it.
            Hide
            heropurpose D S added a comment -

            Hi, Just to be clear I followed the steps above to remove the plugin clearing the symlinks is the step after removing the plugin

            Show
            heropurpose D S added a comment - Hi, Just to be clear I followed the steps above to remove the plugin clearing the symlinks is the step after removing the plugin

              People

              • Assignee:
                mjdetullio Matthew DeTullio
                Reporter:
                mdkf Michael Fowler
              • Votes:
                15 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: