I am trying to upgrade jenkins from 2.462.3 to 2.504.3


What I am trying to achieve

I am using Jenkins 2.462.3 and I want to upgrade to latest version 2.504.3.


Prerequisites installation:

I have updated my JDK from 11 to 17 also installed 21 and Tomcat from 9.0.91 to 10.1.43

Also I have updated all plugins before proceeding for upgrade.


Java installed:

–java --version

openjdk 21.0.7 2025-04-15 LTS

OpenJDK Runtime Environment (Red_Hat-21.0.7.0.6-2) (build 21.0.7+6-LTS)

OpenJDK 64-Bit Server VM (Red_Hat-21.0.7.0.6-2) (build 21.0.7+6-LTS, mixed mode, sharing)

–javac --version

javac 21.0.7


Jenkins: 2.462.3
OS: Linux - 4.18.0-553.58.1.el8_10.x86_64 [Rocky Linux 8.10]
Java: 11.0.25 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)

ErrorPublisher:1.318
ace-editor:1.1
analysis-core:1.96
ant:511.v0a_a_1a_334f41b_
antisamy-markup-formatter:162.v0e6ec0fcfcf6
anything-goes-formatter:19.v3e2b_1b_3e0ee5
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
apache-httpcomponents-client-5-api:5.4-136.v5a_21779c63f8
asm-api:9.7.1-97.v4cc844130d97
audit-trail:382.vf64d6f626060
authentication-tokens:1.119.v50285141b_7e1
aws-credentials:243.v41c19a_fb_5dcf
aws-java-sdk-ec2:1.12.772-477.v650d756dcf6d
aws-java-sdk-minimal:1.12.772-477.v650d756dcf6d
aws-java-sdk2-core:2.30.10-22.v1339d66b_e0f4
aws-java-sdk2-ec2:2.30.10-22.v1339d66b_e0f4
badge:2.3
blueocean:1.27.16
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.16
blueocean-commons:1.27.16
blueocean-config:1.27.16
blueocean-core-js:1.27.16
blueocean-dashboard:1.27.16
blueocean-display-url:2.4.3
blueocean-events:1.27.16
blueocean-git-pipeline:1.27.16
blueocean-github-pipeline:1.27.16
blueocean-i18n:1.27.16
blueocean-jira:1.27.16
blueocean-jwt:1.27.16
blueocean-personalization:1.27.16
blueocean-pipeline-api-impl:1.27.16
blueocean-pipeline-editor:1.27.16
blueocean-pipeline-scm-api:1.27.16
blueocean-rest:1.27.16
blueocean-rest-impl:1.27.16
blueocean-web:1.27.16
bootstrap4-api:4.6.0-6
bootstrap5-api:5.3.3-1
bouncycastle-api:2.30.1.78.1-248.ve27176eb_46cb_
branch-api:2.1206.vd9f35001c95c
build-metrics:1.3
build-timeout:1.33
build-timestamp:1.0.4
build-user-vars-plugin:176.vb_9c7907fd524
buildlist:1.0-SNAPSHOT (private-10/19/2010 11:01-june)
buildlistCli:1.0-SNAPSHOT (private-03/26/2012 10:59-root)
built-on-column:1.4
caffeine-api:3.2.0-161.v691ef352cee1
checks-api:2.2.3
checkstyle:4.0.0
clearcase:1.6.8
cloud-stats:336.v788e4055508b_
cloudbees-bitbucket-branch-source:912.v3b_f74026941c
cloudbees-folder:6.955.v81e2a_35c08d3
cobertura:1.17
code-coverage-api:4.99.0
command-launcher:116.vd85919c54a_d6
commons-compress-api:1.26.1-2
commons-lang3-api:3.17.0-84.vb_b_938040b_078
commons-text-api:1.13.0-150.vfc0d7966fc38
conditional-buildstep:1.4.3
configurationslicing:548.ve92d48e66b_f8
confluence-publisher:2.0.6
copyartifact:761.vea_2b_25523e84
coverage:1.16.1
credentials:1384.vf0a_2ed06f9c6
credentials-binding:681.vf91669a_32e45
crowd2:2.0.2
cvs:469.v57a_96d4f6886
dark-theme:514.va_3ea_73d65dc1
dashboard-view:2.523.v673d549dfee5
data-tables-api:2.1.8-1
description-setter:258.vcd25251271a_a_
display-url-api:2.204.vf6fddd8a_8b_e9
docker-build-publish:1.4.0
docker-build-step:2.12
docker-commons:445.v6b_646c962a_94
docker-java-api:3.4.1-96.v77147a_de67f8
docker-plugin:1.7.0
docker-slaves:1.0.7
docker-workflow:592.v1001d948426c
downstream-ext:73.vdda_16e6eb_0da
doxygen:178.v6ea_ef5f7dfdb
durable-task:581.v299a_5609d767
echarts-api:5.5.1-4
eddsa-api:0.3.0-4.v84c6f0f4969e
email-ext:1849.v6dd03b_f6e423
envinject:2.919.v009a_a_1067cd0
envinject-api:1.199.v3ce31253ed13
exclusive-execution:0.8
extended-choice-parameter:382.v5697b_32134e8
extended-read-permission:61.vf24570ff3b_e9
extensible-choice-parameter:1.8.1
external-monitor-job:215.v2e88e894db_f8
favorite:2.221.v19ca_666b_62f5
flatpickr-api:4.6.13-15.vf6e534338831
folder-properties:57.vde5161ec7a_b_a_
font-awesome-api:6.6.0-2
forensics-api:2.7.0
gerrit-code-review:0.5.0
gerrit-trigger:2.42.0
gerrit-verify-status-reporter:0.0.3
git:5.5.2
git-client:5.0.3
git-server:126.v0d945d8d2b_39
github:1.40.0
github-api:1.321-468.v6a_9f5f2d5a_7e
github-branch-source:1807.v50351eb_7dd13
gitlab-plugin:1.8.2
global-build-stats:316.vf8870f424d78
gradle:2.15
gravatar:118.va_4b_19983473e
groovy:457.v99900cb_85593
groovy-postbuild:267.va_df06de9fa_fa_
gson-api:2.11.0-85.v1f4e87273c33
handlebars:3.0.8
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148
htmlpublisher:1.37
icon-shim:3.0.0
instance-identity:201.vd2a_b_5a_468a_a_6
ionicons-api:74.v93d5eb_813d5f
jackson2-api:2.18.3-396.v93cc2d00b_b_7b_
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javadoc:280.v050b_5c849f69
javascript:1.1-SNAPSHOT (private-02/20/2012 22:01-root)
javax-activation-api:1.2.0-7
javax-mail-api:1.6.2-10
jaxb:2.3.9-1
jdk-tool:80.v8a_dee33ed6f0
jenkins-design-language:1.27.16
jenkins-multijob-plugin:659.v6633374ec624
jersey2-api:2.44-151.v6df377fff741
jira:3.13
jjwt-api:0.11.5-112.ve82dfb_224b_a_d
jobConfigHistory:1294.v961a_b_707546a_
joda-time-api:2.13.0-93.v9934da_29b_a_e9
jquery:1.12.4-3
jquery-detached:1.2.1
jquery-ui:1.0.2
jquery3-api:3.7.1-2
jsch:0.2.16-86.v42e010d9484b_
json-api:20241224-119.va_dca_a_b_ea_7da_5
json-path-api:2.9.0-118.v7f23ed82a_8b_8
junit:1312.v1a_235a_b_94a_31
kubernetes:4306.vc91e951ea_eb_d
kubernetes-client-api:6.10.0-240.v57880ce8b_0b_2
kubernetes-credentials:190.v03c305394deb_
ldap:725.v3cb_b_711b_1a_ef
linenumbers:1.3
lockable-resources:1327.ved786b_a_197e0
mail-watcher-plugin:1.19
mailer:488.v0c9639c1a_eb_3
mapdb-api:1.0.9-40.v58107308b_7a_7
mask-passwords:173.v6a_077a_291eb_5
matrix-auth:3.2.3
matrix-project:839.vff91cd7e3a_b_2
maven-plugin:3.24
mercurial:1308.v0e0888fdb_628
metrics:4.2.21-458.vcf496cb_839e4
mina-sshd-api-common:2.14.0-143.v2b_362fc39576
mina-sshd-api-core:2.14.0-143.v2b_362fc39576
momentjs:1.1.1
monitoring:1.99.0
msginject:0.1.1
multi-branch-project-plugin:0.7
multi-agent-config-plugin:1.2.0
multiple-scms:0.8
naginator:1.487.v4d280642cded
next-executions:392.v1d10c1b_5926f
nodelabelparameter:1.13.0
okhttp-api:4.11.0-172.vda_da_1feeb_c6e
p4:1.17.2
pam-auth:1.11
parameterized-trigger:806.vf6fff3e28c3e
periodicbackup:2.0
perms:1.0-SNAPSHOT (private-01/11/2012 15:55-root)
permslist:1.0-SNAPSHOT (private-01/11/2012 15:56-root)
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-github-lib:61.v629f2cc41d83
pipeline-graph-analysis:231.v56354571a_da_0
pipeline-groovy-lib:749.v70084559234a_
pipeline-input-step:508.v584c0e9a_2177
pipeline-milestone-step:119.vdfdc43fc3b_9a_
pipeline-model-api:2.2218.v56d0cda_37c72
pipeline-model-declarative-agent:1.1.1
pipeline-model-definition:2.2218.v56d0cda_37c72
pipeline-model-extensions:2.2218.v56d0cda_37c72
pipeline-rest-api:2.34
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2218.v56d0cda_37c72
pipeline-stage-view:2.34
plain-credentials:183.va_de8f1dd5a_2b_
plasticscm-plugin:4.4
plugin-util-api:5.1.0
pmd:4.0.0
popper-api:1.16.1-3
popper2-api:2.11.6-5
postbuild-task:1.9
prism-api:1.29.0-18
publish-over:0.22
publish-over-ssh:383.v4eb_4c44da_2dd
pubsub-light:1.18
rebuild:332.va_1ee476d8f6d
repo:1.16.0
resource-disposer:0.24
role-strategy:743.v142ea_b_d5f1d3
run-condition:1.7
saferestart:101.vc7fa_8ca_dd18b_
saml:4.464.vea_cb_75d7f5e0
scm-api:696.v778d637b_a_762
scp:1.9-SNAPSHOT (private-10/25/2011 19:24-root)
script-security:1369.v9b_98a_4e95b_2d
scriptler:376.378.v843c72a_5d055
seccli:1.1.SNAPSHOT
sidebar-link:2.4.1
simple-theme-plugin:196.v96d9592f4efa_
singleldap:1.0
agent-squatter:1.2
snakeyaml-api:2.3-123.v13484c65210a_
sonar:2.18
sonar-gerrit:388.v9b_f1cb_e42306
sse-gateway:1.27
ssh-agent:376.v8933585c69d3
ssh-credentials:349.vb_8b_6b_9709f5b_
ssh-slaves:2.973.v0fa_8c0dea_f9f
sshd:3.330.vc866a_8389b_58
structs:338.v848422169819
subversion:1281.vc8837f91a_07a_
summary_report:1.15
theme-manager:262.vc57ee4a_eda_5d
timestamper:1.27
token-macro:400.v35420b_922dcb_
translation:1.16
trilead-api:2.147.vb_73cc728a_32e
validating-string-parameter:251.vc34e592b_8a_4d
variant:60.v7290fc0eb_b_cd
view-job-filters:392.v2c0a_4dd46909
windows-slaves:1.8
workflow-aggregator:600.vb_57cdd26fdd7
workflow-api:1358.vfb_5780da_64cb
workflow-basic-steps:1058.vcb_fc1e3a_21a_9
workflow-cps:4009.v0089238351a_9
workflow-cps-global-lib:612.v55f2f80781ef
workflow-durable-task-step:1378.v6a_3e903058a_3
workflow-job:1436.vfa_244484591f
workflow-multibranch:795.ve0cb_1f45ca_9a_
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:678.v3ee58b_469476
workflow-support:943.v8b_0d01a_7b_a_08
ws-cleanup:0.47


