Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

One of your SonarQube server cannot be reached. Please check your connection settings

I am new to Sonar and I am trying to install and configure Sonar in my local system. I have followed the steps mentioned here for installing sonar and integrating it with eclipse, but I can not associate my project with sonar and getting exception One of your SonarQube server cannot be reached. Please check your connection settings. please see the below screen shots, and let me know if i am missing something.

Project associationSonar Server error message

enter image description hereenter image description here

enter image description here

Thanks

like image 980
subhashis Avatar asked Nov 26 '13 07:11

subhashis


People also ask

How do I find my SonarQube server version?

SonarQube version - Found under System Info at Administration > System. SonarQube edition.

Do SonarQube server and scanner need to be in same network?

About Machines and Locations All machines must be time synchronized. SonarQube Scanners don't need to be on the same network as the SonarQube Server. There is no communication between SonarQube Scanners and the SonarQube Database.


2 Answers

I had the same issue just now.

What helped me in the end was to test the server connection from Eclipse's Window -> Settings -> SonarQube -> Servers -> http://localhost:9000 -> Edit -> Test connection

I am running a fresh SonarQube installation and did not specify a username nor a password. The test returned Successfully Connected! and thereafter SonarQube markers showed up in the source code as well as in the SonarQube issues tab.

like image 144
hcvst Avatar answered Oct 01 '22 01:10

hcvst


From the http://www.sonarqube.org/downloads/ did you install sonarqube and started the service? If you didn't you need to do it first. When you start service you will see the connection string. And then in SoberQube configuration in Eclipse instead of http://localhost:9000 try http://0.0.0.0:9000

like image 44
Etibar - a tea bar Avatar answered Oct 01 '22 03:10

Etibar - a tea bar