Curl call by external IP

Hello I tried the solution of this thread,

But getting following error on starting elasticsearch:

2020-04-21T07:35:09,598][INFO ][o.e.x.s.a.s.FileRolesStore] [RogYx45] parsed [0] roles from file [/remote/users/bhatr/elasticsearch-6.8.8/config/roles.yml]
[2020-04-21T07:35:10,443][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [RogYx45] [controller/34384] [Main.cc@109] controller (64 bit): Version 6.8.8 (Build 398321ce7838fd) Copyright (c) 2020 Elasticsearch BV
[2020-04-21T07:35:11,219][DEBUG][o.e.a.ActionModule       ] [RogYx45] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2020-04-21T07:35:11,606][INFO ][o.e.d.DiscoveryModule    ] [RogYx45] using discovery type [zen] and host providers [settings]
[2020-04-21T07:35:12,838][INFO ][o.e.n.Node               ] [RogYx45] initialized
[2020-04-21T07:35:12,838][INFO ][o.e.n.Node               ] [RogYx45] starting ...
[2020-04-21T07:35:13,331][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [RogYx45] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: BindTransportException[Failed to bind to [9300-9400]]; nested: BindException[Cannot assign requested address];
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.8.8.jar:6.8.8]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.8.8.jar:6.8.8]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.8.8.jar:6.8.8]
Caused by: org.elasticsearch.transport.BindTransportException: Failed to bind to [9300-9400]
        at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:408) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:375) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:136) ~[?:?]
        at org.elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNetty4Transport.java:127) ~[?:?]
        at org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityNetty4ServerTransport.java:46) ~[?:?]
        at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:72) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.transport.TransportService.doStart(TransportService.java:227) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:72) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.node.Node.start(Node.java:741) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:269) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-6.8.8.jar:6.8.8]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.8.8.jar:6.8.8]
        ... 6 more
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:130) ~[?:?]
        at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562) ~[?:?]
        at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358) ~[?:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[?:?]
        at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[?:?]
        at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019) ~[?:?]
        at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:258) ~[?:?]
        at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366) ~[?:?]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[?:?]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) ~[?:?]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:474) ~[?:?]
        at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909) ~[?:?]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
[2020-04-21T07:35:13,881][INFO ][o.e.n.Node               ] [RogYx45] stopping ...
[2020-04-21T07:35:13,889][INFO ][o.e.n.Node               ] [RogYx45] stopped
[2020-04-21T07:35:13,890][INFO ][o.e.n.Node               ] [RogYx45] closing ...
[2020-04-21T07:35:13,923][INFO ][o.e.n.Node               ] [RogYx45] closed
[2020-04-21T07:35:13,928][INFO ][o.e.x.m.p.NativeController] [RogYx45] Native controller process has stopped - no new native processes can be started

Can anyone know how to resolve this?

My bad :worried: Silly mistake from my side. Didn't put quotes for IP address.

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