How to Troubleshoot if SonarQube is not starting? | SonarQube server can not be reached Error

preview_player
Показать описание

How to troubleshoot if SonarQube is not starting?

uncomment the below lines by removing # and add values highlighted yellow
Next, uncomment the below line, removing #

2. Switch to sql shell by entering
psql
Execute the below lines (one by one)

ALTER USER sonar WITH ENCRYPTED password 'password';

CREATE DATABASE sonarqube OWNER sonar;

GRANT ALL PRIVILEGES ON DATABASE sonarqube to sonar;

\q

type exit tom come out of postgresSQL.

3. Make sure you have setup sonarqube as a service properly.

Execute the below command:

# copy the below green highlighted commands in the above file
[Unit]
Description=SonarQube service

[Service]
Type=forking

User=root
Group=root
Restart=always

[Install]
Рекомендации по теме
Комментарии
Автор

thank you, just quick question, user in the sonar.service now is root while yours is sonar, did you create a new user for that? root is okay?

LUONGTO
Автор

Very much appreciate your efforts! So, I Followed the steps as given in the blog(for azure VM). But when trying to access it through the public IP address (i.e. <VMs public IP>:9000 ) it shows that the site can't be reached.
Note: I have also exposed the port-9000 for inbound traffic in the VM's security settings. Checked the logs it shows that "SonarQube is up"

Could you please help to identify the issue?

hariharasudhanp
Автор

Hi Sir
I Have installed the SonarQube server by using community addition and and included 9000 port in inbound rules and from server side i can able to see SonarQube is up and running it is giving the pid as well. But when comes to browser giving the not reachable exception...

anilkumar-rqcn
Автор

Thanks for such a great video.i want to change the host url from ec2publicip:9000 to ec2privateip:9000 how do i do that

hqwrgbp
Автор

I have downloaded latest version which is Sonarcube 9.7. When I am trying to start sonar, it’s getting stopped due to Java not found error. As per videos seen in youtube need to give JDK path in the wrapper.config file. When I checked for the wrapper file in the CONF folder.It has only one properties file. Please help me in resolving this error

bouchra
Автор

Hi Sir I am using default H2 db and starting the script being sonarqube user also I have Changes group and owner to sonar user java is also installed but still facing issue. few days before it was working but now facing issue

rahulpardeshi
Автор

Hi, please how can I delete my SonarQube package and start all over again. I made a mistake.

chuck.dev
Автор

Not authorized. Please check the properties sonar.login and sonar.password. how to solve it please

narimanethr
Автор

curl: (7) Failed to connect to 127.0.0.1 port 9000: Connection refused
my sonarqube is not running . please help me how to resolve this issue
thanks

manishraghav