What I tried?

Tried upgrading from 2.462.3 to all available LTS versions and Weekly release too :frowning:

Tried upgrading version with both JDK 17 and 21.


17-Jul-2025 17:55:03.579 INFO [Loading bundled plugins] hudson.PluginManager.loadDetachedPlugins Upgrading Jenkins. The last running version was 2.462.3. This Jenkins is version 2.479.3.

17-Jul-2025 17:55:03.580 INFO [pool-7-thread-2] jenkins.InitReactorRunner$1.onAttained Started initialization

17-Jul-2025 17:55:03.591 INFO [Loading bundled plugins] hudson.PluginManager.loadDetachedPlugins Upgraded Jenkins from version 2.462.3 to version 2.479.3. Loaded detached plugins (and dependencies):

17-Jul-2025 17:55:03.775 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi under a nonstandard name; expected ErrorPublisher.jpi

17-Jul-2025 17:55:03.776 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/buildlist.hpi under a nonstandard name; expected buildlist.jpi

17-Jul-2025 17:55:03.777 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/buildlistCli.hpi under a nonstandard name; expected buildlistCli.jpi

17-Jul-2025 17:55:03.777 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/javascript.hpi under a nonstandard name; expected javascript.jpi

17-Jul-2025 17:55:03.778 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/perms.hpi under a nonstandard name; expected perms.jpi

17-Jul-2025 17:55:03.778 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/permslist.hpi under a nonstandard name; expected permslist.jpi

17-Jul-2025 17:55:03.779 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/scp.hpi under a nonstandard name; expected scp.jpi

17-Jul-2025 17:55:03.779 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/seccli.hpi under a nonstandard name; expected seccli.jpi

17-Jul-2025 17:55:03.779 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/singleldap.hpi under a nonstandard name; expected singleldap.jpi

17-Jul-2025 17:55:03.780 WARNING [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] hudson.ClassicPluginStrategy.createPluginWrapper encountered /jenkins-data/jenkins-home/plugins/agent-squatter.hpi under a nonstandard name; expected agent-squatter.jpi

17-Jul-2025 17:55:03.785 INFO [Inspecting plugin /jenkins-data/jenkins-home/plugins/ErrorPublisher.hpi] jenkins.InitReactorRunner$1.onAttained Listed all plugins

17-Jul-2025 17:55:08.278 INFO [pool-7-thread-248] jenkins.InitReactorRunner$1.onAttained Prepared all plugins

17-Jul-2025 17:55:08.280 INFO [ScriptlerLoadingTasks.synchronizeConfig] org.jenkinsci.plugins.scriptler.ScriptlerLoadingTasks.synchronizeConfig initialize Scriptler

17-Jul-2025 17:55:08.286 INFO [Loading bundled plugins] jenkins.InitReactorRunner$1.onAttained Started all plugins

17-Jul-2025 17:55:08.288 SEVERE [ScriptlerLoadingTasks.synchronizeConfig] jenkins.InitReactorRunner$1.onTaskFailed Failed ScriptlerLoadingTasks.synchronizeConfig

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:569)

at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)

… 9 more

Caused by: java.lang.NullPointerException: Cannot invoke “Object.getClass()” because “s” is null

at java.base/java.util.Collections.unmodifiableSet(Collections.java:1132)

at PluginClassLoader for scriptler//org.jenkinsci.plugins.scriptler.config.ScriptSet.getScripts(ScriptSet.java:80)

at PluginClassLoader for scriptler//org.jenkinsci.plugins.scriptler.config.ScriptlerConfiguration.load(ScriptlerConfiguration.java:105)

at PluginClassLoader for scriptler//org.jenkinsci.plugins.scriptler.ScriptlerLoadingTasks.synchronizeConfig(ScriptlerLoadingTasks.java:65)

… 14 more

17-Jul-2025 17:55:08.290 WARNING [UpdateCenter.init] hudson.model.UpdateCenter.save Failed to save /jenkins-data/jenkins-home/hudson.model.UpdateCenter.xml

