Elasticsearch is active, 9200: Connection refused and memory error


(lekvin) #1

Hello,

I've installed Elasticsearch on the new Ubuntu 16, Download and install the Debian package manually, and the service seems to be running fine.

[2018-07-09T17:06:03,486][WARN ][o.e.b.JNANatives         ] Unable to lock JVM Memory: error=12, reason=Cannot allocate memory
[2018-07-09T17:06:03,490][WARN ][o.e.b.JNANatives         ] This can result in part of the JVM being swapped out.
[2018-07-09T17:06:03,490][WARN ][o.e.b.JNANatives         ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2018-07-09T17:06:03,490][WARN ][o.e.b.JNANatives         ] These can be adjusted by modifying /etc/security/limits.conf, for example:
        # allow user 'elasticsearch' mlockall
        elasticsearch soft memlock unlimited
        elasticsearch hard memlock unlimited
[2018-07-09T17:06:03,490][WARN ][o.e.b.JNANatives         ] If you are logged in interactively, you will have to re-login for the new limits to take effect.
[2018-07-09T17:06:03,668][INFO ][o.e.n.Node               ] [node-1] initializing ...
[2018-07-09T17:06:03,753][INFO ][o.e.e.NodeEnvironment    ] [node-1] using [1] data paths, mounts [[/ (/dev/xvda1)]], net usable_space [20.5gb], net total_sp$
[2018-07-09T17:06:03,754][INFO ][o.e.e.NodeEnvironment    ] [node-1] heap size [1007.3mb], compressed ordinary object pointers [true]
[2018-07-09T17:06:03,754][INFO ][o.e.n.Node               ] [node-1] node name [node-1], node ID [3dhL9jVgSZq-Y3es1z-t9A]
[2018-07-09T17:06:03,755][INFO ][o.e.n.Node               ] [node-1] version[6.3.1], pid[7105], build[default/deb/eb782d0/2018-06-29T21:59:26.107521Z], OS[Li$
[2018-07-09T17:06:03,755][INFO ][o.e.n.Node               ] [node-1] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFracti$
[2018-07-09T17:06:06,023][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [aggs-matrix-stats]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [analysis-common]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-common]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-expression]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-mustache]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-painless]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [mapper-extras]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [parent-join]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [percolator]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [rank-eval]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [reindex]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repository-url]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transport-netty4]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [tribe]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-core]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-deprecation]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-graph]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-logstash]
[2018-07-09T17:06:06,024][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ml]
[2018-07-09T17:06:06,025][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-monitoring]
[2018-07-09T17:06:06,025][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-rollup]
[2018-07-09T17:06:06,025][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-security]
[2018-07-09T17:06:06,025][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-sql]
[2018-07-09T17:06:06,025][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-upgrade]
[2018-07-09T17:06:06,025][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-watcher]
[2018-07-09T17:06:06,025][INFO ][o.e.p.PluginsService     ] [node-1] no plugins loaded
[2018-07-09T17:06:09,432][INFO ][o.e.x.s.a.s.FileRolesStore] [node-1] parsed [0] roles from file [/etc/elasticsearch/roles.yml]
[2018-07-09T17:06:10,188][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/7200] [Main.cc@109] controller (64 bit): Version 6.3.1 (Build 4d0b8f0a0ef401$
[2018-07-09T17:06:10,678][DEBUG][o.e.a.ActionModule       ] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2018-07-09T17:06:10,928][INFO ][o.e.d.DiscoveryModule    ] [node-1] using discovery type [zen]
[2018-07-09T17:06:11,783][INFO ][o.e.n.Node               ] [node-1] initialized
[2018-07-09T17:06:11,783][INFO ][o.e.n.Node               ] [node-1] starting ...
[2018-07-09T17:06:12,023][ERROR][o.e.b.Bootstrap          ] [node-1] Exception
org.elasticsearch.transport.BindTransportException: Failed to bind to [9300-9400]
        at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:809) ~[elasticsearch-6.3.1.jar:6.3.1]
        at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:774) ~[elasticsearch-6.3.1.jar:6.3.1]
        at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:135) ~[?:?]
        at org.elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNetty4Transport.java:85) ~[?:?]
        at org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityNetty4ServerTransport.java:41) ~[?:?]
        at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:66) ~[elasticsearch-6.3.1.jar:6.3.1]
        at org.elasticsearch.transport.TransportService.doStart(TransportService.java:213) ~[elasticsearch-6.3.1.jar:6.3.1]
        at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:66) ~[elasticsearch-6.3.1.jar:6.3.1]
        at org.elasticsearch.node.Node.start(Node.java:652) ~[elasticsearch-6.3.1.jar:6.3.1]
        at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:265) ~[elasticsearch-6.3.1.jar:6.3.1]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:335) [elasticsearch-6.3.1.jar:6.3.1]

I've been going through the documentation, and took the required steps of setting the configuration where needed, but I'm a bit at a loss now on what to do.

Could someone give me a hand on what to check and change?


(system) #2

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