It all started with me getting notified that some plugins needed to be updated. Updated them and opted for the automatic restart of Jenkins.
That worked fine but then I did a system upgrade and after that I’m greeted with:
I’ve tried logging in with both local and AD accounts.
OS: FreeBSD
Jenkins: 2.487
Java: 21
While troubleshooting I found this in the logs:
WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID e12ee04b-ca04-4ba0-8939-a5b4eb9801d6
java.lang.NoSuchMethodError: 'void org.springframework.util.Assert.isTrue(boolean)'
at PluginClassLoader for ldap//org.springframework.ldap.support.LdapUtils$CollectingAttributeValueCallbackHandler.handleAttributeValue(LdapUtils.java:343)
We’ve got a NGINX as reverse proxy running on the same machine.
Any help is much appreciated.
Thanks in advance!
It looks like you are running into the known issue with 2.479.1 and the LDAP plugin which requires a new release of the LDAP plugin (see release notes for 2.479.1 Changelog) see here for information from the upgrade guide: Upgrading to Jenkins LTS 2.479.x
1 Like
Thanks a lot!
At least that error is gone but now I get this:
And in the logs:
025-01-08 14:12:35.678+0000 [id=23] SEVERE jenkins.model.Jenkins#save: An attempt to save Jenkins'' global configuration before it has been loaded has been made during milestone Completed initialization. This is indicative of a bug in the caller and may lead to full or partial loss of configuration.
java.lang.IllegalStateException: call trace
at jenkins.model.Jenkins.save(Jenkins.java:3519)
at jenkins.model.Jenkins.<init>(Jenkins.java:998)
at hudson.model.Hudson.<init>(Hudson.java:102)
at hudson.model.Hudson.<init>(Hudson.java:87)
at hudson.WebAppMain$3.run(WebAppMain.java:249)
2025-01-08 14:12:35.678+0000 [id=23] SEVERE hudson.util.BootFailure#publish: Failed to initialize Jenkins
java.lang.IllegalStateException: An attempt to save the global configuration was made before it was loaded
at jenkins.model.Jenkins.save(Jenkins.java:3528)
at jenkins.model.Jenkins.<init>(Jenkins.java:998)
at hudson.model.Hudson.<init>(Hudson.java:102)
at hudson.model.Hudson.<init>(Hudson.java:87)
at hudson.WebAppMain$3.run(WebAppMain.java:249)
Caused: hudson.util.HudsonFailedToLoad
at hudson.WebAppMain$3.run(WebAppMain.java:277)
Should I downgrade to jenkins-lts-2.479.2_1 or it should work with our current version as well?
Sorry if my questions sound nooby but this is my first time operating Jenkins
I would definitely recommend sticking with the LTS (stable) release line. The LTS release line has much more testing and is generally better for production environments.
My guy. You’re a total life saver!
Running the LTS now with OpenJDK21 and it’s back in business
1 Like