3
3

More than 5 years have passed since last update.

Jenkinsをアップデートしたらrvmプラグインを使ったジョブが表示されなくなった話

Last updated at Posted at 2013-10-28

Jenkinsのバージョンを1.533->1.536に上げたところ以下のようなエラーが出てrvmプラグインを利用しているジョブが表示されなくなった

hudson.util.IOException2: Unable to read /var/lib/jenkins/jobs/hogehoge/config.xml
        at hudson.XmlFile.read(XmlFile.java:147)
        at hudson.model.Items.load(Items.java:220)
        at jenkins.model.Jenkins$18.run(Jenkins.java:2575)
        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:904)
        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:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
Caused by: com.thoughtworks.xstream.converters.ConversionException: Undefined class: Java::Hudson::RemoteLauncher : Undefined class: Java::Hudson::RemoteLauncher
---- Debugging information ----
message             : Undefined class: Java::Hudson::RemoteLauncher
cause-exception     : java.lang.IllegalArgumentException
cause-message       : Undefined class: Java::Hudson::RemoteLauncher
class               : org.jruby.runtime.builtin.IRubyObject
required-type       : org.jruby.runtime.builtin.IRubyObject
converter-type      : org.jenkinsci.jruby.JRubyXStreamConverter
path                : /project/buildWrappers/ruby-proxy-object/ruby-object/object/launcher/native
line number         : 89
class[1]            : org.jenkinsci.jruby.JRubyMapper$DynamicProxy
converter-type[1]   : org.jenkinsci.jruby.JavaProxyConverter
class[2]            : hudson.util.DescribableList
converter-type[2]   : hudson.util.DescribableList$ConverterImpl
class[3]            : hudson.model.FreeStyleProject
converter-type[3]   : hudson.util.RobustReflectionConverter
version             : not available
-------------------------------
  • この時点で以下のプラグインがインストール済み
    • rvm 0.4
    • ruby-runtime 0.12

解決法

  • ruby-runtimeプラグイン(rvmプラグインが依存してる)を再インストールする
    • 一度アンインストールしてからインストールし直すことで問題が解決した
    • インストールしたのは ruby-runtime 0.12

おまけ

  • 別環境で1.517->1.536に上げようとして同じ現象に出くわしたが、こちらは1.517に戻すと直った
    • 1.518だとエラーが出る、1.517は出ない
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3