# Jenkins war update caused issue when Ruby runtime plugin is installed

**URL:** <https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282>\
**Category:** Using Jenkins\
**Created:** [August 5, 2022, 8:05am UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282 "2022-08-05T08:05:00Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aravindan](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@Aravindan](https://community.jenkins.io/u/Aravindan)\
**Post date:** [August 5, 2022, 8:05am UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/1 "2022-08-05T08:05:00Z")

</div>

Initially got this error :

```auto
Error
AWT is not properly configured on this server. 
Perhaps you need to run your container with "-Djava.awt.headless=true"? 
See also: https://www.jenkins.io/redirect/troubleshooting/java.awt.headless

```

Fixed it using this : \* `sudo apt install fontconfig`

Post this am getting the below error :

Help is appreciated

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:1266)  
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)  
at com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)  
at hudson.XmlFile.write(XmlFile.java:213)  
at jenkins.model.Jenkins.save(Jenkins.java:3545)  
at jenkins.model.Jenkins.(Jenkins.java:1005)  
at hudson.model.Hudson.(Hudson.java:86)  
at hudson.model.Hudson.(Hudson.java:82)  
at hudson.WebAppMain$3.run(WebAppMain.java:247)  
Caused: hudson.util.HudsonFailedToLoad  
at hudson.WebAppMain$3.run(WebAppMain.java:261)

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 5, 2022, 12:46pm UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/2 "2022-08-05T12:46:26Z")

</div>

There may be deprecated plugins installed on your system that need to be removed.

The Jenkins project stopped distributing the Ruby runtime plugin, the Python runtime plugin, and plugins that depend on those two plugins in January 2022. You can find a detailed list of plugins and more information in the blog post:

