Unable to reach one of your SonarQube servers. Check your connection settings.

I am new to Sonar and I am trying to install and configure Sonar on my local system. I followed the steps mentioned here to install sonar and integrate it with eclipse, but I can not associate my project with sound and get an exception. One of your SonarQube Server is unavailable. Check your connection settings. see the screenshots below and let me know if I missed something.

Project associationSonar server error message

enter image description hereenter image description here

enter image description here

thanks

+6
source share
4 answers

I had the same problem just now.

As a result, it helped me to test the connection to the server from Eclipse Window -> Settings -> SonarQube -> Servers -> http://localhost:9000 -> Edit -> Test connection

I am starting a new installation of SonarQube and do not provide a username and password. Test returned successfully connected! and after that, SonarQube markers appeared both in the source code and on the Sonar Problems tab.

+2
source

From http://www.sonarqube.org/downloads/ did you install sonarqube and start the service? If you have not done so, you need to do it first. When the service starts, you will see a connection string. And then in the SoberQube configuration in Eclipse instead of http://localhost:9000 try http://0.0.0.0:9000

0
source

the problem is your java runtime (JRE), you need to download the new JRE from oracle: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html and install it, then try again and it should work

Note: just install jre, not jdk, when you finish checking the terminal with the java -version command if the version matches what you just installed. good luck!

0
source

Just make sure the sonar server is working correctly, if it starts the connection, it will be successful. If the message "Unable to connect" is displayed on the screen, there will be a problem with the server

-2
source

Source: https://habr.com/ru/post/958836/


All Articles