org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.65:8889 [/192.168.1.65] failed: Connection refused

Sonatype JIRA | Rich Seddon | 5 months ago
  1. 0

    Set up a docker proxy repository against dockerhub, pull an image through it. Then disable outbound network access (for testing, I did this by setting an http proxy server that doesn't exist in the HTTP settings). Then try to pull the image again. This fails with a 502 error. {quote} docker pull 192.168.1.83:18887/tomcat Using default tag: latest Error response from daemon: Received unexpected HTTP status: 502 Bad Gateway {quote} The nexus.log shows what you would expect: {noformat} 2016-06-29 12:32:40,579-0500 INFO [qtp384210737-175] admin org.sonatype.nexus.internal.httpclient.HttpClientManagerImpl - Saving configuration: HttpClientConfiguration{connection=null, proxy=ProxyConfiguration{http=ProxyServerConfiguration{enabled=true, host='192.168.1.65', port=8889, authentication=null}, https=null, nonProxyHosts=null}, authentication=null} 2016-06-29 12:32:47,533-0500 WARN [qtp384210737-73] admin org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl - Failed to fetch: v2/library/tomcat/manifests/latest org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.65:8889 [/192.168.1.65] failed: Connection refused at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) [na:na] at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) [na:na] at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:388) [na:na] at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) [na:na] at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) [na:na] at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) [na:na] at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) [na:na] at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) [httpcore:0.0.0] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) [httpcore:0.0.0] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) [httpcore:0.0.0] at org.sonatype.nexus.repository.httpclient.FilteredHttpClient$2.call(FilteredHttpClient.java:196) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.httpclient.FilteredHttpClient$2.call(FilteredHttpClient.java:1) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.httpclient.FilteredHttpClient.filter(FilteredHttpClient.java:99) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.httpclient.FilteredHttpClient.execute(FilteredHttpClient.java:192) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl.execute(DockerProxyFacetImpl.java:285) [na:na] at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.fetch(ProxyFacetSupport.java:222) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.fetch(ProxyFacetSupport.java:202) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.get(ProxyFacetSupport.java:164) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.proxy.ProxyHandler.handle(ProxyHandler.java:48) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79) [org.sonatype.nexus.repository:3.0.1.01] at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39) [org.sonatype.nexus.repository:3.0.1.01] {noformat}

    Sonatype JIRA | 5 months ago | Rich Seddon
    org.apache.http.conn.HttpHostConnectException: Connect to 192.168.1.65:8889 [/192.168.1.65] failed: Connection refused
  2. 0

    Connecting a 2nd jube to master jube, and killing client spams logs on master

    GitHub | 2 years ago | davsclaus
    org.apache.http.conn.HttpHostConnectException: Connect to localhost:8282 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1, localhost/fe80:0:0:0:0:0:0:1%1] failed: Connection refused
  3. 0

    apache httpclient 4.5.1 making only SSL conections to non-ssl sites, and failing

    Stack Overflow | 11 months ago | Praveen
    java.lang.Exception: Connect to 189.219.54.22:10000 [/189.219.54.22] failed: Connection timed out: connect ...
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    kafka package -- master.mesos port 80?

    GitHub | 3 months ago | luhkevin
    org.apache.http.conn.HttpHostConnectException: Connect to master.mesos:80 [master.mesos/192.168.1.4] failed: Connection refused
  6. 0

    [TEST-FAILURE] JettyWebFilterTest.testAttributeDistribution [Executing: node - not deferred]

    GitHub | 2 years ago | bilalyasar
    org.apache.http.conn.HttpHostConnectException: Connect to localhost:80 [localhost/127.0.0.1] failed: Connection refused

  1. Adarro 1 times, last 4 months ago
  2. kid 1 times, last 5 months ago
  3. poroszd 3 times, last 7 months ago
  4. andyglick 2 times, last 9 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.http.conn.HttpHostConnectException

    Connect to 192.168.1.65:8889 [/192.168.1.65] failed: Connection refused

    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect()
  2. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)[na:na]
    2. org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)[na:na]
    3. org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:388)[na:na]
    4. org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)[na:na]
    5. org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)[na:na]
    6. org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)[na:na]
    7. org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)[na:na]
    8. org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)[httpcore:0.0.0]
    9. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)[httpcore:0.0.0]
    10. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)[httpcore:0.0.0]
    10 frames
  3. org.sonatype.nexus
    UnitOfWorkHandler.handle
    1. org.sonatype.nexus.repository.httpclient.FilteredHttpClient$2.call(FilteredHttpClient.java:196)[org.sonatype.nexus.repository:3.0.1.01]
    2. org.sonatype.nexus.repository.httpclient.FilteredHttpClient$2.call(FilteredHttpClient.java:1)[org.sonatype.nexus.repository:3.0.1.01]
    3. org.sonatype.nexus.repository.httpclient.FilteredHttpClient.filter(FilteredHttpClient.java:99)[org.sonatype.nexus.repository:3.0.1.01]
    4. org.sonatype.nexus.repository.httpclient.FilteredHttpClient.execute(FilteredHttpClient.java:192)[org.sonatype.nexus.repository:3.0.1.01]
    5. org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl.execute(DockerProxyFacetImpl.java:285)[na:na]
    6. org.sonatype.nexus.repository.proxy.ProxyFacetSupport.fetch(ProxyFacetSupport.java:222)[org.sonatype.nexus.repository:3.0.1.01]
    7. org.sonatype.nexus.repository.proxy.ProxyFacetSupport.fetch(ProxyFacetSupport.java:202)[org.sonatype.nexus.repository:3.0.1.01]
    8. org.sonatype.nexus.repository.proxy.ProxyFacetSupport.get(ProxyFacetSupport.java:164)[org.sonatype.nexus.repository:3.0.1.01]
    9. org.sonatype.nexus.repository.proxy.ProxyHandler.handle(ProxyHandler.java:48)[org.sonatype.nexus.repository:3.0.1.01]
    10. org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)[org.sonatype.nexus.repository:3.0.1.01]
    11. org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39)[org.sonatype.nexus.repository:3.0.1.01]
    11 frames