Elasticsearch does not start

Suddenly started seeing below error message, it was working fine before, no changes have been made anywhere

 [2017-11-06T09:54:28,544][INFO ][o.e.n.Node               ] [] initializing ...
    [2017-11-06T09:54:28,623][INFO ][o.e.e.NodeEnvironment    ] [4M9Qwnd] using [1] data paths, mounts [[/ (/dev/disk1s1)]], net usable_space [401.7gb], net total_space [930.9gb], spins? [unknown], types [apfs]
    [2017-11-06T09:54:28,624][INFO ][o.e.e.NodeEnvironment    ] [4M9Qwnd] heap size [1.9gb], compressed ordinary object pointers [true]
    [2017-11-06T09:54:28,745][INFO ][o.e.n.Node               ] node name [4M9Qwnd] derived from node ID [4M9QwndQTqGQ0dDOeRtVxA]; set [node.name] to override
    [2017-11-06T09:54:28,746][INFO ][o.e.n.Node               ] version[5.4.0], pid[2429], build[780f8c4/2017-04-28T17:43:27.229Z], OS[Mac OS X/10.13.2/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_92/25.92-b14]
    [2017-11-06T09:54:29,437][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [aggs-matrix-stats]
    [2017-11-06T09:54:29,437][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [ingest-common]
    [2017-11-06T09:54:29,438][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [lang-expression]
    [2017-11-06T09:54:29,438][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [lang-groovy]
    [2017-11-06T09:54:29,438][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [lang-mustache]
    [2017-11-06T09:54:29,438][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [lang-painless]
    [2017-11-06T09:54:29,438][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [percolator]
    [2017-11-06T09:54:29,438][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [reindex]
    [2017-11-06T09:54:29,438][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [transport-netty3]
    [2017-11-06T09:54:29,438][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] loaded module [transport-netty4]
    [2017-11-06T09:54:29,439][INFO ][o.e.p.PluginsService     ] [4M9Qwnd] no plugins loaded
    [2017-11-06T09:54:30,931][INFO ][o.e.d.DiscoveryModule    ] [4M9Qwnd] using discovery type [zen]
    [2017-11-06T09:54:31,453][INFO ][o.e.n.Node               ] initialized
    [2017-11-06T09:54:31,453][INFO ][o.e.n.Node               ] [4M9Qwnd] starting ...
    [2017-11-06T09:54:31,570][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
    org.elasticsearch.bootstrap.StartupException: BindTransportException[Failed to resolve host null]; nested: SocketException[Operation not permitted];
    	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.4.0.jar:5.4.0]
    Caused by: org.elasticsearch.transport.BindTransportException: Failed to resolve host null
    	at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:711) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:172) ~[?:?]
    	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.transport.TransportService.doStart(TransportService.java:196) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.node.Node.start(Node.java:685) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:287) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:369) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[elasticsearch-5.4.0.jar:5.4.0]
    	... 6 more
    Caused by: java.net.SocketException: Operation not permitted
    	at java.net.NetworkInterface.getAll(Native Method) ~[?:1.8.0_92]
    	at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:343) ~[?:1.8.0_92]
    	at org.elasticsearch.common.network.NetworkUtils.getInterfaces(NetworkUtils.java:128) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.common.network.NetworkUtils.getLoopbackAddresses(NetworkUtils.java:156) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.common.network.NetworkService.resolveInternal(NetworkService.java:240) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.common.network.NetworkService.resolveInetAddresses(NetworkService.java:220) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.common.network.NetworkService.resolveBindHostAddresses(NetworkService.java:130) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:709) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:172) ~[?:?]
    	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.transport.TransportService.doStart(TransportService.java:196) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.node.Node.start(Node.java:685) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:287) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:369) ~[elasticsearch-5.4.0.jar:5.4.0]
    	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[elasticsearch-5.4.0.jar:5.4.0]
    	... 6 more

Strange. May be upgrade first?

I have tried to download latest version of ES and still see the same issue.

I am having the same issue after upgrading to 10.13.2 beta.

Yep upgraded to 10.13.2 Beta (17C67b) and see the same issue. Even if I downloaded new ES version 5.6.3 , I see the same issue. not sure how to resolve this?

What is "10.13.2"?

macOS v 10.13.2 (17C67b) Developer Beta*

Sounds like its an OS level issue. How did you install Elasticsearch?

Just installed from the ZIP file . it was working fine until i upgraded to new OS X beta version.

Looks like there is something wrong with your elasticsearch.yml file. Can you post that here?

i did not change the elasticsearch.yml , it is the default configuration that comes with elasticsearch

Possible OS bug then huh?

I would suggest to configure it properly with correct bind / publish addresses as default is apparently not working.

Please read this: https://www.elastic.co/guide/en/elasticsearch/reference/5.4/modules-network.html

It might aid in your problem.

Yes i believe.

Did you find any fix for this? do post if there is any solution or workaround for this.

@samdash I didn't find a solution yet. The only thing I can think of would be to revert back to the public High Sierra. Unfortunately, that comes with wiping everything and starting from scratch. Not ready to give up just yet. Will let you know if I come up with anything.

Good News Mike, Apple released another update Beta 3 , 10.13.2 Beta (17C76a) , please update and it should be working fine. good luck

@samdash When? All I see is macOS High Sierra 10.13.2 beta 2 (17C67b)...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.