java.nio.channels.ClosedByInterruptException

at java.base/java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:199)

at java.base/sun.nio.ch.FileChannelImpl.endBlocking(FileChannelImpl.java:171)

at java.base/sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:293)

at hudson.util.FileChannelWriter.write(FileChannelWriter.java:73)

at java.base/java.io.Writer.write(Writer.java:290)

at hudson.util.AtomicFileWriter.write(AtomicFileWriter.java:174)

at java.base/java.io.Writer.write(Writer.java:249)

at hudson.XmlFile.write(XmlFile.java:212)

at hudson.model.UpdateCenter.save(UpdateCenter.java:1003)

at hudson.util.PersistedList.onModified(PersistedList.java:190)

at hudson.util.PersistedList.replaceBy(PersistedList.java:96)

at hudson.model.UpdateCenter.load(UpdateCenter.java:1018)

at hudson.model.UpdateCenter.init(UpdateCenter.java:2859)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

at java.base/java.lang.Thread.run(Thread.java:840)

17-Jul-2025 17:55:08.290 WARNING [UpdateCenter.init] hudson.model.UpdateCenter.save Failed to save /jenkins-data/jenkins-home/hudson.model.UpdateCenter.xml

java.nio.channels.ClosedByInterruptException

at java.base/java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:199)

at java.base/sun.nio.ch.FileChannelImpl.endBlocking(FileChannelImpl.java:171)

at java.base/sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:293)

at hudson.util.FileChannelWriter.write(FileChannelWriter.java:73)

at java.base/java.io.Writer.write(Writer.java:290)

at hudson.util.AtomicFileWriter.write(AtomicFileWriter.java:174)

at java.base/java.io.Writer.write(Writer.java:249)

at hudson.XmlFile.write(XmlFile.java:212)

at hudson.model.UpdateCenter.save(UpdateCenter.java:1003)

at hudson.util.PersistedList.onModified(PersistedList.java:190)

at hudson.util.PersistedList._onModified(PersistedList.java:221)

at hudson.util.PersistedList.remove(PersistedList.java:158)

at hudson.model.UpdateCenter.load(UpdateCenter.java:1026)

at hudson.model.UpdateCenter.init(UpdateCenter.java:2859)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:569)

at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)

at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

at java.base/java.lang.Thread.run(Thread.java:840)

17-Jul-2025 17:55:08.291 WARNING [UpdateCenter.init] hudson.model.UpdateCenter.save Failed to save /jenkins-data/jenkins-home/hudson.model.UpdateCenter.xml

java.nio.channels.ClosedByInterruptException

at java.base/java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:199)

at java.base/sun.nio.ch.FileChannelImpl.endBlocking(FileChannelImpl.java:171)

at java.base/sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:293)

at hudson.util.FileChannelWriter.write(FileChannelWriter.java:73)

at java.base/java.io.Writer.write(Writer.java:290)

at hudson.util.AtomicFileWriter.write(AtomicFileWriter.java:174)

at java.base/java.io.Writer.write(Writer.java:249)

at hudson.XmlFile.write(XmlFile.java:212)

at hudson.model.UpdateCenter.save(UpdateCenter.java:1003)

at hudson.util.PersistedList.onModified(PersistedList.java:190)

