Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to recover admin password for SonarQube

Tags:

I forgot the admin password for SonarQube. Googled and found that the value for crypted_password should be updated to 8b1254c1c684c5dc904f3f174cea1cacbde4ad84 which will reset the password to admin. But still I am not able to login. Any advice?

like image 578
Sivakumar Avatar asked Aug 13 '13 12:08

Sivakumar


People also ask

How do I find my Administrator password for SonarQube?

On documentation page in section Reinstating Admin Access you'll find query which allows you from database level reset admin user password to default password which is simply admin .

How do I add an admin user to SonarQube?

directory your admin can create a new user under Administration → Security → Users → Create User . after that your admin need to add this user to the group sonar-administrators (Administration → Security → Groups) and the user is now an additional admin as well.

How do I log into SonarQube?

Sonar, by default, creates an Administrator account with username admin and password admin . Point your browser at http://localhost:9000/ . At the top right of the dashboard, click on the Log in link and fill in the form with username as admin and password as admin .


2 Answers

Just an update to this the new link is here: http://docs.sonarqube.org/display/SONAR/Authentication

As it says on the link you can do this:

In case you lost the admin password of your SonarQube instance, you can reset it by executing the following query:

update users  set crypted_password = '88c991e39bb88b94178123a849606905ebf440f5', salt= '6522f3c5007ae910ad690bb1bdbf264a34884c6d'  where login = 'admin' 

This will reset the password to admin.

like image 53
zpontikas Avatar answered Oct 04 '22 17:10

zpontikas


I'm not sure where you got the info. Here's the official documentation to reset the password and to recreate an admin user

like image 21
David RACODON - QA Consultant Avatar answered Oct 04 '22 16:10

David RACODON - QA Consultant