org.elasticsearch.transport.BindTransportException: Failed to bind to [9001]

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

,

Its saying that a Java application is trying to connect on port but that port is already being used by some other process and JVM Bind to that particular port is failed.

,
via Stack Overflow by Coffee

Check which program is running on the given port.

Windows: netstat -a -b -n (Use Resource Monitor if you are admin) Linux: lsof -i:<port>

Kill the process.

Windows taskkill -pid <process-id> /f Linux kill -9 <process-id>

Solutions on the web

via Stack Overflow by nikhil nautiyal
, 11 months ago
via Stack Overflow by MattSom
, 8 months ago
via Stack Overflow by PT_C
, 1 year ago
Failed to bind to [9001]
via Stack Overflow by Sri
, 1 year ago
Failed to bind to [9001]
via oschina.net by Unknown author, 1 year ago
Failed to bind to [9300-9400]
via digitalocean.com by Unknown author, 1 year ago
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at org.elasticsearch.common.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)
at org.elasticsearch.common.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

2 times, 15 hours ago
2 times, 23 hours ago
Once, 1 day ago
11 times, 2 days ago
28 times, 6 days ago

Write tip

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