Hudson.security.AccessDeniedException2: anonymously missing read permission

I run jenkins and get this error

hudson.security.AccessDeniedException2: anonymously missing Read permission

I tried many times, deleted cookies and that’s it.

+7
source share
5 answers

I had the same problem, I used this link and it worked for me:

https://wiki.jenkins-ci.org/display/JENKINS/Disable+security

Answer if you are able to solve the problem.

+5
source

Disabling protection is not a solution. This is probably for some reason. Try logging in instead.

java -jar jenkins-cli.jar -s http://yourserver/jenkins/ login --username usr --password qwerty 

amuses

+2
source

A similar problem I encountered, but with the GitHub OAuth plugin, my problem and solution was explained here

Hudson.security.AccessDeniedException2 errors: anonymously missing general / administrative permission in hudson.security.ACL.checkPermission (ACL.java:57)

org.kohsuke.github.HttpException: server returned HTTP response code: -1, message: 'null' for URL: https://ghe.acme.com/api/v3/user

+1
source

In addition to the above link, use these simple and clear steps.

I think some of the answers here were partial. Here's how I solved it:

Jenkins step /etc/init.d/jenkins stop sudo vi / var / lib / jenkins / config.xml (first copy the full text so that you won’t run into other problems later)

2.A. change useSecurity value false false

2. Remove authorization Strategic block

Start Jenkins again: /etc/init.d/jenkins start

Access Jenkins through the URL and configure security again.

0
source

https://wiki.jenkins-ci.org/display/JENKINS/Disable+security

I can run java -jar jenkins-cli.jar -s http: // server get-job myjob> myjob.xml

works for me using abouv url

0
source

All Articles