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

Jenkins 1.518 fails to load plugin ruby-runtime

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • ruby-runtime
    • None
    • OS: Linux, Debian squeeze 6.0.7
      Kernel: Linux siran 3.2.0-0.bpo.4-amd64 #1 SMP Debian 3.2.41-2+deb7u2~bpo60+1 x86_64 GNU/Linux

      After upgrading to Jenkins 1.518, my Ruby projects (using the rvm plugin) are not loaded. The log says:

      INFO: Beginning extraction from war file
      Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
      Jun 12, 2013 11:24:38 AM winstone.Logger logInternal
      INFO: HTTP Listener started: port=8080
      Jun 12, 2013 11:24:38 AM winstone.Logger logInternal
      INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled
      Jun 12, 2013 11:24:39 AM jenkins.InitReactorRunner$1 onAttained
      INFO: Started initialization
      Jun 12, 2013 11:24:39 AM jenkins.InitReactorRunner$1 onAttained
      INFO: Listed all plugins
      Jun 12, 2013 11:24:39 AM ruby.RubyRuntimePlugin start
      INFO: Injecting JRuby into XStream
      java.lang.IncompatibleClassChangeError: Found class com.kenai.jffi.InvocationBuffer, but interface was expected
              at com.kenai.jaffl.provider.jffi.AsmRuntime.marshal(AsmRuntime.java:169)
              at org.jruby.ext.posix.LinuxLibC$jaffl$0.setenv(Unknown Source)
              at org.jruby.ext.posix.BaseNativePOSIX.setenv(BaseNativePOSIX.java:221)
              at org.jruby.ext.posix.LazyPOSIX.setenv(LazyPOSIX.java:263)
              at org.jruby.RubyGlobal$StringOnlyRubyHash.case_aware_op_aset(RubyGlobal.java:176)
              at org.jruby.RubyGlobal$CaseInsensitiveStringOnlyRubyHash.op_aset(RubyGlobal.java:87)
              at org.jruby.RubyHash$i$2$0$op_aset.call(RubyHash$i$2$0$op_aset.gen:65535)
              at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)
              at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203)
              at org.jruby.ast.AttrAssignTwoArgNode.interpret(AttrAssignTwoArgNode.java:42)
              at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
              at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
              at org.jruby.ast.RootNode.interpret(RootNode.java:129)
              at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:120)
              at org.jruby.Ruby.runInterpreter(Ruby.java:720)
              at org.jruby.Ruby.runInterpreter(Ruby.java:728)
              at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:119)
              at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
              at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
              at org.kohsuke.stapler.jelly.jruby.haml.HamlLanguage.createContainer(HamlLanguage.java:28)
              at org.kohsuke.stapler.jelly.jruby.JRubyFacet.<init>(JRubyFacet.java:71)
              at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:39)
              at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:30)
              at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:379)
              at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:368)
              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:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:636)
      Jun 12, 2013 11:24:41 AM jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed Loading plugin ruby-runtime
      hudson.util.IOException2: Failed to initialize
              at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:371)
              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:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:636)
      Caused by: org.jruby.embed.EvalFailedException: java.lang.IncompatibleClassChangeError: Found class com.kenai.jffi.InvocationBuffer, but interface was expected
              at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:141)
              at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
              at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
              at org.kohsuke.stapler.jelly.jruby.haml.HamlLanguage.createContainer(HamlLanguage.java:28)
              at org.kohsuke.stapler.jelly.jruby.JRubyFacet.<init>(JRubyFacet.java:71)
              at ruby.RubyRuntimePlugin.registerJRubyFacet(RubyRuntimePlugin.java:39)
              at ruby.RubyRuntimePlugin.start(RubyRuntimePlugin.java:30)
              at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:379)
              at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:368)
              ... 9 more
      Caused by: java.lang.IncompatibleClassChangeError: Found class com.kenai.jffi.InvocationBuffer, but interface was expected
              at com.kenai.jaffl.provider.jffi.AsmRuntime.marshal(AsmRuntime.java:169)
              at org.jruby.ext.posix.LinuxLibC$jaffl$0.setenv(Unknown Source)
              at org.jruby.ext.posix.BaseNativePOSIX.setenv(BaseNativePOSIX.java:221)
              at org.jruby.ext.posix.LazyPOSIX.setenv(LazyPOSIX.java:263)
              at org.jruby.RubyGlobal$StringOnlyRubyHash.case_aware_op_aset(RubyGlobal.java:176)
              at org.jruby.RubyGlobal$CaseInsensitiveStringOnlyRubyHash.op_aset(RubyGlobal.java:87)
              at org.jruby.RubyHash$i$2$0$op_aset.call(RubyHash$i$2$0$op_aset.gen:65535)
              at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)
              at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203)
              at org.jruby.ast.AttrAssignTwoArgNode.interpret(AttrAssignTwoArgNode.java:42)
              at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
              at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
              at org.jruby.ast.RootNode.interpret(RootNode.java:129)
              at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:120)
              at org.jruby.Ruby.runInterpreter(Ruby.java:720)
              at org.jruby.Ruby.runInterpreter(Ruby.java:728)
              at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:119)
              ... 17 more
      

          [JENKINS-18311] Jenkins 1.518 fails to load plugin ruby-runtime

          Mike Saffitz added a comment -

          +1 Seeing this on Amazon Linux release 2013.03. Downgrading to 1.517 fixed the issue.

          Mike Saffitz added a comment - +1 Seeing this on Amazon Linux release 2013.03. Downgrading to 1.517 fixed the issue.

          Yuu Yamashita added a comment -

          +1

          I met same error on Debian sid, and reported as JENKINS-18310. These issues should be merged into one.

          Yuu Yamashita added a comment - +1 I met same error on Debian sid, and reported as JENKINS-18310 . These issues should be merged into one.

          hugo fonseca added a comment - - edited

          +1 here is failing too

          hugo fonseca added a comment - - edited +1 here is failing too

          Kent Rancourt added a comment -

          Same issue here.

          Kent Rancourt added a comment - Same issue here.

          Yuu Yamashita added a comment -

          Updating ruby-runtime of jenkins.rb to the lastest development (+my patch) version fixes the problem on my installation of 1.518. I created issues on github for this.

          Yuu Yamashita added a comment - Updating ruby-runtime of jenkins.rb to the lastest development (+ my patch ) version fixes the problem on my installation of 1.518. I created issues on github for this. https://github.com/jenkinsci/jenkins.rb/pull/81 https://github.com/jenkinsci/jenkins.rb/issues/82

          Hi, I also see this issue. I could not upgrade 1.518 / 1.519. Many plugins fails to load and Jenkins wont come up. Please release the fixed jenkins.

          Thanks,
          Bakkiaraj M

          Bakkiaraj Murugesan added a comment - Hi, I also see this issue. I could not upgrade 1.518 / 1.519. Many plugins fails to load and Jenkins wont come up. Please release the fixed jenkins. Thanks, Bakkiaraj M

          Yuu Yamashita added a comment -

          This problem with Jenkins 1.518 has been fixed in ruby-runtime 0.11. See also https://github.com/jenkinsci/jenkins.rb/issues/82.

          // But I found another problem of ruby-runtime 0.11 on Jenkins 1.519....
          // I'll report it later.

          Yuu Yamashita added a comment - This problem with Jenkins 1.518 has been fixed in ruby-runtime 0.11. See also https://github.com/jenkinsci/jenkins.rb/issues/82 . // But I found another problem of ruby-runtime 0.11 on Jenkins 1.519.... // I'll report it later.

          Yuu Yamashita added a comment -

          This problem has been fixed in ruby-runtime 0.11.

          Yuu Yamashita added a comment - This problem has been fixed in ruby-runtime 0.11.

          In Jenkins 1.555 this issue or related issue. RVM plugin - which installs ruby-runtime - will crash Jenkins. Crash occurs after some time or immediately by navigating to manage plugins. Log shows that memory is taken until out of memory. Service then crashes.

          RVM plugin will not work. No matter what.

          RVM 1.25.22 (stable).

          I'm creating a separate issue for this.

          Onno van der Straaten added a comment - In Jenkins 1.555 this issue or related issue. RVM plugin - which installs ruby-runtime - will crash Jenkins. Crash occurs after some time or immediately by navigating to manage plugins. Log shows that memory is taken until out of memory. Service then crashes. RVM plugin will not work. No matter what. RVM 1.25.22 (stable). I'm creating a separate issue for this.

            Unassigned Unassigned
            bjp Björn Peemöller
            Votes:
            12 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: