New VM install fail to run


#1

Hi, I'm trying to run Elasticsearch using Virtualbox VM (Ubuntu 16.04 server). I'm using this guide and install latest 5.6.0 edition.

http://www.elasticsearchtutorial.com/elasticsearch-in-5-minutes.html

After I run bin/elasticsearch, it seems to start fine but it is connection refused when I try to connect to http://ip:9200 . Firewall is off

x@ubuntu:~/elasticsearch-5.6.0$ bin/elasticsearch
[2017-09-12T13:29:52,680][INFO ][o.e.n.Node ] [] initializing ...
[2017-09-12T13:29:52,750][INFO ][o.e.e.NodeEnvironment ] [E0GJo84] using [1] data paths, mounts [[/ (/dev/mapper/ubuntu--vg-root)]], net usable_space [4.3gb], net total_space [6.2gb], spins? [possibly], types [ext4]
[2017-09-12T13:29:52,751][INFO ][o.e.e.NodeEnvironment ] [E0GJo84] heap size [1.9gb], compressed ordinary object pointers [true]
[2017-09-12T13:29:52,752][INFO ][o.e.n.Node ] node name [E0GJo84] derived from node ID [E0GJo848QQK4mxX787vz7A]; set [node.name] to override
[2017-09-12T13:29:52,753][INFO ][o.e.n.Node ] version[5.6.0], pid[1593], build[781a835/2017-09-07T03:09:58.087Z], OS[Linux/4.4.0-62-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_131/25.131-b11]
[2017-09-12T13:29:52,753][INFO ][o.e.n.Node ] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/home/robin/elasticsearch-5.6.0]
[2017-09-12T13:29:53,709][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [aggs-matrix-stats]
[2017-09-12T13:29:53,715][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [ingest-common]
[2017-09-12T13:29:53,716][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [lang-expression]
[2017-09-12T13:29:53,716][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [lang-groovy]
[2017-09-12T13:29:53,716][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [lang-mustache]
[2017-09-12T13:29:53,716][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [lang-painless]
[2017-09-12T13:29:53,717][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [parent-join]
[2017-09-12T13:29:53,717][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [percolator]
[2017-09-12T13:29:53,717][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [reindex]
[2017-09-12T13:29:53,717][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [transport-netty3]
[2017-09-12T13:29:53,717][INFO ][o.e.p.PluginsService ] [E0GJo84] loaded module [transport-netty4]
[2017-09-12T13:29:53,718][INFO ][o.e.p.PluginsService ] [E0GJo84] no plugins loaded
[2017-09-12T13:29:55,458][INFO ][o.e.d.DiscoveryModule ] [E0GJo84] using discovery type [zen]
[2017-09-12T13:29:56,072][INFO ][o.e.n.Node ] initialized
[2017-09-12T13:29:56,075][INFO ][o.e.n.Node ] [E0GJo84] starting ...
[2017-09-12T13:29:56,230][INFO ][o.e.t.TransportService ] [E0GJo84] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2017-09-12T13:29:59,328][INFO ][o.e.c.s.ClusterService ] [E0GJo84] new_master {E0GJo84}{E0GJo848QQK4mxX787vz7A}{JNMxFKMWSFCkFdh3LyMXqQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-09-12T13:29:59,395][INFO ][o.e.h.n.Netty4HttpServerTransport] [E0GJo84] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2017-09-12T13:29:59,395][INFO ][o.e.n.Node ] [E0GJo84] started
[2017-09-12T13:29:59,397][INFO ][o.e.g.GatewayService ] [E0GJo84] recovered [0] indices into cluster_state


(Christian Dahlqvist) #2

Elasticsearch by default binds to localhost only, which means it is not accessible from outside the VM. You will need to update the network settings in the elasticsearch.yml to make it bind to an externally accessible IP.


(Mark Walkom) #3

That tutorial is super old, I would suggest you use https://www.elastic.co/guide/en/elasticsearch/reference/5.6/getting-started.html


(system) #4

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