java.net.UnknownHostException: localhost:9200

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if you don't have a VPN or something like this messing with your connection. Also, check Jenkins DNS configurations (try to start it with "--dns 8.8.8.8".

Solutions on the web

via usergrid-user by Dave, 4 months ago
via usergrid-user by Dave, 4 months ago
via usergrid-user by Dave, 4 months ago
via usergrid-user by Dave, 4 months ago
via usergrid-user by Harri Wahlroos, 1 year ago
via usergrid-user by Harri Wahlroos, 1 year ago
java.net.UnknownHostException: localhost:9200
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.elasticsearch.common.netty.channel.socket.oio.OioClientSocketPipelineSink.connect(OioClientSocketPipelineSink.java:109)
at org.elasticsearch.common.netty.channel.socket.oio.OioClientSocketPipelineSink.eventSunk(OioClientSocketPipelineSink.java:69)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:574)
at org.elasticsearch.common.netty.channel.Channels.connect(Channels.java:634)
at org.elasticsearch.common.netty.channel.AbstractChannel.connect(AbstractChannel.java:207)
at org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229)
at org.elasticsearch.common.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)
at org.elasticsearch.transport.netty.NettyTransport.connectToChannelsLight(NettyTransport.java:769)
at org.elasticsearch.transport.netty.NettyTransport.connectToNode(NettyTransport.java:737)
at org.elasticsearch.transport.netty.NettyTransport.connectToNodeLight(NettyTransport.java:709)
at org.elasticsearch.transport.TransportService.connectToNodeLight(TransportService.java:154)
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)

Users with the same issue

2 times, 1 month ago
Once, 1 month ago
Once, 3 months ago
30 times, 3 months ago
Once, 3 months ago
130 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.