org.elasticsearch.transport.BindTransportException

tip

It might be that there's another process connecting to the same port you're trying to use, try to kill it or change the connection port.


rafaelrafael
tip

Try changing the port in core-site.xml from 9000 to 9001 as it seems port 9000 doesn't work.

tip

Change the connection port and ip adress. If you're trying to connect to your server from your own computer, check if you haven't already connected to the server in another instance.


rafaelrafael

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

  • ESonar server does not start up
    via Stack Overflow by Sri
    ,
  • Sonar started but builds are failing
    via Stack Overflow by PT_C
    ,
  • 开源中国(OSChina.NET)
    via by Unknown author,
  • SonarQube - Elasticsearch could not bind
    via Stack Overflow by MattSom
    ,
  • Tomcat won't start on localhost
    via Stack Overflow by dude
    ,
  • Why Smartfoxserver 2X is not running?
    via Stack Overflow by K. Ayaz
    ,
    • org.elasticsearch.transport.BindTransportException: Failed to bind to [9001] at org.elasticsearch.transport.netty.NettyTransport.bindServerBootstrap(NettyTransport.java:422)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.transport.netty.NettyTransport.doStart(NettyTransport.java:283)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:85)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.transport.TransportService.doStart(TransportService.java:153)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:85)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.node.internal.InternalNode.start(InternalNode.java:257)[elasticsearch-1.7.2.jar:na] at org.sonar.search.SearchServer.start(SearchServer.java:45)[sonar-search-5.4.jar:na] at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)[sonar-process-5.4.jar:na] at org.sonar.search.SearchServer.main(SearchServer.java:79)[sonar-search-5.4.jar:na] Caused by: org.elasticsearch.common.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:9001 at org.elasticsearch.common.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.transport.netty.NettyTransport$1.onPortNumber(NettyTransport.java:413)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.common.transport.PortsRange.iterate(PortsRange.java:58)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.transport.netty.NettyTransport.bindServerBootstrap(NettyTransport.java:409)[elasticsearch-1.7.2.jar:na] ... 8 more Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method)[na:1.8.0_112] at sun.nio.ch.Net.bind(Unknown Source)[na:1.8.0_112] at sun.nio.ch.Net.bind(Unknown Source)[na:1.8.0_112] at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)[na:1.8.0_112] at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)[na:1.8.0_112] at org.elasticsearch.common.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.common.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)[elasticsearch-1.7.2.jar:na] at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)[elasticsearch-1.7.2.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[na:1.8.0_112] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[na:1.8.0_112] at java.lang.Thread.run(Unknown Source)[na:1.8.0_112]

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    136 more bugmates