Elasticsearch-5.1.1 Fails on Adding Network.Host

Why is my elasticsearch-5.1.1 node failing when I add my vm public ip as network.host value? @pickypg @uri1803

Am running Ubuntu server btw...

Look at the logs. It's pretty clear what the error is.
Look at the doc for bootstrap checks if needed.

Its always in the logs @dadoonet, always in the logs... Found the error line "discovery.zen.ping.multicast.enabled". Thanks for the reminder.

However, the network.host line is also giving a "java.net.BindException: Cannot assign requested address". I understand it has someting to do with the server being in production mode. Is this correct? Whats the work around?

What are the exact logs?

Here are the logs:

[2016-12-15T16:02:27,241][INFO ][o.e.n.Node ] [servvm1] initializing ...
[2016-12-15T16:02:27,375][INFO ][o.e.e.NodeEnvironment ] [servvm1] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [26gb], net total_space [28.3gb], spins? [possibly], types [ext4]
[2016-12-15T16:02:27,376][INFO ][o.e.e.NodeEnvironment ] [servvm1] heap size [1.9gb], compressed ordinary object pointers [true]
[2016-12-15T16:02:27,377][INFO ][o.e.n.Node ] [servvm1] node name [servvm1], node ID [kXsx1Sw-SvuYoOC3WXOXhA]
[2016-12-15T16:02:27,379][INFO ][o.e.n.Node ] [servvm1] version[5.1.1], pid[11515], build[5395e21/2016-12-06T12:36:15.409Z], OS[Linux/4.4.0-47-generic/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_111/25.111-b14]
[2016-12-15T16:02:28,895][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [aggs-matrix-stats]
[2016-12-15T16:02:28,895][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [ingest-common]
[2016-12-15T16:02:28,895][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [lang-expression]
[2016-12-15T16:02:28,896][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [lang-groovy]
[2016-12-15T16:02:28,896][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [lang-mustache]
[2016-12-15T16:02:28,896][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [lang-painless]
[2016-12-15T16:02:28,896][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [percolator]
[2016-12-15T16:02:28,897][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [reindex]
[2016-12-15T16:02:28,897][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [transport-netty3]
[2016-12-15T16:02:28,897][INFO ][o.e.p.PluginsService ] [servvm1] loaded module [transport-netty4]
[2016-12-15T16:02:28,897][INFO ][o.e.p.PluginsService ] [servvm1] no plugins loaded
[2016-12-15T16:02:32,671][INFO ][o.e.n.Node ] [servvm1] initialized
[2016-12-15T16:02:32,671][INFO ][o.e.n.Node ] [servvm1] starting ...
[2016-12-15T16:02:33,072][ERROR][o.e.b.Bootstrap ] [servvm1] Exception
org.elasticsearch.transport.BindTransportException: Failed to bind to [9300-9400]
at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:636) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:601) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:182) ~[?:?]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.transport.TransportService.doStart(TransportService.java:188) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:69) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.node.Node.start(Node.java:577) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:234) ~[elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:308) [elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) [elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96) [elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.cli.Command.main(Command.java:62) [elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) [elasticsearch-5.1.1.jar:5.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) [elasticsearch-5.1.1.jar:5.1.1]
Caused by: java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind0(Native Method) ~[?:?]
at sun.nio.ch.Net.bind(Net.java:433) ~[?:?]
at sun.nio.ch.Net.bind(Net.java:425) ~[?:?]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[?:?]
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:127) ~[?:?]
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:554) ~[?:?]
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1258) ~[?:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:512) ~[?:?]
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:497) ~[?:?]
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:980) ~[?:?]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:250) ~[?:?]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:363) ~[?:?]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:418) ~[?:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:454) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873) ~[?:?]
at java.lang.Thread.run(Thread.java:745) ~[?:1.8.0_111]

May be you don't have enough rights on this machine to use port 9300 or port 9300 is already used by something else (which I doubt as I think the message would have been different).

Actually I do because its a new VM i have provisioned. And I am the sole administrator/with root priviledges. Thats what is disturbing. Could i have missed any step? The only change i made to the Elastisearch.yml is the rename Cluster Name, Set Data Node to true and Master Node to true and finally setting the Network.host.

weird... May be turn on debug so we have more traces?

Will do thanks!!

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