1

The current configuration:

  • latest IntelliJ Idea Community Edition (2018.1.4)
  • latest SonarLint addon for Idea (3.4.2.2586)
  • SonarQube v6.7 (build 33306)

When I try to add the SonarQube server address (authentication with usr/psw) I got this message:

Failed to connect to the server. Please check the configuration. Error: Fail to request https://<sonarqube_server_url>/sonar/api/system/status

But when I try to open this URL (https://<sonarqube_server_url>/sonar/api/system/status) from Chrome I got this:

{
  "id": "oTvPjWRbAMXWalmApGYG",
  "version": "6.7.0.33306",
  "status": "UP"
}

So it seems to be running well, and of course I can log in and use well the webUI.

How should I connect to it from Idea?

balintbabics
  • 1,291
  • 2
  • 11
  • 25

1 Answers1

2

The problem could be caused by untrusted SSL certificate. SonarLint does not permit the configuration of certificates, but you can add certificate to JRE or JDK. Read more here: How to add certificates to SonarLint in Eclipse

agabrys
  • 8,728
  • 3
  • 35
  • 73
  • Unfortunately due to a firewall issue I can only reach the SonarQube server through an untrusted URL so I can't add the certificate, because it's not valid. – balintbabics Jun 11 '18 at 14:32
  • You can try add `-Dsun.security.ssl.allowUnsafeRenegotiation=true` to JDK process. – agabrys Jun 11 '18 at 18:01
  • @Yok please create a new question and include SonarLint Console logs. – agabrys Jan 15 '19 at 19:53