删除ruby-runtime插件后Jenkins启动出现问题

kd3sttzy  于 2023-03-17  发布在  Jenkins
关注(0)|答案(1)|浏览(231)

我是Jenkins的新手,所以我自己无法解决我的问题。在Docker中运行Jenkins(v2.393)。我通过UI删除了一个ruby-runtime插件。现在Jenkins在启动时显示错误:

java.lang.NoClassDefFoundError: org/jruby/javasupport/proxy/InternalJavaProxy
    at org.jenkinsci.jruby.JRubyMapper.serializedClass(JRubyMapper.java:20)
    at hudson.util.xstream.MapperDelegate.serializedClass(MapperDelegate.java:41)
    at com.thoughtworks.xstream.mapper.MapperWrapper.serializedClass(MapperWrapper.java:121)
    at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
    at com.thoughtworks.xstream.XStream.marshal(XStream.java:1303)
    at com.thoughtworks.xstream.XStream.marshal(XStream.java:1292)
    at com.thoughtworks.xstream.XStream.toXML(XStream.java:1265)
    at hudson.XmlFile.write(XmlFile.java:213)
    at jenkins.model.Jenkins.save(Jenkins.java:3566)
    at jenkins.model.Jenkins.<init>(Jenkins.java:1008)
    at hudson.model.Hudson.<init>(Hudson.java:86)
    at hudson.model.Hudson.<init>(Hudson.java:82)
    at hudson.WebAppMain$3.run(WebAppMain.java:247)
Caused: hudson.util.HudsonFailedToLoad
    at hudson.WebAppMain$3.run(WebAppMain.java:261)

我认为ruby-runtime有一些依赖项导致了失败。你能告诉我如何修复吗?

hyrbngr7

hyrbngr71#

我在这里发现:
https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282
问题是我们的Jenkins很长时间没有更新,一些插件已经过时了。Jenkins映像更新后,启动问题出现了。因此,我创建了一个新的jenkins_home文件夹,只安装活动插件。之后,我从旧的jenkins_home文件夹复制了所有需要的信息。当然,这不是最好的解决方案,但现在它起作用了。

相关问题