at hudson.util.PersistedList._onModified(PersistedList.java:221)

at hudson.util.PersistedList.add(PersistedList.java:82)

at hudson.model.UpdateCenter.load(UpdateCenter.java:1032)

at hudson.model.UpdateCenter.init(UpdateCenter.java:2859)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:569)

at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)

at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)

at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)

at jenkins.model.Jenkins$5.runTask(Jenkins.java:1195)

at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)

at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)

at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

at java.base/java.lang.Thread.run(Thread.java:840)

17-Jul-2025 17:55:08.293 SEVERE [Jenkins initialization thread] hudson.util.BootFailure.publish Failed to initialize Jenkins

hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException

at hudson.WebAppMain$3.run(WebAppMain.java:274)

Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException

at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:290)

at jenkins.InitReactorRunner.run(InitReactorRunner.java:49)

at jenkins.model.Jenkins.executeReactor(Jenkins.java:1230)

at jenkins.model.Jenkins.(Jenkins.java:1017)

at hudson.model.Hudson.(Hudson.java:102)

at hudson.model.Hudson.(Hudson.java:87)

at hudson.WebAppMain$3.run(WebAppMain.java:249)

Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException

at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:115)

at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)

at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)

at jenkins.model.Jenkins$5.runTask(Jenkins.java:1195)

at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)

at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)

at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

at java.base/java.lang.Thread.run(Thread.java:840)

Caused by: java.lang.reflect.InvocationTargetException

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:569)

at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)

… 9 more

Caused by: java.lang.NullPointerException: Cannot invoke “Object.getClass()” because “s” is null

at java.base/java.util.Collections.unmodifiableSet(Collections.java:1132)

at PluginClassLoader for scriptler//org.jenkinsci.plugins.scriptler.config.ScriptSet.getScripts(ScriptSet.java:80)

at PluginClassLoader for scriptler//org.jenkinsci.plugins.scriptler.config.ScriptlerConfiguration.load(ScriptlerConfiguration.java:105)

at PluginClassLoader for scriptler//org.jenkinsci.plugins.scriptler.ScriptlerLoadingTasks.synchronizeConfig(ScriptlerLoadingTasks.java:65)

… 14 more

17-Jul-2025 17:55:08.388 INFO [Jenkins initialization thread] hudson.lifecycle.Lifecycle.onStatusUpdate Stopping Jenkins

17-Jul-2025 17:55:08.737 INFO [PluginImpl.gerritStart] hudson.plugins.build_timeout.global.GlobalTimeOutConfiguration.load global timeout not set

17-Jul-2025 17:55:08.815 WARNING [PluginImpl.gerritStart] org.jenkinsci.plugins.dockerbuildstep.DockerBuilder$DescriptorImpl. Docker URL is not set, docker client won’t be initialized

17-Jul-2025 17:55:09.097 INFO [PluginImpl.gerritStart] com.sonyericsson.hudson.plugins.gerrit.trigger.PluginImpl.start Starting Gerrit-Trigger Plugin

17-Jul-2025 17:55:09.097 WARNING [GitLabConnection.migrate] hudson.model.Descriptor.save Failed to save /jenkins-data/jenkins-home/com.dabsquared.gitlabjenkins.connection.GitLabConnectionConfig.xml

java.nio.channels.ClosedByInterruptException

at java.base/java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:199)

at java.base/sun.nio.ch.FileChannelImpl.endBlocking(FileChannelImpl.java:171)

at java.base/sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:293)

at hudson.util.FileChannelWriter.write(FileChannelWriter.java:73)

at java.base/java.io.Writer.write(Writer.java:290)

at hudson.util.AtomicFileWriter.write(AtomicFileWriter.java:174)

at java.base/java.io.Writer.write(Writer.java:249)

at hudson.XmlFile.write(XmlFile.java:212)

at hudson.model.Descriptor.save(Descriptor.java:959)

