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

回眸只為那壹抹淺笑 提交于 2020-01-13 10:08:02

问题


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.

Thanks


回答1:


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.




回答2:


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




回答3:


the problem is with your java runtime(JRE) , what you need to do is to download a 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

a note : only install jre and not jdk , when finished check in terminal using java -version command if the version is according to what you have just installed . good luck !



来源:https://stackoverflow.com/questions/20211215/one-of-your-sonarqube-server-cannot-be-reached-please-check-your-connection-set

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!