To upgrade Jenkins from version 1.466.2
to version 1.557
, I replaced the old jenkins war
file with jenkins war
file in the directory /usr/share/jenkins
. Then on restarting the jenkins from command line I started getting the new Jenkins version 1.557
. But sometime later I messed with security part of it, I checked the security check box while configuring Jenkins. Now I am not able to use Jenkins, if I go to myproject.com:3300
it gives me error: hudson.security.AccessDeniedException2: anonymous is missing the Overall/Administer permission
.
To fix this error I found that I need to change <usesecurity>
from true to false. But when I go to the var/lib/jenkins
(which home directory of Jenkins) to edit config.xml. I am still seeing the old version version 1.466.2
but in GUI at myproject.com:3300
it shows new version.
I am stuck here, please let me know what am I missing, how can I get it running.
You are right that you need to change <usessecurity>
in $JENKINS_HOME/config.xml
. I wouldn't worry about the config file having a different version. Shutdown the process. Change the file. Restart the process.
But if after this you are seeing no change and still can't login, maybe your Jenkins home is something else
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With