at PluginClassLoader for gitlab-plugin//com.dabsquared.gitlabjenkins.connection.GitLabConnection.migrate(GitLabConnection.java:230)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:569)

at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)

at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)

at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)

at jenkins.model.Jenkins$5.runTask(Jenkins.java:1195)

at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)

at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)

at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)

at java.base/java.lang.Thread.run(Thread.java:840)

17-Jul-2025 17:55:09.115 INFO [Jenkins initialization thread] jenkins.model.Jenkins$16.onAttained Started termination

17-Jul-2025 17:55:09.116 INFO [Jenkins initialization thread] hudson.plugins.build_timeout.global.Lifecycle.shutdown Shutdown complete - Global TimeOut ScheduledExecutorService had 0 tasks pending

Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.KeyPairPKCS8

at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)

at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:64)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)

… 8 more

17-Jul-2025 17:55:09.133 INFO [Jenkins initialization thread] jenkins.model.Jenkins._cleanUpPersistQueue Persisting build queue

17-Jul-2025 17:55:09.134 SEVERE [Thread-5] hudson.init.impl.InstallUncaughtExceptionHandler$DefaultUncaughtExceptionHandler.uncaughtException A thread (Thread-5/325) died unexpectedly due to an uncaught exception. This may leave your server corrupted and usually indicates a software bug.

java.lang.NoClassDefFoundError: com/jcraft/jsch/KeyPairPKCS8

at PluginClassLoader for jsch//com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:37)

at PluginClassLoader for jsch//com.jcraft.jsch.JSch.addIdentity(JSch.java:493)

at PluginClassLoader for jsch//com.jcraft.jsch.JSch.addIdentity(JSch.java:476)

17-Jul-2025 17:55:09.138 WARNING [Jenkins initialization thread] hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.error Failed to instantiate Key[type=hudson.plugins.gradle.injection.InjectionConfigChangeListener, annotation=[none]]; skipping this component

com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. [Guice/ErrorInjectingConstructor]: NoClassDefFoundError: hudson/plugins/gradle/injection/SystemProperty$Key

at InjectionConfigChangeListener.(Unknown Source)

Learn more:

1 error

======================

Full classname legend:

======================

InjectionConfigChangeListener: “hudson.plugins.gradle.injection.InjectionConfigChangeListener”

========================

End of classname legend:

========================

at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251)

at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)

at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:169)

at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:448)

at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)

at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1148)

at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:406)

at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:397)

at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:353)

at hudson.ExtensionList.load(ExtensionList.java:384)

at hudson.ExtensionList.ensureLoaded(ExtensionList.java:320)

at hudson.ExtensionList.iterator(ExtensionList.java:172)

at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:80)

at hudson.model.Queue.save(Queue.java:489)

at jenkins.model.Jenkins._cleanUpPersistQueue(Jenkins.java:3956)

at jenkins.model.Jenkins.cleanUp(Jenkins.java:3711)

at hudson.WebAppMain$3.run(WebAppMain.java:282)

Caused by: java.lang.NoClassDefFoundError: hudson/plugins/gradle/injection/SystemProperty$Key

at PluginClassLoader for gradle//hudson.plugins.gradle.injection.MavenInjectionAware.(MavenInjectionAware.java:18)

at PluginClassLoader for gradle//hudson.plugins.gradle.injection.InjectionConfigChangeListener.(InjectionConfigChangeListener.java:35)

at PluginClassLoader for gradle//hudson.plugins.gradle.injection.InjectionConfigChangeListener$$FastClassByGuice$$64a538e7.GUICE$TRAMPOLINE()

17-Jul-2025 17:55:09.150 WARNING [Jenkins initialization thread] hudson.model.listeners.SaveableListener.fireOnChange null

java.lang.NoClassDefFoundError: hudson/plugins/jobConfigHistory/PluginUtils

at PluginClassLoader for jobConfigHistory//hudson.plugins.jobConfigHistory.JobConfigHistorySaveableListener.getPlugin(JobConfigHistorySaveableListener.java:74)

