Jenkins login error

Just install jenkins on your Ubuntu v16 laptop.

I followed the installation steps from this page

After setting up, I selected the password for installation from /var/logs/jenkins/jenkins.log and was able to set the administrator user / password. I made a note about loans.

I also managed to access and install a simple helloworld pipeline job .

I went out and returned to my table after about 20 minutes. The session is logged out and I cannot log in with my loans. I tried to remove the Jenkins and bring them back. It still seems that credits are being saved somewhere, and now every time I am on the login page with an error with errors.

 Invalid login information. Please try again. Try again If you are a system administrator and suspect this to be a configuration problem, see the server console output for more details. 

Need help figuring out what is happening. My logs do not have useful information related to this error.

+7
ubuntu jenkins
source share
1 answer

As stated in the answer, the fastest way to get around this would be to completely disable security by making the following change to your Jenkins config.xml file:

 <useSecurity>true</useSecurity> 

After rebooting your Jenkins instance, you can return to the administration page and install everything there.

An alternative solution for this is mentioned here , which should accomplish what you want while maintaining the security of your Jenkins instance (thereby making it a more ideal solution). Instead, you updated the passwordHash section of your Jenkins config.xml file:

 <passwordHash>#jbcrypt:$2a$10$razd3L1aXndFfBNHO95aj.IVrFydsxkcQCcLmujmFQzll3hcUrY7S</passwordHash> 

The passwordHash section of the config.xml file is a child tag in <hudson.security.HudsonPrivateSecurityRealm_-Details> .

You will again need to restart Jenkins after this change is made, and you must log in using the password 'test'. Of course, you could provide your own hash of a different password, which would be appropriate.

+3
source share

All Articles