org.apache.http.conn.HttpHostConnectException

Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused

Samebug tips9

Check if your MongoDB is available.


host port isnt set

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web817

  • via GitHub by deepidua
    , 3 months ago
    Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused: connect**
  • Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused
  • via Google Groups by test520, 9 months ago
    Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused
  • Stack trace

    • org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.amazonaws.http.conn.ClientConnectionManagerFactory$Handler.invoke(ClientConnectionManagerFactory.java:76) at com.amazonaws.http.conn.$Proxy3.connect(Unknown Source) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at com.amazonaws.http.apache.client.impl.SdkHttpClient.execute(SdkHttpClient.java:72) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:787) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:630) at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:405) at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:367) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:318) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3787) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3729) at com.amazonaws.services.s3.AmazonS3Client.getS3AccountOwner(AmazonS3Client.java:689) at com.amazonaws.services.s3.AmazonS3Client.getS3AccountOwner(AmazonS3Client.java:681) at alluxio.underfs.s3a.S3AUnderFileSystem.createInstance(S3AUnderFileSystem.java:161) at alluxio.underfs.s3a.S3AUnderFileSystemFactory.create(S3AUnderFileSystemFactory.java:45) at alluxio.underfs.UnderFileSystemRegistry.create(UnderFileSystemRegistry.java:114) at alluxio.underfs.UnderFileSystem$Cache.get(UnderFileSystem.java:136) at alluxio.underfs.UnderFileSystem.get(UnderFileSystem.java:207) at alluxio.underfs.UnderFileSystem.get(UnderFileSystem.java:194) at alluxio.master.file.FileSystemMaster$Metrics.registerGauges(FileSystemMaster.java:2715) at alluxio.master.file.FileSystemMaster$Metrics.access$000(FileSystemMaster.java:2658) at alluxio.master.file.FileSystemMaster.<init>(FileSystemMaster.java:274) at alluxio.master.file.FileSystemMaster.<init>(FileSystemMaster.java:247) at alluxio.master.AlluxioMaster.<init>(AlluxioMaster.java:258) at alluxio.master.AlluxioMaster$Factory.create(AlluxioMaster.java:208) at alluxio.master.AlluxioMaster.main(AlluxioMaster.java:86) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ... 36 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    1998 times, 2 months ago
    3 times, 1 month ago
    Once, 5 months ago
    18 times, 2 months ago
    3 times, 3 months ago
    483 more bugmates