hudson.util.IOException2: Failed to initialize

Jenkins JIRA | Yuu Yamashita | 3 years ago
  1. 0

    After upgrading Jenkins 1.519, Jenkins fails to load plugin which is depending on ruby-runtime (e.g. rbenv) by the exception of `hudson.util.IOException2: Failed to initialize`. {code} Jenkins home directory: /home/yyuu/.jenkins found at: $user.home/.jenkins Jun 27, 2013 8:13:33 PM winstone.Logger logInternal INFO: HTTP Listener started: port=8080 Jun 27, 2013 8:13:33 PM winstone.Logger logInternal INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled Jun 27, 2013 8:13:33 PM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Jun 27, 2013 8:13:37 PM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Jun 27, 2013 8:13:37 PM ruby.RubyRuntimePlugin start INFO: Injecting JRuby into XStream Jun 27, 2013 8:13:41 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin rbenv hudson.util.IOException2: Failed to initialize at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:379) at hudson.PluginManager$2$1$1.run(PluginManager.java:334) 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$7.runTask(Jenkins.java:893) 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.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.Exception: unable to locate gem bundle for rbenv at /home/yyuu/.jenkins/plugins/rbenv/WEB-INF/classes/vendor/gems at ruby.RubyPlugin.initRubyLoadPaths(RubyPlugin.java:202) at ruby.RubyPlugin.start(RubyPlugin.java:158) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:387) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:376) ... 9 more {code} How to reproduce: 1. Install Jenkins 1.519+ 2. Install a Jenkins plugin which is depending on ruby-runtime.

    Jenkins JIRA | 3 years ago | Yuu Yamashita
    hudson.util.IOException2: Failed to initialize
  2. 0

    After upgrading Jenkins 1.519, Jenkins fails to load plugin which is depending on ruby-runtime (e.g. rbenv) by the exception of `hudson.util.IOException2: Failed to initialize`. {code} Jenkins home directory: /home/yyuu/.jenkins found at: $user.home/.jenkins Jun 27, 2013 8:13:33 PM winstone.Logger logInternal INFO: HTTP Listener started: port=8080 Jun 27, 2013 8:13:33 PM winstone.Logger logInternal INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled Jun 27, 2013 8:13:33 PM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Jun 27, 2013 8:13:37 PM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Jun 27, 2013 8:13:37 PM ruby.RubyRuntimePlugin start INFO: Injecting JRuby into XStream Jun 27, 2013 8:13:41 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin rbenv hudson.util.IOException2: Failed to initialize at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:379) at hudson.PluginManager$2$1$1.run(PluginManager.java:334) 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$7.runTask(Jenkins.java:893) 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.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.Exception: unable to locate gem bundle for rbenv at /home/yyuu/.jenkins/plugins/rbenv/WEB-INF/classes/vendor/gems at ruby.RubyPlugin.initRubyLoadPaths(RubyPlugin.java:202) at ruby.RubyPlugin.start(RubyPlugin.java:158) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:387) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:376) ... 9 more {code} How to reproduce: 1. Install Jenkins 1.519+ 2. Install a Jenkins plugin which is depending on ruby-runtime.

    Jenkins JIRA | 3 years ago | Yuu Yamashita
    hudson.util.IOException2: Failed to initialize
  3. 0

    0.0.14 failing with Jenkins 1.521

    GitHub | 3 years ago | kennethkalmer
    hudson.util.IOException2: Failed to initialize
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Update core 1.517 --> 1.520 appears to break this plugin. From /log/all {code} Jun 28, 2013 1:51:08 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin nodeofflinenotification hudson.util.IOException2: Failed to initialize at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:379) at hudson.PluginManager$2$1$1.run(PluginManager.java:334) 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$7.runTask(Jenkins.java:893) 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:619) Caused by: java.lang.Exception: unable to locate gem bundle for nodeofflinenotification at /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/classes/vendor/gems at ruby.RubyPlugin.initRubyLoadPaths(RubyPlugin.java:202) at ruby.RubyPlugin.start(RubyPlugin.java:158) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:387) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:376) ... 9 more {code} More info: indeed the path {code}/localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/classes/vendor/gems{code} does not exist. These are the only files in the plugin directory: {code} % find /localdev/bl/jenkins/plugins/nodeofflinenotification /localdev/bl/jenkins/plugins/nodeofflinenotification /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/lib /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/lib/classes.jar /localdev/bl/jenkins/plugins/nodeofflinenotification/.timestamp2 /localdev/bl/jenkins/plugins/nodeofflinenotification/META-INF /localdev/bl/jenkins/plugins/nodeofflinenotification/META-INF/MANIFEST.MF {code} The required classes appear to exist inside the JAR-file: {code} % jar -tf /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/lib/classes.jar email_node_property/config.erb models/emailnodeproperty.rb models/java_emailcomputerlistener.rb models/src/emailcomputerlistener.rb models/src/java_wrapper.rb vendor/bundle/config vendor/gems/bundler/gems/jenkins-plugin-runtime-39cc789729c0/Gemfile vendor/gems/bundler/gems/jenkins-plugin-runtime-39cc789729c0/README.md ... {code}

    Jenkins JIRA | 3 years ago | Ben Golding
    hudson.util.IOException2: Failed to initialize
  6. 0

    Update core 1.517 --> 1.520 appears to break this plugin. From /log/all {code} Jun 28, 2013 1:51:08 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin nodeofflinenotification hudson.util.IOException2: Failed to initialize at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:379) at hudson.PluginManager$2$1$1.run(PluginManager.java:334) 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$7.runTask(Jenkins.java:893) 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:619) Caused by: java.lang.Exception: unable to locate gem bundle for nodeofflinenotification at /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/classes/vendor/gems at ruby.RubyPlugin.initRubyLoadPaths(RubyPlugin.java:202) at ruby.RubyPlugin.start(RubyPlugin.java:158) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:387) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:376) ... 9 more {code} More info: indeed the path {code}/localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/classes/vendor/gems{code} does not exist. These are the only files in the plugin directory: {code} % find /localdev/bl/jenkins/plugins/nodeofflinenotification /localdev/bl/jenkins/plugins/nodeofflinenotification /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/lib /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/lib/classes.jar /localdev/bl/jenkins/plugins/nodeofflinenotification/.timestamp2 /localdev/bl/jenkins/plugins/nodeofflinenotification/META-INF /localdev/bl/jenkins/plugins/nodeofflinenotification/META-INF/MANIFEST.MF {code} The required classes appear to exist inside the JAR-file: {code} % jar -tf /localdev/bl/jenkins/plugins/nodeofflinenotification/WEB-INF/lib/classes.jar email_node_property/config.erb models/emailnodeproperty.rb models/java_emailcomputerlistener.rb models/src/emailcomputerlistener.rb models/src/java_wrapper.rb vendor/bundle/config vendor/gems/bundler/gems/jenkins-plugin-runtime-39cc789729c0/Gemfile vendor/gems/bundler/gems/jenkins-plugin-runtime-39cc789729c0/README.md ... {code}

    Jenkins JIRA | 3 years ago | Ben Golding
    hudson.util.IOException2: Failed to initialize

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Exception

      unable to locate gem bundle for rbenv at /home/yyuu/.jenkins/plugins/rbenv/WEB-INF/classes/vendor/gems

      at ruby.RubyPlugin.initRubyLoadPaths()
    2. ruby
      RubyPlugin.start
      1. ruby.RubyPlugin.initRubyLoadPaths(RubyPlugin.java:202)
      2. ruby.RubyPlugin.start(RubyPlugin.java:158)
      2 frames
    3. Hudson
      PluginManager$2$1$1.run
      1. hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:387)
      2. hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:376)
      3. hudson.PluginManager$2$1$1.run(PluginManager.java:334)
      3 frames
    4. init
      Reactor.runTask
      1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      2 frames
    5. jenkins.model
      Jenkins$7.runTask
      1. jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
      1 frame
    6. init
      Reactor$Node.run
      1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      2 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:722)
      3 frames