As mentioned earlier, Currently, I am using Jenkins version 2.319.1 on RHEL 8.5 with Java 11 and Nginx 1.14.1.
Following your suggestion, I restored the Jenkins production data to the new VM to proceed with actual testing.
In the new VM, I upgraded the Java version from 11 to 17, as Jenkins 2.479.1 requires Java 17. I then upgraded Jenkins to version 2.479.1 by replacing /usr/lib/jenkins with 2.479.1 jenkins.war, and restarted Jenkins.
After these steps, the Jenkins URL is not accessible, showing a 501 Bad Gateway error. The Jenkins status displays the following error:
2024-12-01 14:42:42.434+0000 [id=215] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$1: Started DockerContainerWatchdog Asynchronous Periodic Work
2024-12-01 14:42:42.434+0000 [id=215] INFO c.n.j.p.d.DockerContainerWatchdog#execute: Docker Container Watchdog has been triggered
2024-12-01 14:42:42.434+0000 [id=215] INFO c.n.j.p.d.DockerContainerWatchdog$Statistics#writeStatisticsToLog: Watchdog Statistics: Number of overall executions: 12, Executions with processing timeout: 0, Containers removed gracefully: 0, Containers removed with force: 0, Containers removal failed: 0, Nodes removed successfully: 0, Nodes removal failed: 0, Container removal average duration (gracefully): 0 ms, Container removal average duration (force): 0 ms, Average overall runtime of watchdog: 0 ms, Average runtime of container retrieval: 0 ms
2024-12-01 14:42:42.435+0000 [id=215] INFO c.n.j.p.d.DockerContainerWatchdog#loadNodeMap: We currently have 0 nodes assigned to this Jenkins instance, which we will check
2024-12-01 14:42:42.435+0000 [id=215] INFO c.n.j.p.d.DockerContainerWatchdog#execute: Docker Container Watchdog check has been completed
2024-12-01 14:42:42.435+0000 [id=215] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$1: Finished DockerContainerWatchdog Asynchronous Periodic Work. 1 ms
2024-12-01 14:44:11.069+0000 [id=48] INFO winstone.Logger#logInternal: JVM is terminating. Shutting down Jetty
=======================================
Here are the steps I am taking:
- Upgrade Java from version 11 to 17.
- Upgrade Jenkins from version 2.319.1 to 2.479.1.
- Upgrade Nginx from version 1.14.1 to 1.18.0.
Regarding Plugins: Most of the plugins on my Jenkins 2.319.1 are displaying the following warning message.
Warning: This plugin is built for Jenkins 2.361.4 or newer. Jenkins will refuse to load this plugin if installed.
Warning: This plugin is built for Jenkins 2.401.3 or newer. Jenkins will refuse to load this plugin if installed.
I suspect that the plugins are refusing to access the Jenkins URL due to the Jenkins version upgrade. If this is the case, what steps should I follow to ensure compatibility between the Jenkins version and the plugins, so that I can access Jenkins without any issues?