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

0 stars 0 forks source link

[JENKINS-68752] Jenkins version upgrade fails from 2.289.3 to 2.332.3 LTS #6067

Open timja opened 2 years ago

timja commented 2 years ago

I'm kind of stuck, trying to upgrade Jenkins LTS version from 2.289.3 to 2.332.3 but after upgrade process when Jenkins restart I'm seeing below error on screen and unable to perform any function:

 Error

java.lang.IllegalStateException: Duplicate key Digital-Deploy (attempted merging values hudson.logging.LogRecorder@75681a9b and hudson.logging.LogRecorder@75681a9b) at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:133) at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180) at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at hudson.logging.LogRecorderManager.setRecorders(LogRecorderManager.java:105) at hudson.logging.LogRecorderManager.load(LogRecorderManager.java:146) at hudson.logging.LogRecorderManager.init(LogRecorderManager.java:261) Caused: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109) Caused: java.lang.Error 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:1156) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused: org.jvnet.hudson.reactor.ReactorException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:291) at jenkins.InitReactorRunner.run(InitReactorRunner.java:49) at jenkins.model.Jenkins.executeReactor(Jenkins.java:1191) at jenkins.model.Jenkins.(Jenkins.java:981) at hudson.model.Hudson.(Hudson.java:86) at hudson.model.Hudson.(Hudson.java:82) at hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: hudson.util.HudsonFailedToLoad at hudson.WebAppMain$3.run(WebAppMain.java:264)


Originally reported by haalkaf, imported from: Jenkins version upgrade fails from 2.289.3 to 2.332.3 LTS
  • assignee: timja
  • status: In Review
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 2 years ago

JIRAUSER145910:

This is blocking me, did anyone came across this type of issue when upgrading Jenkins version?

timja commented 2 years ago

markewaite:

Never seen that message before.  It almost looks like a logging configuration on the controller might have multiple definitions for the same key 'Digital-Deploy'.  Does that string appear in one of the Jenkins configuration files?  Is it there more than once?  If you remove the duplication, does it resolve the issue?

https://www.jenkins.io/doc/upgrade-guide/ shows that there are 9 upgrade guides that you should read so that you understand more about the changes that have been made since your original version.

timja commented 2 years ago

basil:

The relevant code was modified recently in JENKINS-61278 / https://github.com/jenkinsci/jenkins/pull/4538