# Issues upgrading jenkins

**URL:** <https://community.jenkins.io/t/issues-upgrading-jenkins/17772>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [August 1, 2024, 5:46pm UTC](https://community.jenkins.io/t/issues-upgrading-jenkins/17772 "2024-08-01T17:46:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CraigLaMorte](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/craiglamorte/32/2156_2.png) [@CraigLaMorte](https://community.jenkins.io/u/CraigLaMorte)\
**Post date:** [August 1, 2024, 5:46pm UTC](https://community.jenkins.io/t/issues-upgrading-jenkins/17772/1 "2024-08-01T17:46:29Z")

</div>

Hi,

I am trying to upgrade jenkins from 2.423 to the latest version and I am running into issues. I stop jenkins, I backup the jenkins war file, and I download the latest like so

sudo wget [https://updates.jenkins.io/download/war/latest/jenkins.war](https://updates.jenkins.io/download/war/latest/jenkins.war)

And then when i go start jenkins again I get an error  
"Job for jenkins.service failed because the control process exited with error code. See “systemctl status jenkins.service and journalctl -xe for details”

I have upgraded jenkins version in the past and have never run into this issue, not sure why it’s doing this.

Thanks  
Craig

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [August 1, 2024, 5:50pm UTC](https://community.jenkins.io/t/issues-upgrading-jenkins/17772/2 "2024-08-01T17:50:30Z")

</div>

Have you installed Jenkins with a package manager? If yes then you should also update Jenkins via the package manager and not by just updating the war file.

Running `journalctl -u jenkins` should tell you what the problem is normally.

Also 2.423 is a rather old version. The latest weekly version requires java17 did you consider this?  
I would also recommend to use LTS versions for productive systems. There you have upgrade guides that point you to important things you have to consider during upgrades.

---

<div class="post-metadata">

**Author:** ![CraigLaMorte](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/craiglamorte/32/2156_2.png) [@CraigLaMorte](https://community.jenkins.io/u/CraigLaMorte)\
**Post date:** [August 1, 2024, 9:11pm UTC](https://community.jenkins.io/t/issues-upgrading-jenkins/17772/3 "2024-08-01T21:11:17Z")

</div>

Ah thank you, that helped greatly. Yes it appears I am still on java 11, upgrading that all currently. Good to know, i was able to find all the documentation on the LTS versions so ill be sure to do that. I used apt, so ill see if i can upgrade it with that

---

<div class="post-metadata">

**Author:** ![CraigLaMorte](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/craiglamorte/32/2156_2.png) [@CraigLaMorte](https://community.jenkins.io/u/CraigLaMorte)\
**Post date:** [August 2, 2024, 5:52pm UTC](https://community.jenkins.io/t/issues-upgrading-jenkins/17772/4 "2024-08-02T17:52:16Z")

</div>

it appears I cannot upgrade jenkins through the package manager? its showing my installed version is 2.387.1 and that there is no newer versions to install? I did do an apt-get update and apt-get upgrade as well.

sudo apt-cache policy jenkins  
jenkins:  
Installed: 2.387.1  
Candidate: 2.387.1  
Version table:  
\*\*\* 2.387.1 100  
100 /var/lib/dpkg/status

---

<div class="post-metadata">

**Author:** ![CraigLaMorte](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/craiglamorte/32/2156_2.png) [@CraigLaMorte](https://community.jenkins.io/u/CraigLaMorte)\
**Post date:** [August 2, 2024, 6:21pm UTC](https://community.jenkins.io/t/issues-upgrading-jenkins/17772/5 "2024-08-02T18:21:12Z")

</div>

oh i think i found my answer, had to run this to get the latest stable

```auto
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
  https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]" \
  https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
  /etc/apt/sources.list.d/jenkins.list > /dev/null

```
