Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarQube Proxy Configuration, Tricky

I cannot get the proxy configuration to work for SonarQube 4.0 so that I can install plugins.

When i open http://localhost:9000/updatecenter/available it displays the error: "Not connected to update center. Please check your internet connection and logs."

In sonar.log I read: "org.sonar.api.utils.HttpDownloader$HttpException: Fail to download [http://update.sonarsource.org/update-center.properties]. Response code: 403"

In sonar.properties I configured it with the same proxy which I use for other programs:

sonar.updatecenter.activate=true
http.proxyHost=<host>
http.proxyPort=<port>
http.proxyUser=<username>
http.proxyPassword=<password>

I tried the same to configure in wrapper.properties, but it didn't work either by the way.

For the proxy host I tried the short and the full name. For the username I tried just the username and with <DOMAINNAME>\<username> and <DOMAINNAME>\\<username>.

Nothing of it worked. Any ideas?

like image 987
user3086925 Avatar asked Dec 10 '13 13:12

user3086925


People also ask

How do I run SonarQube on https?

To run the SonarQube server over HTTPS, you must build a standard reverse proxy infrastructure. The reverse proxy must be configured to set the value X_FORWARDED_PROTO: https in each HTTP request header. Without this property, redirection initiated by the SonarQube server will fall back on HTTP.

How do I restart SonarQube?

Restarting SonarQube can be done manually from the command line by running sonar.sh restart . In SonarQube Community Edition, you can also restart from the UI, in the Update Center. When you have Pending Changes, the restart button will be displayed in the yellow banner (see Pending Operations).


1 Answers

My proxy configuration works and looks the following way:

http.proxyHost=proxy.domain.de
http.proxyPort=8888

Note that there is no "http://" or anything else before the URL.

Also, I do not use proxy authentication, so I left "proxyUser" and "proxyPassword" commented out.

like image 130
TimStefanHauschildt Avatar answered Sep 21 '22 12:09

TimStefanHauschildt