Auto upgrade button missing
Solution 1
as it states in the https://wiki.jenkins-ci.org/display/JENKINS/Automated+Upgrade "Using the Upgrade-Button from within Jenkins (available since 1.318) will not work if Jenkins was installed from a Debian package (results in permission denied errors when trying to download the new WAR file)!"
so even if you find the button it will fail.
but it also says that
aptitude update && aptitude install jenkins
will update the jenkins to the newest version, give it a try :)
Solution 2
It's a permissions problem, If you trust in your Jenkins security configuration just run:
$ chown -R jenkins /usr/share/jenkins
Then restart jenkins and the upgrade button should be shown, and you can upgrade to last version, otherwise you have to use debian package system whose Jenkins version is not the latest.
Solution 3
Change the ownership (to jenkins UID and GID) of the directory where the jenkins.war resides and the WAR file itself. For example, the following works for RHEL:
chown jenkins:jenkins /usr/lib/jenkins
chown jenkins:jenkins /usr/lib/jenkins/jenkins.war
Solution 4
https://wiki.jenkins-ci.org/display/JENKINS/Automated+Upgrade
If you've installed via the OS X installer, the 'jenkins' running the process does not own the .war file. To get auto-upgrade working, just fix the permissions so the jenkins user can write the WAR (in /Applications/Jenkins).
run the command to find the location of jenkins.war
ps -aux | grep jenkins
output like this: jenkins 27765 172 11.0 3528188 432288 ? Ssl 12:23 4:16 /etc/alternatives/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=8009 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
location of jenkins.war is: /usr/lib/jenkins/jenkins.war
run command to fix /usr/lib/jenkins/jenkins.war permissions. for example:
chmod 777 /usr/lib/jenkins/jenkins.war
then refresh manage page. and you will see the button.
Related videos on Youtube
ducin
py / js / java enthusiast. Curious of many technologies.
Updated on September 15, 2022Comments
-
ducin over 1 year
I've got a jenkins CI installed from a debian package (1.424.6 version, Debian/Ubuntu distribution, running on ubuntu 12.04). I read on the web that jenkins provides an automatic upgrade button, just like in . But I don't have such thing on my jenkins. I tried to find answers on google and in jenkins config, but failed. Maybe it's impossible for debian/ubuntu installed package?
-
user2636840 over 8 yearsplease don't use 777 as permissions. It may work but is a high security risk
-
johnboiles over 8 yearsFor OSX users, do:
sudo chown -R jenkins /Applications/Jenkins
-
mani_drinks_coffee almost 8 yearsIn my case (hopefully default case), it was
chown -R jenkins:jenkins /usr/lib/jenkins/
-
IgorGanapolsky over 7 years@user2636840 Which perm number do you use?
-
IgorGanapolsky over 7 yearsThis did the trick in making Jenkins pick up the new .war file which I downloaded. Thanks!
-
JDQ over 3 yearsThis restored the visibility of the "Upgrade Automatically" button for me in the web app. It went missing after downloading and reverting to a previous version of Jenkins using
root
.