at PluginClassLoader for jobConfigHistory//hudson.plugins.jobConfigHistory.JobConfigHistorySaveableListener.onChange(JobConfigHistorySaveableListener.java:58)

at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:82)

at hudson.model.Queue.save(Queue.java:489)

at jenkins.model.Jenkins._cleanUpPersistQueue(Jenkins.java:3956)

at jenkins.model.Jenkins.cleanUp(Jenkins.java:3711)

at hudson.WebAppMain$3.run(WebAppMain.java:282)

Caused by: java.lang.ClassNotFoundException: hudson.plugins.jobConfigHistory.PluginUtils

at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)

at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:64)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)

… 7 more

17-Jul-2025 17:55:09.151 SEVERE [Jenkins initialization thread] jenkins.model.Jenkins._cleanUpPluginServletFilters Failed to stop filters

java.lang.NoClassDefFoundError: net/bull/javamelody/MonitoringInitialContextFactory

at PluginClassLoader for monitoring//net.bull.javamelody.FilterContext.destroy(FilterContext.java:472)

at PluginClassLoader for monitoring//net.bull.javamelody.MonitoringFilter.destroy(MonitoringFilter.java:176)

at PluginClassLoader for monitoring//net.bull.javamelody.PluginMonitoringFilter.destroy(PluginMonitoringFilter.java:74)

at io.jenkins.servlet.FilterWrapper$1.destroy(FilterWrapper.java:59)

at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:232)

at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:4020)

at jenkins.model.Jenkins.cleanUp(Jenkins.java:3717)

at hudson.WebAppMain$3.run(WebAppMain.java:282)

Caused by: java.lang.ClassNotFoundException: net.bull.javamelody.MonitoringInitialContextFactory

at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)

at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:64)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)

… 8 more

17-Jul-2025 17:55:09.152 INFO [Jenkins initialization thread] hudson.lifecycle.Lifecycle.onStatusUpdate Jenkins stopped

Thanks for providing the details of your configuration and the steps that you tried. That makes it much easier for others to help you.

The upgrade from 2.462.3 to 2.504.3 may be challenging in your environment because you’re using several plugins that are not available from the Jenkins update center and one of those plugins (simpleldap) is likely related to authentication. One or more of those private plugins may need to be upgraded to support Spring Security 6 and Java 17.

Private plugins

The plugins you’re using that are not available from the Jenkins update center are:

  • ErrorPublisher
  • buildlist
  • buildlistCli
  • javascript
  • multi-agent-config-plugin
  • perms
  • permslist
  • seccli
  • singleldap
  • agent-squatter

You should evaluate if you can remove those plugins. If not, then you’ll need to review each of them to decide if they need to be updated for Spring Security 6 and Java 17.

Deprecated private build of a plugin

You have a private build of a deprecated plugin installed. It should be removed:

  • scp

Deprecated plugins

You have deprecated plugins that should be removed, including:

Upgrading to 2.479.3

When I applied those changes to your Jenkins 2.462.3 on Java 11, I was able to run Jenkins 2.479.3 with Java 17. It reported there are 191 plugins to upgrade. I upgraded those 191 plugins and restarted Jenkins successfully.

Upgrading to 2.504.3

I then started Jenkins 2.504.3 and it reported 8 more plugins to upgrade. I upgraded those plugins and restarted Jenkins successfully.

Unresolved security vulnerabilities

After completing those steps, there are still 2 plugins with unresolved security vulnerabilities. You should evaluate those plugins to decide if you can remove them. The plugins with unresolved security vulnerabilities are:

Replace Blue Ocean with Pipeline Graph View

In addition to those steps, you should consider removing the Blue Ocean plugins and replacing them with Pipeline Graph View. Blue Ocean is no longer being enhanced and the Pipeline Graph View plugin provides a very nice visualization of Jenkins Pipelines. You can read more about it in the blog post by Jan Faracik.