its-jira plugin with rest api SocketTimeoutException

281 views
Skip to first unread message

Jiri Tomek

unread,
May 12, 2016, 3:55:49 AM5/12/16
to Repo and Gerrit Discussion
Hallo,

I'm trying to run Gerrit 2.12-711 with installed plugin its-base and its-jira (with rest api downloaded from
I downloaded the jar file from https://gerrit-ci.gerritforge.com/view/Plugins-stable-2.12/job/plugin-its-jira-stable-2.12/lastSuccessfulBuild/artifact/buck-out/gen/plugins/its-jira/its-jira.jar).

When I try to initialize it fails with connection timeout error:


*** Plugins
***

Installing plugins.
No plugins found to install.
Initializing plugins.


*** Jira connectivity
***

Jira URL (empty to skip)       [https://jira.yyyyy.net:8443/]: https://jira.yyyyy.net:8443
Jira username                  [xxx]:
Change xxx's password [y/N]? n
Test connectivity to https://jira.yyyyy.net:8443 [y/N]? y
Checking Jira connectivity ... Exception in thread "main" java.lang.RuntimeException: java.net.SocketTimeoutException
    at com.google.common.base.Throwables.propagate(Throwables.java:160)
    at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClient$3.apply(DefaultHttpClient.java:256)
    at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClient$3.apply(DefaultHttpClient.java:249)
    at com.atlassian.util.concurrent.Promises$Of$2.apply(Promises.java:276)
    at com.atlassian.util.concurrent.Promises$Of$2.apply(Promises.java:272)
    at com.atlassian.util.concurrent.Promises$2.onFailure(Promises.java:167)
    at com.google.common.util.concurrent.Futures$6.run(Futures.java:1764)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:456)
    at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:815)
    at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:751)
    at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:632)
    at com.google.common.util.concurrent.SettableFuture.setException(SettableFuture.java:53)
    at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$1$2.run(SettableFuturePromiseHttpPromiseAsyncClient.java:59)
    at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable$1.run(SettableFuturePromiseHttpPromiseAsyncClient.java:197)
    at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient.runInContext(SettableFuturePromiseHttpPromiseAsyncClient.java:90)
    at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.run(SettableFuturePromiseHttpPromiseAsyncClient.java:192)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketTimeoutException
    at org.apache.http.nio.pool.RouteSpecificPool.timeout(RouteSpecificPool.java:170)
    at org.apache.http.nio.pool.AbstractNIOConnPool.requestTimeout(AbstractNIOConnPool.java:403)
    at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.timeout(AbstractNIOConnPool.java:593)
    at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:180)
    at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:214)
    at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:157)
    at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:374)
    at org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager.execute(PoolingClientAsyncConnectionManager.java:108)
    at org.apache.http.impl.nio.client.AbstractHttpAsyncClient.doExecute(AbstractHttpAsyncClient.java:464)
    at org.apache.http.impl.nio.client.AbstractHttpAsyncClient.access$000(AbstractHttpAsyncClient.java:101)
    at org.apache.http.impl.nio.client.AbstractHttpAsyncClient$1.run(AbstractHttpAsyncClient.java:485)




Than I have to kill it to get a prompt.

The Jira server is behind a firewall but I have no troubles communicating with its REST API using curl. Does anyone have any idea what could be wrong?


luca.mi...@gmail.com

unread,
May 12, 2016, 3:59:58 AM5/12/16
to Jiri Tomek, Repo and Gerrit Discussion
Are you using an outbound proxy?

Sent from my iPhone
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jiri Tomek

unread,
May 12, 2016, 4:29:46 AM5/12/16
to Repo and Gerrit Discussion, jiri...@gmail.com
Yes the gerrit is behind a reverse proxy.

Luca Milanesio

unread,
May 12, 2016, 4:35:51 AM5/12/16
to Jiri Tomek, Repo and Gerrit Discussion
On 12 May 2016, at 09:29, Jiri Tomek <jiri...@gmail.com> wrote:

Yes the gerrit is behind a reverse proxy.

I meant "outbound proxy" and not reverse proxy.

What is the *exact* CURL command you are using for testing connectivity from the Gerrit machine?
Can you share the command line?

Luca.

Luca Milanesio

unread,
May 23, 2016, 8:57:41 AM5/23/16
to Jiri Tomek, Repo and Gerrit Discussion
Glad it worked :-)

Luca.

On 23 May 2016, at 13:50, Jiri Tomek <jiri...@gmail.com> wrote:

Hi Luca,

I've meanwhile discovered the curl command was using proxy. Solution to this was to ask admins to open firewall.
Thanks for pointing me to the right direction.

Best regards,
Jiri
Reply all
Reply to author
Forward
0 new messages