timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-36685] Upgrade to Jenkins 2.7.1 - Jenkins will not start up #3336

Closed timja closed 8 years ago

timja commented 8 years ago

On two of our systems I have attempted to upgrade from Jenkins 1.642.4 to 2.7.1 LTS, and in both cases, Jenkins would not start up.

Here is the error message in the log:

INFO: Downloading jenkins.war
Jul 14, 2016 8:45:47 AM hudson.model.UpdateCenter$DownloadJob run
INFO: Installation successful: jenkins.war
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
Running from: /usr/share/jenkins/jenkins.war
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at Main._main(Main.java:246)
at Main.main(Main.java:91)
Caused by: java.lang.IllegalArgumentException: Unrecognized option: --preferredClassLoader=java.net.URLClassLoader
at winstone.cmdline.CmdLineParser.parse(CmdLineParser.java:53)
at winstone.Launcher.getArgsFromCommandLine(Launcher.java:359)
at winstone.Launcher.main(Launcher.java:332)
... 6 more


Originally reported by mcsf, imported from: Upgrade to Jenkins 2.7.1 - Jenkins will not start up
  • status: Resolved
  • priority: Critical
  • resolution: Won't Fix
  • resolved: 2016-07-15T02:08:54+00:00
  • imported: 2022/01/10
timja commented 8 years ago

danielbeck:

Support for the option preferredClassLoader has been dropped has it was unused at least since 1.535 or so. Remove it from your Jenkins startup script (e.g. /etc/init.d/jenkins), and it'll work again.

timja commented 7 years ago

cliffano:

On certain installations, also look at /etc/default/jenkins .

timja commented 7 years ago

mcsf:

Yes, I removed that from /etc/default/jenkins and that seems to have fixed the issue.

I also have an issue where when I respond to the 'Upgrade to Jenkins 2' banner, it hangs after getting (seemingly) halfway through instaling a bunch of additional plugins. I have to close the browser and reopen, whereupon the banner pops up again. The banner seems to pop up every time I log in, even after I dismiss it once. Anyhow, these seem to be separate issues so I will file separate tickets for them.