-
Bug
-
Resolution: Unresolved
-
Major
-
DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
Jenkins: 2.319.1
Problem: Making any change in the UI for pipeline project, will lead to an exception:
"...A problem occurred while processing the request..."
The jenkins.log file complains with a ClassNotFoundException. Please see below, or in detail in the attached logs.
Jenkins is up-and-running and serving all our build jobs, even the pipeline jobs. But we can't make any change via the Web/UI. Making manual changes in the filesystem and then reloading Jenkins works fine. Somehow we managed to break the UI, unfortunately we don't remember at what point.
We have another Jenkins instance running, which serves pretty much the same jobs, and this runs without problem.
Note: Jenkins is running behind an NGINX reverse proxy.
2022-01-10 11:32:23.492+0000 [id=9] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving https://XXXX.net/job/gum-test2/configSubmit2022-01-10 11:32:23.492+0000 [id=9] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving https://jenkins.lane2.net/job/gum-test2/configSubmitjava.lang.ClassNotFoundException: cached miss for ["org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition","org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition"] at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:2118)
I also upgraded to a more recent version and I have confirmed that that class should be available in the filesystem:
cd /var/lib/jenkins/plugins$
jar -tvf workflow-cps/WEB-INF/lib/workflow-cps.jar | grep org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.class
10850 Fri Dec 17 08:14:36 UTC 2021 org/jenkinsci/plugins/workflow/cps/CpsScmFlowDefinition.class
-> So the jar file and class exists.
From the logs, it looks like a class loading problem. Any hint howto debug that step is really appreciated.
I'm unable to duplicate the problem as described. I used your plugins list from jenkins.txt
with Jenkins 2.319.1 and created 3 different pipelines, one scripted, one declarative, and one with Pipeline definition from SCM. Each of those pipeline definitions could be edited and retained the edits.
Many of the plugins in your list are out of date. It looks like some have new releases that have been available for a month. You might try updating those plugins to the most recent releases to see if that resolves the issue.
The Jenkins 2.319.1 upgrade guide notes that Azure plugins are affected by the removal of the Woodstox implementation. The recommendation is to upgrade the affected Azure plugins to their most recent releases.
One of your Azure plugins (Azure Commons) is deprecated. It should be removed.