Upsource license behind proxy

Hi,

I'm using the last Upsource build 2.0.3554 inside server that cannot access to internet without using http proxy (no exports like http_proxy are set by default).

After installation I have "Invalid license" even using

Name: Upsource 2.0 Free 10 Users Pack
Key: bec61c738621fb9bee6dfc650e0b23012d935564a6169ec44d45eb40fb07a52325f441c89c57d9
23ca83fa1b1a4d766655f90a365c1de49f1ed20292b2f0c72ed29abd20c8aa5f160eb5eba32f5d
5b46523eea35674f07042a10cc6112e9fecc020c50890b51f6d374e36fb60cc37427daf09b238c
09a88e09de8b9cfbefc254


And when I cheked the log:

upsource-frontend: [Upsource Frontend Error] [2015-07-13 09:27:27,666] ERROR enseSettingsUpdate-1                 ensing.impl.LicenseManagerImpl - Error in license settings sync
upsource-frontend: [Upsource Frontend Error] javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Read timed out
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:244)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:245)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:687)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:683)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:411)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:307)
upsource-frontend: [Upsource Frontend Error]  at jetbrains.jetpass.client.accounts.SettingClient.getSettingPage(SettingClient.java:39)
upsource-frontend: [Upsource Frontend Error]  at com.jetbrains.upsource.server.licensing.impl.LicenseManagerImpl.refreshSettings(LicenseManagerImpl.java:84)
upsource-frontend: [Upsource Frontend Error]  at com.jetbrains.upsource.server.licensing.impl.LicenseManagerImpl.lambda$queueRefresh$5(LicenseManagerImpl.java:178)
upsource-frontend: [Upsource Frontend Error]  at com.jetbrains.upsource.server.licensing.impl.LicenseManagerImpl$$Lambda$107/981280363.run(Unknown Source)
upsource-frontend: [Upsource Frontend Error]  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
upsource-frontend: [Upsource Frontend Error]  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
upsource-frontend: [Upsource Frontend Error]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
upsource-frontend: [Upsource Frontend Error]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
upsource-frontend: [Upsource Frontend Error]  at java.lang.Thread.run(Thread.java:745)
upsource-frontend: [Upsource Frontend Error] Caused by: java.net.SocketTimeoutException: Read timed out
upsource-frontend: [Upsource Frontend Error]  at java.net.SocketInputStream.socketRead0(Native Method)
upsource-frontend: [Upsource Frontend Error]  at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
upsource-frontend: [Upsource Frontend Error]  at java.net.SocketInputStream.read(SocketInputStream.java:170)
upsource-frontend: [Upsource Frontend Error]  at java.net.SocketInputStream.read(SocketInputStream.java:141)
upsource-frontend: [Upsource Frontend Error]  at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
upsource-frontend: [Upsource Frontend Error]  at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
upsource-frontend: [Upsource Frontend Error]  at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
upsource-frontend: [Upsource Frontend Error]  at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
upsource-frontend: [Upsource Frontend Error]  at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
upsource-frontend: [Upsource Frontend Error]  at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1535)
upsource-frontend: [Upsource Frontend Error]  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
upsource-frontend: [Upsource Frontend Error]  at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
upsource-frontend: [Upsource Frontend Error]  at org.glassfish.jersey.client.HttpUrlConnector._apply(HttpUrlConnector.java:335)

I think the fact that server cannot access to internet is the main problem. There is any configuration to configure http proxy?

Thank,
Thibaud

4 comments
Comment actions Permalink

Hi Thibaud,

Lack of Internet connection shouldn't be a case of such issue. Could you please attach the full contents of logs folder?

Thansk in advance.

0
Comment actions Permalink

I used a docker container (not created by myself https://registry.hub.docker.com/u/esycat/upsource/) to run Upsource, I tried another container with upsource 2 (https://registry.hub.docker.com/u/oreomitch/docker-upsource) its works :)

So I think issue is more container than upsource. I can upload log file if you want, ask me again.

0
Comment actions Permalink

Well, we are going to provide docker container, which will be officially supported by JetBrains, so it should resolve such issues.

Please upvote the corresponding reuqest https://youtrack.jetbrains.com/issue/UP-4421

Thanks!

0
Comment actions Permalink

Good news! Be sure I will upvote issue :) I really dockerize everything, no way to go back to old fashion way to install service

0

Please sign in to leave a comment.