Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Ubuntu is unable to execute Elasticsearch

Vote:
 

I am therefore fresh to ELasticSearch. The following problem appears when I try to run an elasticsearch-6.6.0 instance that has already been configured.

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2023-04-12T04:56:17,211][INFO ][o.e.e.NodeEnvironment    ] [dLcq3op] using [1] data paths, mounts [[/ml_data (192.168.0.104:/)]], net usable_space [8191.9pb], net total_space [8191.9pb], types [nfs4]
[2023-04-12T04:56:17,215][INFO ][o.e.e.NodeEnvironment    ] [dLcq3op] heap size [989.8mb], compressed ordinary object pointers [true]
[2023-04-12T04:56:19,638][INFO ][o.e.n.Node               ] [dLcq3op] node name derived from node ID [dLcq3opCST62jAnYI9xiTA]; set [node.name] to override
[2023-04-12T04:56:19,638][INFO ][o.e.n.Node               ] [dLcq3op] version[6.6.0], pid[23444], build[default/tar/a9861f4/2019-01-24T11:27:09.439740Z], OS[Linux/5.4.0-1081-aws/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/11.0.2/11.0.2+9-LTS]
[2023-04-12T04:56:19,639][INFO ][o.e.n.Node               ] [dLcq3op] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-15553122942009992513, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -XX:UseAVX=2, -Des.path.home=/ml_data/at3/cache/ES/elasticsearch-6.6.0, -Des.path.conf=/ml_data/at3/cache/ES/elasticsearch-6.6.0/config, -Des.distribution.flavor=default, -Des.distribution.type=tar]
[2023-04-12T04:56:21,822][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [aggs-matrix-stats]
[2023-04-12T04:56:21,822][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [analysis-common]
[2023-04-12T04:56:21,822][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [ingest-common]
[2023-04-12T04:56:21,823][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [lang-expression]
[2023-04-12T04:56:21,823][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [lang-mustache]
[2023-04-12T04:56:21,823][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [lang-painless]
[2023-04-12T04:56:21,823][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [mapper-extras]
[2023-04-12T04:56:21,823][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [parent-join]
[2023-04-12T04:56:21,823][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [percolator]
[2023-04-12T04:56:21,824][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [rank-eval]
[2023-04-12T04:56:21,824][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [reindex]
[2023-04-12T04:56:21,824][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [repository-url]
[2023-04-12T04:56:21,824][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [transport-netty4]
[2023-04-12T04:56:21,824][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [tribe]
[2023-04-12T04:56:21,824][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-ccr]
[2023-04-12T04:56:21,825][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-core]
[2023-04-12T04:56:21,825][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-deprecation]
[2023-04-12T04:56:21,825][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-graph]
[2023-04-12T04:56:21,825][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-ilm]
[2023-04-12T04:56:21,825][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-logstash]
[2023-04-12T04:56:21,825][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-ml]
[2023-04-12T04:56:21,826][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-monitoring]
[2023-04-12T04:56:21,826][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-rollup]
[2023-04-12T04:56:21,826][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-security]
[2023-04-12T04:56:21,826][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-sql]
[2023-04-12T04:56:21,826][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-upgrade]
[2023-04-12T04:56:21,826][INFO ][o.e.p.PluginsService     ] [dLcq3op] loaded module [x-pack-watcher]
[2023-04-12T04:56:21,827][INFO ][o.e.p.PluginsService     ] [dLcq3op] no plugins loaded
[2023-04-12T04:56:25,276][INFO ][o.e.x.s.a.s.FileRolesStore] [dLcq3op] parsed [0] roles from file [/ml_data/at3/cache/ES/elasticsearch-6.6.0/config/roles.yml]
[2023-04-12T04:56:25,895][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [dLcq3op] [controller/23564] [Main.cc@109] controller (64 bit): Version 6.6.0 (Build bbb4919f4d17a5) Copyright (c) 2019 Elasticsearch BV
[2023-04-12T04:56:26,306][DEBUG][o.e.a.ActionModule       ] [dLcq3op] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2023-04-12T04:56:26,711][INFO ][o.e.d.DiscoveryModule    ] [dLcq3op] using discovery type [zen] and host providers [settings]
[2023-04-12T04:56:27,481][INFO ][o.e.n.Node               ] [dLcq3op] initialized
[2023-04-12T04:56:27,482][INFO ][o.e.n.Node               ] [dLcq3op] starting ...
[2023-04-12T04:56:27,712][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [dLcq3op] 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.6.0.jar:6.6.0]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.6.0.jar:6.6.0]
        at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.6.0.jar:6.6.0]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.6.0.jar:6.6.0]
Caused by: org.elasticsearch.transport.BindTransportException: Failed to bind to [9300-9400]
        at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:424) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:389) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:136) ~[?:?]
        at org.elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNetty4Transport.java:98) ~[?:?]
        at org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityNetty4ServerTransport.java:43) ~[?:?]
        at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:65) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.transport.TransportService.doStart(TransportService.java:229) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:65) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.node.Node.start(Node.java:716) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:269) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-6.6.0.jar:6.6.0]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-6.6.0.jar:6.6.0]
        ... 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:461) ~[?:?]
        at sun.nio.ch.Net.bind(Net.java:453) ~[?:?]
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227) ~[?:?]
        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:834) [?:?]
[2023-04-12T04:56:28,516][INFO ][o.e.n.Node               ] [dLcq3op] stopping ...
[2023-04-12T04:56:28,519][INFO ][o.e.n.Node               ] [dLcq3op] stopped
[2023-04-12T04:56:28,519][INFO ][o.e.n.Node               ] [dLcq3op] closing ...
[2023-04-12T04:56:28,534][INFO ][o.e.n.Node               ] [dLcq3op] closed
[2023-04-12T04:56:28,537][INFO ][o.e.x.m.p.NativeController] [dLcq3op] Native controller process has stopped - no new native processes can be started

I believe that the incorrect IP Address in the elasticsearch.yml file is the cause of this. Additionally, I'm using Ubuntu 18.04.6 LTS and the Bitvise SSH Client to do this.

#299977
Apr 12, 2023 9:17
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.