# Upgrading Jenkins from 2.346.3 to 2.361.4

**URL:** <https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637>\
**Category:** Using Jenkins\
**Tags:** windows\
**Created:** [February 6, 2023, 4:38pm UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637 "2023-02-06T16:38:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenkinsheahache](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jenkinsheahache](https://community.jenkins.io/u/jenkinsheahache)\
**Post date:** [February 6, 2023, 4:38pm UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/1 "2023-02-06T16:38:56Z")

</div>

When running the 2.361.4 msi upgrade, The Jenkins appeared to be starting up normally, but then I noticed that it was acting like I had never had Jenkins installed. It was performing what looked like an initial install, which seemed even more confirmed when it asked me for the initial Administrator password. After finishing starting up, I had no jobs any more, the configuration seemed to be completely gone. Previously installed plugins were no longer there and jobs / configurations were all gone. In looking into the directory structure on the OS, I still see my jobs defined, etc.

Platform: Windows 2012 R2  
Java version on the server: java version “1.8.0\_181-b13”

I did understand above 2.36x.x up need to install the JAVA 11 which I did. all the plugins are updated before executed the 2.361.4 msi.

I have follow this blog to run the upgrade.

> **[Windows Installer Upgrades](https://www.jenkins.io/blog/2020/08/12/windows-installers-upgrade/)**
>
> Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [February 6, 2023, 5:11pm UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/2 "2023-02-06T17:11:18Z")

</div>

It is not recommended to upgrade Jenkins using the MSI installer. This use case is not supported. You can upgrade Jenkins using the upgrade method in the UI. The MSI should only be used for initial install.

---

<div class="post-metadata">

**Author:** ![jenkinsheahache](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jenkinsheahache](https://community.jenkins.io/u/jenkinsheahache)\
**Post date:** [February 7, 2023, 9:17am UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/3 "2023-02-07T09:17:09Z")

</div>

Do you mean under the Manage Jenkins? I also tried but it seems the Jenkins services never able to get it start it. and I have waited for 15 to 30 mins. Do I need to switch the JAVA version first? since 2.346.3 running

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/9/99594b51ac81eac3b43f4914a0bf633024e79720.png)

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [February 7, 2023, 12:50pm UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/4 "2023-02-07T12:50:06Z")

</div>

Yes, I would upgrade Java (you’ll need to update the jenkins.xml file in the Jenkins installation directory to set the path to Java). Then after that is done, upgrade Jenkins using the mechanism you show in the screenshot.

---

<div class="post-metadata">

**Author:** ![jenkinsheahache](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jenkinsheahache](https://community.jenkins.io/u/jenkinsheahache)\
**Post date:** [February 7, 2023, 1:10pm UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/5 "2023-02-07T13:10:49Z")

</div>

> [@slide\_o\_mix](#):
>
> t the path to Java). Then after that is done, upgrade Jenkins using the mechanism you

Hi Alex,  
I have installed the JAVA SE Development Kit 19.0.2 64bits

yes I did updated the JAVA version on the jenkins.xml

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/0/0f4a39a5da4e50b364e2858fe2929472a7e8072e.png)

---

<div class="post-metadata">

**Author:** ![jenkinsheahache](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jenkinsheahache](https://community.jenkins.io/u/jenkinsheahache)\
**Post date:** [February 7, 2023, 1:12pm UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/6 "2023-02-07T13:12:51Z")

</div>

however i updated the java version on the jenkins.xml. i still dont not see system Properties change the JAVA.runtime

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/c/c2cfaa32cc1509c16fcf9bfa93952b091b00ff51.png)

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [February 7, 2023, 3:41pm UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/7 "2023-02-07T15:41:09Z")

</div>

Are you sure you are using the correct jenkins.xml file? Also, I assume you restarted Jenkins after updating the jenkins.xml?

---

<div class="post-metadata">

**Author:** ![jenkinsheahache](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jenkinsheahache](https://community.jenkins.io/u/jenkinsheahache)\
**Post date:** [February 7, 2023, 5:12pm UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/8 "2023-02-07T17:12:25Z")

</div>

Hi Alex,  
yes That is the Jenkins.xml. I just tried. pointing to the new c:\Program files\JAVA\jdk-19\java.exe will not work. the Jenkins services will not start at all and giving me an error.  
any clue? do i need to grant permission? or i need to reinstall the JAVA into the Jenkins folder?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/4/44405fe9cc76b86db111f1ad0e84dad89255bfa5.png)

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [February 7, 2023, 8:51pm UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/9 "2023-02-07T20:51:38Z")

</div>

Can you try a Java 17?

---

<div class="post-metadata">

**Author:** ![jenkinsheahache](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jenkinsheahache](https://community.jenkins.io/u/jenkinsheahache)\
**Post date:** [February 20, 2023, 9:31am UTC](https://community.jenkins.io/t/upgrading-jenkins-from-2-346-3-to-2-361-4/5637/10 "2023-02-20T09:31:34Z")

</div>

Thank you so much Alex. by upgrade to JAVA 17 and switch it JAVA 17 before the upgrade. I am finally able to upgraded to Jenkins 2.375.3
