Jenkins war update caused issue

Initially got this error :

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)

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:

1 Like

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

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.

Deprecating non-Java plugins has the full list of plugins you should remove.