Update Center not working behind proxy (5.2)

458 views
Skip to first unread message

Steffen Breitbach

unread,
Nov 2, 2015, 8:41:36 AM11/2/15
to SonarQube
Hi everyone!

I can't get the Update Center to work on SonarQube 5.2 behind a proxy.
It will work fine on machines that have proper internet access though.

I have configured the proxy in the sonar.properties both as
"http.proxyHost" and as
"sonar.web.javaAdditionalOpts=-Dhttps.proxyHost=..." (as suggested in
http://stackoverflow.com/questions/31296136/update-center-behind-proxy-howto-with-https-bintray-repository).

On the "System Info" page I can see that both http.proxyHost and
https.proxyHost are set, both using the right port number.

I also know that the proxies are working as expected when setting them
as an environment variable and using wget to download from the internet.

I suspect that the SSL part isn't working properly because I can see
Updates in the Update Center (under "Updates Only"), but the install
buttons are missing.

Unfortunately, I don't know how to debug this any further. Setting the
log level even to "TRACE" won't generate any logging that would help.

Any ideas?

Regards
Steffen

Simon Brandhof

unread,
Nov 2, 2015, 10:52:03 AM11/2/15
to Steffen Breitbach, SonarQube
Hi Steffen,

There are probably no problems with your configuration. Release candidates do not support fully update center yet.

Regards 


Simon BRANDHOF | SonarSource
Tech Lead & Co-Founder
http://twitter.com/SimonBrandhof


  Steffen

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/56376808.4080305%401und1.de.
For more options, visit https://groups.google.com/d/optout.

Steffen Breitbach

unread,
Nov 3, 2015, 3:02:08 AM11/3/15
to SonarQube, Simon Brandhof
Hi Simon,

I was using the release of 5.2 already ;)

Anyhow, now that 5.2 has been released, the update center still doesn't
work.

Apart from that I don't think that it had anything to do with the
release because - as I said - everything was working fine when using a
machine with direct internet connection.

Any suggestions?

Regards
Steffen

