Hi Team,
We are upgrading our Jenkins in windows server
Current Jenkins version :- 2.319.3
Server :- Apache Tomcat 9.0.44
Method to deploy:- We are downloading latest war file from official jenkins website and deploying it into Tomcat/Webapps folder. We replaced Jenkins.war file with new file, previous upgrades worked fine with this method.
We are currently using Jenkins version 2.319.3 and we are upgrading to 2.361.1 version in windows.
First we got error about Java, we installed new Java 11 and updated JVM location in Tomcat properties JVM
now we are getting below errors in 2 instances:
Error
Jenkins detected that you appear to be running more than one instance of Jenkins that share the same home directory 'C:\Windows\system32\config\systemprofile.jenkins’. This greatly confuses Jenkins and you will likely experience strange behaviors, so please correct the situation.
This Jenkins: | 2440 |
---|---|
Other Jenkins: | 2400 |
===== | |
Error |
Jenkins detected that you appear to be running more than one instance of Jenkins that share the same home directory 'C:\Windows\system32\config\systemprofile.jenkins’. This greatly confuses Jenkins and you will likely experience strange behaviors, so please correct the situation.
This Jenkins: 2432
Other Jenkins: 2440
Ignore this problem and keep using Jenkins anyway
==========
It was giving below error before above error, our Jenkins home folders are in d: drive, not sure why Jenkins is looking in c: drive, how to change this path in any config file to look at respective home folders for each Jenkins ?
14-Sep-2022 16:11:22.376 SEVERE [Jenkins initialization thread] hudson.util.BootFailure.publish Failed to initialize Jenkins
hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read C:\Windows\system32\config\systemprofile.jenkins\config.xml
at hudson.WebAppMain$3.run(WebAppMain.java:264)
Caused by: org.jvnet.hudson.reactor.ReactorException: java.io.IOException: Unable to read C:\Windows\system32\config\systemprofile.jenkins\config.xml
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:291)
we removed that config.xml and restarted Jenkins to fix above error.
Why it’s not taking previous version home directory for each instance? how to fix this issue?
Appreciate your help on this.
Thank you.