Cannot Log Into Jenkins

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot Log Into Jenkins

Moebius
Up until this morning, I was able to log into Jenkins with no problems.  Now, when I try to log in, the page is simply redirecting back to the login page.  I have no idea what happened and I am not seeing any messages in the console log.  Unfortunately, this is the only user account I have for Jenkins.  If I have to, I would have no problems getting rid of all users just so I can get back into it.  I don't know what to do here.

Any help would be appreciated.
Reply | Threaded
Open this post in threaded view
|

AW: Cannot Log Into Jenkins

Petriconi, Felix

Hi,

 

Stop your Jenkins Server, go to your JENKINS_HOME folder and edit here the file config.xml:

 

Set the tag from <useSecurity>true</useSecurity> to <useSecurity>false</useSecurity>

 

And remove the complete tags <authorizationStrategy …> until </authorizationStrategy>

and <securityRealm..> until </securityRealm> if they are available and save the file.

 

Then restart the Jenkins Server and you should have full access.

 

I hope this helps. If not, please give more details about you used WebServer.

 

Regards, Felix

 

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Moebius
Gesendet: Dienstag, 22. November 2011 18:01
An: [hidden email]
Betreff: Cannot Log Into Jenkins

 

Up until this morning, I was able to log into Jenkins with no problems.  Now, when I try to log in, the page is simply redirecting back to the login page.  I have no idea what happened and I am not seeing any messages in the console log.  Unfortunately, this is the only user account I have for Jenkins.  If I have to, I would have no problems getting rid of all users just so I can get back into it.  I don't know what to do here.

Any help would be appreciated.

Reply | Threaded
Open this post in threaded view
|

Re: Cannot Log Into Jenkins

Moebius
Thanks for the tip.  Just got it in unsecured.  I will try enabling security again, but now I know how to get back in if this happens again.