Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - j_acegi_security_check

I am trying to setup jenkins, but I cant get the authentication to work. I am running jenkins on Tomcat6 on CentOS 6.2. I enable logging in, and everything goes fine until I try to log in. After giving my credential and pressing login, tomcat gives me a error:

"HTTP Status 404 - The requested resource () is not available." on http://myserver:8080/jenkins/j_acegi_security_check

By googling I can find this: https://issues.jenkins-ci.org/browse/JENKINS-3761

Two suggested fixes I have found:

  • Run jenkins on tomcat instead of running the standalone version - I am already doing so.
  • Edit a file: WEB-INF/security/SecurityFilters.groovy - I tried to edit, but I can't get it to change anything

Is there something I could do to make this work?

like image 523
varesa Avatar asked Mar 13 '12 12:03

varesa


2 Answers

Spent ages wrestling with this one, make sure a Security Realm is set when you are choosing your Authorization method in Jenkins.

That is, in Manage Jenkins → Configure Global Security select an option in the Security Realm list.

For example:

enter image description here

like image 177
Oli Avatar answered Oct 14 '22 16:10

Oli


You may have forgotten to select a Security Realm as specified below

https://wiki.jenkins-ci.org/display/JENKINS/Standard+Security+Setup

In case you have locked yourself out, you can revert the Jenkins config.xml file to set <useSecurity>true</useSecurity> node value to false by following instructions here

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

like image 22
Ransom Avatar answered Oct 14 '22 17:10

Ransom