> **[Deprecating non-Java plugins](https://www.jenkins.io/blog/2021/12/22/deprecated-ruby-runtime/)**
>
> This blogpost announces deprecation and the upcoming depublishing of Jenkins plugins based on the Ruby Runtime and the Python Runtime, including Gitlab Hook, Cucumber, pyenv and Rvm plugins.

---

<div class="post-metadata">

**Author:** ![Aravindan](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@Aravindan](https://community.jenkins.io/u/Aravindan)\
**Post date:** [August 5, 2022, 2:31pm UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/3 "2022-08-05T14:31:36Z")

</div>

Thanks for pointing it out .

I had disabled ruby and python plugins and now am getting this error , while loading .

Restarted Jenkins, upgraded to Aug 2nd WAR file , still no luck .

## A problem occurred while processing the request.

Logging ID=31aef4a2-31d8-430b-9fb6-c3f5fd008c50

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 5, 2022, 2:52pm UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/4 "2022-08-05T14:52:48Z")

</div>

> [@Aravindan](#):
>
> Restarted Jenkins, upgraded to Aug 2nd WAR file , still no luck .
> 
> ## A problem occurred while processing the request.
> 
> Logging ID=31aef4a2-31d8-430b-9fb6-c3f5fd008c50

That ID is written to the Jenkins log file with a stack trace. Read the Jenkins log to see if it guides you on your next step.

I assume that disabling the deprecated plugins is enough, but ultimately you’ll want to remove them completely. They are no longer usable.

The ruby runtime plugin does not support Java 11 at all. Jenkins weekly already requires Java 11 as its minimum Java version. Jenkins LTS 2.361.1 in September 2022 will require Java 11 as its minimum Java version.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [August 5, 2022, 8:24pm UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/5 "2022-08-05T20:24:37Z")

</div>

[Deprecating non-Java plugins](https://www.jenkins.io/blog/2021/12/22/deprecated-ruby-runtime/#affected-plugins) has the full list of plugins you should remove.

---

<div class="post-metadata">

**Author:** ![phamrak](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/phamrak/32/2372_2.png) [@phamrak](https://community.jenkins.io/u/phamrak)\
**Post date:** [September 22, 2022, 9:29pm UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/6 "2022-09-22T21:29:32Z")

</div>

The `2.361.1` version is unable to start in my setup due to the same exception as mentioned on beginning of this post:

```auto
java.lang.NoClassDefFoundError: org/jruby/javasupport/proxy/InternalJavaProxy
...
Caused: hudson.util.HudsonFailedToLoad
	at hudson.WebAppMain$3.run(WebAppMain.java:261)

```

I went through the list of [Deprecating non-Java plugins](https://www.jenkins.io/blog/2021/12/22/deprecated-ruby-runtime/#affected-plugins) mentioned by @halkeye above, but don’t have any of them.

Exported all our plugins via script (got from [here](https://stackoverflow.com/a/37757232)):

```auto
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins()
plugins.each {
    println "${it.getShortName()} (${it.getVersion()}) => ${it.getDependencies()}"
}

```

and tried to search for ruby… but nothing. What else can I do to find out which plugin has to be removed? Would appreciate if Jenkins could be bit more verbose to tell what’s wrong. Any help appreciated. Thx!

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [September 23, 2022, 12:12am UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/7 "2022-09-23T00:12:53Z")

</div>

what is the full version of java are you using? (java -version)

---

<div class="post-metadata">

**Author:** ![phamrak](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/phamrak/32/2372_2.png) [@phamrak](https://community.jenkins.io/u/phamrak)\
**Post date:** [September 23, 2022, 7:08am UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/8 "2022-09-23T07:08:07Z")

</div>

Java version:

```auto
openjdk 11.0.16 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Debian-1deb11u1, mixed mode, sharing)

```

List of jenkins plugins: [jenkins plugin list - Pastebin.com](https://pastebin.com/urFQVszr)

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [September 23, 2022, 9:06pm UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/9 "2022-09-23T21:06:02Z")

</div>

Can you show an ls of JENKINS\_HOME/plugins?

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [September 24, 2022, 4:57am UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/10 "2022-09-24T04:57:18Z")

</div>

It is unfortunate that the list of plugins you uploaded is not usable for anyone who wants to attempt to duplicate your configuration. Could you upload the plugin list again based on the system groovy script from [“How to report an issue”](https://www.jenkins.io/participate/report-issue/#Howtoreportanissue-WhatinformationtoprovideforEnvironmentandDescription)? That provides the list in a format that others can use to assist.

Looking at the list of plugins you provided, it appears you’re not following the instructions in the upgrade guides. Specifically, the 2.277.1 upgrade guide recommends that you remove deprecated plugins and plugins with known security vulnerabilities.

## Plugins to remove because they have known security issues

- [ldapemail](https://plugins.jenkins.io/ldapemail/)
- [build-pipeline-plugin](https://plugins.jenkins.io/build-pipeline-plugin/)
- [extended choice parameter plugin](https://plugins.jenkins.io/extended-choice-parameter/)

## Plugins to remove because they are deprecated

- analysis-core - superseded by warnings-ng
- warnings - superseded by warnings-ng

## Plugins to remove because you’re not using them

- [translation plugin](https://plugins.jenkins.io/translation/) - are you actually submitting local language translations to the Jenkins project? Probably not. Remove it
- chucknorris
- createjobadvanced

## Plugins you should consider removing due to their age

- [seleniumrc-plugin](https://plugins.jenkins.io/seleniumrc-plugin/) - last released 12 years ago, only installed on 500 Jenkins controllers
- [rake](https://plugins.jenkins.io/rake/) - last released 9 years ago
- [exclusivelabel](https://plugins.jenkins.io/exclusive-label-plugin/) - last released 10 years ago

## Unknown plugins (remove in case they are the cause of the problem)

- asqatasun
- sitespeed
- seleniumhq
- hudson-jirareporter-plugin
- hudson-apiv2-plugin

---

<div class="post-metadata">

**Author:** ![phamrak](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/phamrak/32/2372_2.png) [@phamrak](https://community.jenkins.io/u/phamrak)\
**Post date:** [September 24, 2022, 9:40pm UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/11 "2022-09-24T21:40:04Z")

</div>

Thx @MarkEWaite ! I’ve removed all the plugins you’ve mentioned, but guess the one which caused my issues wasn’t listed in my previous posts:

 ![2022-09-24_23-02](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/4/4395418baf0082f6aa870651700af24da924c04f.png)

The `ruby-runtime` was there! Got listed when I was searching for `hudson-apiv2-plugin`, then started to dig around… Solved it by removing `$JENKINS_HOME/plugins/ruby-runtime*`. Can do now the update to `2.361.1`.

Thx for all the support, appreciate it!

---

<div class="post-metadata">

**Author:** ![ahuh](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ahuh/32/2391_2.png) [@ahuh](https://community.jenkins.io/u/ahuh)\
**Post date:** [September 26, 2022, 8:56am UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/12 "2022-09-26T08:56:23Z")

</div>

Thank you very much Peter ! You just saved me: I had the same issue, and removing `$JENKINS_HOME/plugins/ruby-runtime*` solved my problem too.

---

<div class="post-metadata">

**Author:** ![kalraprashant02](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kalraprashant02](https://community.jenkins.io/u/kalraprashant02)\
**Post date:** [September 30, 2022, 8:05am UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/13 "2022-09-30T08:05:48Z")

</div>

Hi, removing ruby plugin solved the problem, login page is now coming up.  
But ruby plugin is required for gitlab hook plugin. How can we make that work,  
I am using jdk 11 and want to upgrade Jenkins.  
Appreciate your help.

@ahuh @phamrak

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [September 30, 2022, 2:19pm UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/14 "2022-09-30T14:19:36Z")

</div>

> [@kalraprashant02](#):
>
> But ruby plugin is required for gitlab hook plugin. How can we make that work?

You can’t make the GitLab hook plugin or any other plugin that requires the Ruby runtime work on a Jenkins controller running Java 11. However, there are much better solutions that the GitLab hook plugin to connect Jenkins controllers to GitLab.

Alternatives include:

- [GitLab branch source plugin](https://plugins.jenkins.io/gitlab-branch-source/) to automatically create, run, and destroy Pipeline jobs based on merge requests and repository branches
- [GitLab authentication plugin](https://plugins.jenkins.io/gitlab-oauth/) to use GitLab to authenticate Jenkins users
- [GitLab plugin](https://plugins.jenkins.io/gitlab-plugin/) to integrate other Jenkins jobs with GitLab

Those plugins are much better maintained that the GitLab hook plugin and offer a much better user experience.

---

<div class="post-metadata">

**Author:** ![kalraprashant02](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kalraprashant02](https://community.jenkins.io/u/kalraprashant02)\
**Post date:** [September 30, 2022, 6:27pm UTC](https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282/15 "2022-09-30T18:27:11Z")

</div>

@MarkEWaite Thanks a lot for your reply !!
