Sonarqube admin login fails even after resetting

In the SS , i have only sonar user which has superuser,create role create DB roles. I tried to run the insert command on this user but it gave me error. please suggest

Hi,

I can’t read that latest screenshot well, but du gives you the users of the current DB schema. You’re after SonarQube users.

Can you log into SonarQube?

 
Ann

I am trying with admin/admin but its giving me authentication failed

i have this sonarqube container running . How can i check admin user is present or not and also how to reset admin pwd for logging

Hi,

I know admin/admin doesn’t work. That’s where we started. Do you have another login that does work?

 
Ann

No. I followed the below link and installed sonarqube. If not this can you share me which image will work with admin/admin login. Will try that .

Hi,

It may just be easiest for you to start over. Clean out your database and let SonarQube reinitialize it. And it will help if you follow the official docs.

 
HTH,
Ann

Hi

I have deployed a new server and followed the official document for installing sonarqube.

I used docker image section adn deployed sonarqube . I tried to login with admin/admin and I am getting authentication error again.

command used to start sonarqube :

Hi,

At a guess, you didn’t clean out your database schema first.

 
HTH,
Ann

This is a new server which has nothing on it. I freshly installed docker and deployed sonarqube container.

I’m not sure where this schema cleanup has to be done?

Hi,

But what about the database you’re connected to?

 
Ann

In the docker hub, it is mentioned that sonarqube image comes with default h2 database.
I didnt install any particular DB for this.

“By default, the image will use an embedded H2 database that is not suited for production”

Hi,

Okay, so you’re connecting to H2 on “a new server which has nothing on it” and still not able to log in with admin/admin?

If so, I don’t know what else to do to help you. The problem lies somewhere else.

 
Ann

can you give me some docker image which works with admin/admin credentials
I am using arm processor and docker version is 27.0.1 Is there any issue that sonarqube doesnt work with arm processor?

Hi,

The SonarQube Server should work anywhere Java runs. Besides, you’re not complaining about SonarQube Server not working, but about not being able to log in.

I suggest you simply start from a completely fresh instance.

 
Ann

Please install SSL, configure Nginx to point the service to a hostname, and try again.