On 02.11.2015 16:51, Simon Brandhof wrote:
> Hi Steffen,
>
> There are probably no problems with your configuration. Release
> candidates do not support fully update center yet.
>
> Regards
>
>
> *Simon BRANDHOF | **SonarSource*
> /Tech Lead & Co-Founder/*
> *http://twitter.com/SimonBrandhof
>
> On 2 November 2015 at 14:41, Steffen Breitbach
> <mailto:sonarqube%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sonarqube/56376808.4080305%401und1.de.
> For more options, visit https://groups.google.com/d/optout.
>
>

--
Steffen Breitbach

Operations Architect
Continuous Integration & Delivery BS

1&1 Internet SE | Bahnallee | 56410 Montabaur | Germany
Phone: +49 2602 96-1282
E-Mail: steffen....@1und1.de | Web: www.1und1.de

Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498

Vorstand: Christian Bigatà Joseph, Robert Hoffmann, Hans-Henning
Kettler, Uwe Lamnek
Aufsichtsratsvorsitzender: Michael Scheeren


Member of United Internet

Tim Webster

unread,
Nov 3, 2015, 6:19:55 AM11/3/15
to Steffen Breitbach, SonarQube, Simon Brandhof
Hi,

Steffen you're not the only one with this problem.  I've always struggled to get SonarQube to work behind a proxy.  Usually it works on my desktop (where I have an instance for testing/plugin development), but not on our production instance.  I chalked this up to network configuration (even though the proxy worked for other software), but it seems for 5.2 it doesn't work on my desktop either.

Tim


To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/563869FE.3070309%401und1.de.

Steffen Breitbach

unread,
Nov 3, 2015, 7:17:11 AM11/3/15
to SonarQube
Turns out it started working "suddenly" without changes on my side.

I guess SonarSource "unlocked" 5.2 in their update center or something
like that.

Give it a shot, maybe yours will work too?
> <mailto:Steffen....@1und1.de
> <mailto:sonarqube%2Bunsu...@googlegroups.com
> <mailto:sonarqube%252Buns...@googlegroups.com>>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sonarqube/56376808.4080305%401und1.de.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Steffen Breitbach
>
> Operations Architect
> Continuous Integration & Delivery BS
>
> 1&1 Internet SE | Bahnallee | 56410 Montabaur | Germany
> Phone: +49 2602 96-1282 <tel:%2B49%202602%2096-1282>
> E-Mail: steffen....@1und1.de
> <mailto:steffen....@1und1.de> | Web: www.1und1.de
> <http://www.1und1.de>
>
> Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498
>
> Vorstand: Christian Bigatà Joseph, Robert Hoffmann, Hans-Henning
> Kettler, Uwe Lamnek
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
> Member of United Internet
>
> --
> You received this message because you are subscribed to the Google
> Groups "SonarQube" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to sonarqube+...@googlegroups.com
> <mailto:sonarqube%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit

Tim Webster

unread,
Nov 3, 2015, 7:29:13 AM11/3/15
to SonarQube
Nope:

Caused by: org.sonar.api.utils.SonarException: Fail to download: https://sonarsource.bintray.com/Distribution/sonar-java-plugin/sonar-java-plugin-3.7.jar (no proxy)
at org.sonar.core.util.DefaultHttpDownloader.failToDownload(DefaultHttpDownloader.java:159) ~[sonar-core-5.2.jar:na]
at org.sonar.core.util.DefaultHttpDownloader.download(DefaultHttpDownloader.java:154) ~[sonar-core-5.2.jar:na]
at org.sonar.server.plugins.PluginDownloader.downloadRelease(PluginDownloader.java:160) ~[sonar-server-5.2.jar:na]
at org.sonar.server.plugins.PluginDownloader.download(PluginDownloader.java:134) ~[sonar-server-5.2.jar:na]
... 380 common frames omitted
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) ~[na:1.7.0_65]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) ~[na:1.7.0_65]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) ~[na:1.7.0_65]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) ~[na:1.7.0_65]
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) ~[na:1.7.0_65]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_65]
at java.net.Socket.connect(Socket.java:579) ~[na:1.7.0_65]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618) ~[na:1.7.0_65]
at sun.net.NetworkClient.doConnect(NetworkClient.java:175) ~[na:1.7.0_65]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) ~[na:1.7.0_65]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) ~[na:1.7.0_65]
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275) ~[na:1.7.0_65]
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371) ~[na:1.7.0_65]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) ~[na:1.7.0_65]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932) ~[na:1.7.0_65]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) ~[na:1.7.0_65]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) ~[na:1.7.0_65]
at org.sonar.core.util.DefaultHttpDownloader$BaseHttpDownloader$HttpInputSupplier.getInput(DefaultHttpDownloader.java:331) ~[sonar-core-5.2.jar:na]
at org.sonar.core.util.DefaultHttpDownloader$BaseHttpDownloader$HttpInputSupplier.getInput(DefaultHttpDownloader.java:288) ~[sonar-core-5.2.jar:na]
at com.google.common.io.ByteStreams$3.openStream(ByteStreams.java:1020) ~[guava-17.0.jar:na]
at com.google.common.io.ByteSource.copyTo(ByteSource.java:254) ~[guava-17.0.jar:na]
at com.google.common.io.Files.copy(Files.java:384) ~[guava-17.0.jar:na]
at org.sonar.core.util.DefaultHttpDownloader.download(DefaultHttpDownloader.java:151) ~[sonar-core-5.2.jar:na]
... 382 common frames omitted

Steffen Breitbach

unread,
Nov 3, 2015, 7:42:12 AM11/3/15
to sona...@googlegroups.com
Okay, doesn't seem to completely work on my side either.

What WORKS now (didn't work yesterday):
- I can see the list of Available plugins
- I can see update notes on plugins that have new versions available
(e.g. Java 3.6 => 3.7)

What DOESN'T work:
Actually install or update plugins. I get an error like "Plugin 'java'
not found" or something.

Fun fact:
I can't reproduce the error because, out of a sudden, the Update Center
ceased working. ?!?

So, back to the beginning, nothing works any more... :(
> > <Steffen....@1und1.de <javascript:> <mailto:Steffen....@1und1.de
> <javascript:>>> wrote:
> >
> > Hi Simon,
> >
> > I was using the release of 5.2 already ;)
> >
> > Anyhow, now that 5.2 has been released, the update center still
> > doesn't work.
> >
> > Apart from that I don't think that it had anything to do with
> the
> > release because - as I said - everything was working fine
> when using
> > a machine with direct internet connection.
> >
> > Any suggestions?
> >
> > Regards
> > Steffen
> >
> > On 02.11.2015 16:51, Simon Brandhof wrote:
> >
> > Hi Steffen,
> >
> > There are probably no problems with your configuration.
> Release
> > candidates do not support fully update center yet.
> >
> > Regards
> >
> >
> > *Simon BRANDHOF | **SonarSource*
> > /Tech Lead & Co-Founder/*
> > *http://twitter.com/SimonBrandhof
> <http://twitter.com/SimonBrandhof>
> >
> > On 2 November 2015 at 14:41, Steffen Breitbach
> > <Steffen....@1und1.de <javascript:>
> <mailto:Steffen....@1und1.de <javascript:>>
> > <mailto:Steffen....@1und1.de <javascript:>
> > <mailto:Steffen....@1und1.de <javascript:>>>> wrote:
> >
> > Hi everyone!
> >
> > I can't get the Update Center to work on SonarQube
> 5.2 behind a
> > proxy. It will work fine on machines that have
> proper internet
> > access though.
> >
> > I have configured the proxy in the sonar.properties
> both as
> > "http.proxyHost" and as
> > "sonar.web.javaAdditionalOpts=-Dhttps.proxyHost=..."
> (as
> > suggested
> > in
> >
> http://stackoverflow.com/questions/31296136/update-center-behind-proxy-howto-with-https-bintray-repository
> <http://stackoverflow.com/questions/31296136/update-center-behind-proxy-howto-with-https-bintray-repository>).
> <javascript:>
> > <mailto:sonarqube%2Bunsu...@googlegroups.com
> <javascript:>>
> > <mailto:sonarqube%2Bunsu...@googlegroups.com
> <javascript:>
> > <mailto:sonarqube%252Buns...@googlegroups.com
> <javascript:>>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sonarqube/56376808.4080305%401und1.de
> <https://groups.google.com/d/msgid/sonarqube/56376808.4080305%401und1.de>.
>
> > For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
> >
> >
> >
> > --
> > Steffen Breitbach
> >
> > Operations Architect
> > Continuous Integration & Delivery BS
> >
> > 1&1 Internet SE | Bahnallee | 56410 Montabaur | Germany
> > Phone: +49 2602 96-1282 <tel:%2B49%202602%2096-1282>
> > E-Mail: steffen....@1und1.de <javascript:>
> > <mailto:steffen....@1und1.de <javascript:>> | Web:
> www.1und1.de <http://www.1und1.de>
> > <http://www.1und1.de>
> >
> > Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498
> >
> > Vorstand: Christian Bigatà Joseph, Robert Hoffmann, Hans-Henning
> > Kettler, Uwe Lamnek
> > Aufsichtsratsvorsitzender: Michael Scheeren
> >
> >
> > Member of United Internet
> >
> > --
> > You received this message because you are subscribed to the
> Google
> > Groups "SonarQube" group.
> > To unsubscribe from this group and stop receiving emails from
> it,
> > send an email to sonarqube+...@googlegroups.com <javascript:>
> > <mailto:sonarqube%2Bunsu...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sonarqube/563869FE.3070309%401und1.de
> <https://groups.google.com/d/msgid/sonarqube/563869FE.3070309%401und1.de>.
>
> >
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
> >
> >
>
> --
> Steffen Breitbach
>
> Operations Architect
> Continuous Integration & Delivery BS
>
> 1&1 Internet SE | Bahnallee | 56410 Montabaur | Germany
> Phone: +49 2602 96-1282
> E-Mail: steffen....@1und1.de <javascript:> | Web: www.1und1.de
> <http://www.1und1.de>
>
> Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498
>
> Vorstand: Christian Bigatà Joseph, Robert Hoffmann, Hans-Henning
> Kettler, Uwe Lamnek
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
> Member of United Internet
>
> --
> You received this message because you are subscribed to the Google
> Groups "SonarQube" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sonarqube+...@googlegroups.com
> <mailto:sonarqube+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sonarqube/bf0f6536-a6fd-42c3-b68a-a2a9a0d69faa%40googlegroups.com
> <https://groups.google.com/d/msgid/sonarqube/bf0f6536-a6fd-42c3-b68a-a2a9a0d69faa%40googlegroups.com?utm_medium=email&utm_source=footer>.

Tim Webster

unread,
Nov 3, 2015, 7:48:23 AM11/3/15
to SonarQube
That's similar to my problem in that everything works except the actual update.  I get this on the screen:


>      >         <mailto:sonarqube%252Bunsubscribe@googlegroups.com

Steffen Breitbach

unread,
Nov 3, 2015, 10:17:35 AM11/3/15
to sona...@googlegroups.com
It looks as if it's working stable for me now...
> > <javascript:>>
> > >
> <mailto:sonarqube%2Bunsu...@googlegroups.com <javascript:>
> > <javascript:>
> > > <mailto:sonarqube%252Buns...@googlegroups.com
> <javascript:>
> <javascript:> <javascript:>>.
> > > To view this discussion on the web visit
> > >
> >
> https://groups.google.com/d/msgid/sonarqube/563869FE.3070309%401und1.de
> <https://groups.google.com/d/msgid/sonarqube/563869FE.3070309%401und1.de>
>
> >
> <https://groups.google.com/d/msgid/sonarqube/563869FE.3070309%401und1.de
> <https://groups.google.com/d/msgid/sonarqube/563869FE.3070309%401und1.de>>.
>
> >
> > >
> > > For more options, visit
> https://groups.google.com/d/optout <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> > >
> > >
> >
> > --
> > Steffen Breitbach
> >
> > Operations Architect
> > Continuous Integration & Delivery BS
> >
> > 1&1 Internet SE | Bahnallee | 56410 Montabaur | Germany
> > Phone: +49 2602 96-1282
> > E-Mail: steffen....@1und1.de <javascript:> | Web:
> www.1und1.de <http://www.1und1.de>
> > <http://www.1und1.de>
> >
> > Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498
> >
> > Vorstand: Christian Bigatà Joseph, Robert Hoffmann, Hans-Henning
> > Kettler, Uwe Lamnek
> > Aufsichtsratsvorsitzender: Michael Scheeren
> >
> >
> > Member of United Internet
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "SonarQube" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to sonarqube+...@googlegroups.com <javascript:>
> > <mailto:sonarqube+...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/sonarqube/bf0f6536-a6fd-42c3-b68a-a2a9a0d69faa%40googlegroups.com
> <https://groups.google.com/d/msgid/sonarqube/bf0f6536-a6fd-42c3-b68a-a2a9a0d69faa%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/sonarqube/bf0f6536-a6fd-42c3-b68a-a2a9a0d69faa%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/sonarqube/bf0f6536-a6fd-42c3-b68a-a2a9a0d69faa%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> Steffen Breitbach
>
> Operations Architect
> Continuous Integration & Delivery BS
>
> 1&1 Internet SE | Bahnallee | 56410 Montabaur | Germany
> Phone: +49 2602 96-1282
> E-Mail: steffen....@1und1.de <javascript:> | Web: www.1und1.de
> <http://www.1und1.de>
>
> Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498
>
> Vorstand: Christian Bigatà Joseph, Robert Hoffmann, Hans-Henning
> Kettler, Uwe Lamnek
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
> Member of United Internet
>
> --
> You received this message because you are subscribed to the Google
> Groups "SonarQube" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sonarqube+...@googlegroups.com
> <mailto:sonarqube+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sonarqube/25a44f5a-3d62-4f15-933a-a79d603715f0%40googlegroups.com
> <https://groups.google.com/d/msgid/sonarqube/25a44f5a-3d62-4f15-933a-a79d603715f0%40googlegroups.com?utm_medium=email&utm_source=footer>.

Daniel Le Berre

unread,
Feb 2, 2016, 4:00:24 PM2/2/16
to SonarQube
Hi guys,

I am running SonarQube 5.3 behind a proxy.

AFAIK, by default, SonarQube does not provide proxy settings for https.

There is a simple workaround:
http://stackoverflow.com/questions/31296136/update-center-behind-proxy-howto-with-https-bintray-repository

It would be nice to just define the four https proxy properties in the sonar configuration file, to make sure that it works out of the box.

It took me some times to understand why I could update some plugins and not some others.

Cheers,

Daniel
>      >      >         <mailto:sonarqube%252Bunsubscribe@googlegroups.com
Reply all
Reply to author
Forward
0 new messages