I recently installed Sonarqube-4.5.1 on my Linux machine (x86_64 x86_64 x86_64 GNU / Linux).
I can start a sonar with the team ./sonar.sh start. When checking the status of the sonar with the command ./sonar.sh status, he says SonarQube is running (18493), but when I try to open a URL-address of the control panel http://ip-address:9000is displayed "message in your browser Connection refused ".
When I run the command, mvn sonar:sonar -Dsonar.host.url=http://localhost:9000I get the following error:
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.4:sonar (default-cli) on project app-dao: Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.4:sonar failed: SonarQube server can not be reached at http://localhost:9000. Please check the parameter 'sonar.host.url'. Connection refused -> [Help 1]
I also tried the solution mentioned in maven connecting to Sonar and added the following entries to my maven conf / settings.xml file, but still could not fix the problem.
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.jdbc.username>admin</sonar.jdbc.username>
<sonar.jdbc.password>admin</sonar.jdbc.password>
<sonar.host.url>http://localhost:9000</sonar.host.url>
</properties>
</profile>