Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"hudson.security.AccessDeniedException2: anonymous is missing the Overall/Administer permission" error in Jenkins

Tags:

jenkins

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.

like image 506
paul Avatar asked Apr 03 '14 09:04

paul


1 Answers

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

like image 55
Slav Avatar answered Oct 10 '22 09:10

Slav