Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Is Bintray-Sbt working behind a proxy? #80

Closed
giena opened this issue Feb 9, 2016 · 6 comments
Closed

Is Bintray-Sbt working behind a proxy? #80

giena opened this issue Feb 9, 2016 · 6 comments

Comments

@giena
Copy link

giena commented Feb 9, 2016

Hi,

I'm trying to publish on bintray using sbt bintray. I get this error. I've configured my proxy as usual (JAVA_OPTS and SBT_OPTS). Have you got an idea?

[info] delivering ivy file to /home/giena/devt/work/scala/CCP/scaerospike/target/scala-2.11/ivy-1.2.2-SNAPSHOT.xml
java.util.concurrent.ExecutionException: java.net.ConnectException: connection timed out: api.bintray.com/75.126.118.184:443 to https://api.bintray.com/maven/worldline-messaging-bintray/maven/scaerospike/com/tapad/scaerospike/scaerospike_2.11/1.2.2-SNAPSHOT/scaerospike_2.11-1.2.2-SNAPSHOT.pom;publish=1;override=0
at com.ning.http.client.providers.netty.NettyResponseFuture.abort(NettyResponseFuture.java:342)
at com.ning.http.client.providers.netty.NettyConnectListener.operationComplete(NettyConnectListener.java:107)
at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427)
at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:418)
at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:380)
at org.jboss.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:140)
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: connection timed out: api.bintray.com/75.126.118.184:443 to https://api.bintray.com/maven/worldline-messaging-bintray/maven/scaerospike/com/tapad/scaerospike/scaerospike_2.11/1.2.2-SNAPSHOT/scaerospike_2.11-1.2.2-SNAPSHOT.pom;publish=1;override=0
at com.ning.http.client.providers.netty.NettyConnectListener.operationComplete(NettyConnectListener.java:103)
at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427)
at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:418)
at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:380)
at org.jboss.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:140)
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.netty.channel.ConnectTimeoutException: connection timed out: api.bintray.com/75.126.118.184:443
at org.jboss.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:137)
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
error java.util.concurrent.ExecutionException: java.net.ConnectException: connection timed out: api.bintray.com/75.126.118.184:443 to https://api.bintray.com/maven/worldline-messaging-bintray/maven/scaerospike/com/tapad/scaerospike/scaerospike_2.11/1.2.2-SNAPSHOT/scaerospike_2.11-1.2.2-SNAPSHOT.pom;publish=1;override=0

@giena giena changed the title Is Bintray-Sbt working behin a proxy? Is Bintray-Sbt working behind a proxy? Feb 9, 2016
@SteveSmithTech
Copy link

Hi @softprops, I might have this issue as well, is it possible bintray-sbt is discarding SBT_OPTS before it establishes a connection to Bintray?

@SteveSmithTech
Copy link

Hi @softprops, after some investigation it appears the problem is due to bintray-sbt not specifying proxy support when using dispatch. Do you agree?

@giena

@IPO-srh-sloan
Copy link

We've also got an issue with this - we are behind a proxy so this means we can't use the bintray-sbt plugin. Are there any plans to fix this @softprops ? Thanks.

@jvican
Copy link
Member

jvican commented May 6, 2017

Hello guys. No, there are no plans. But if you want to step up and implement it, it should not be difficult. I'm here to help out if you get stuck.

@bogdanromanx
Copy link
Contributor

As a workaround you can directly configure the underlying client by passing the following properties when running sbt:

-Dcom.ning.http.client.AsyncHttpClientConfig.useProxyProperties=true \ 
-Dhttp.proxyHost=<HOST> \ 
-Dhttp.proxyPort=<PORT>

See: https://stackoverflow.com/a/14456852

@2m
Copy link
Member

2m commented Mar 27, 2018

Closing as there is a workaround. If the workaround is troublesome, please open a new ticket where we can work on implementing a proper fix.

@2m 2m closed this as completed Mar 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants