Fresh install stuck

Hi all,

I am doing a fresh install and its running this step for a logntime

bin]$ ./elasticsearch [2018-04-12T13:17:40,127][INFO ][o.e.n.Node ] [] initializing ... [2018-04-12T13:17:40,330][INFO ][o.e.e.NodeEnvironment ] [3TDwJHZ] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [48.3gb], net total_space [49.9gb], types [rootfs] [2018-04-12T13:17:40,330][INFO ][o.e.e.NodeEnvironment ] [3TDwJHZ] heap size [989.8mb], compressed ordinary object pointers [true] [2018-04-12T13:17:40,333][INFO ][o.e.n.Node ] node name [3TDwJHZ] derived from node ID [3TDwJHZRT6C8UX-8_zPDcw]; set [node.name] to override [2018-04-12T13:17:40,334][INFO ][o.e.n.Node ] version[6.2.3], pid[1641], build[c59ff00/2018-03-13T10:06:29.741383Z], OS[Linux/3.10.0-693.11.6.el7.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_151/25.151-b12] [2018-04-12T13:17:40,334][INFO ][o.e.n.Node ] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -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.TDugVP3d, -XX:+HeapDumpOnOutOfMemoryError, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.path.home=/home/Java/elasticsearch-6.2.3, -Des.path.conf=/home/Java/elasticsearch-6.2.3/config] [2018-04-12T13:17:42,090][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [aggs-matrix-stats] [2018-04-12T13:17:42,091][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [analysis-common] [2018-04-12T13:17:42,091][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [ingest-common] [2018-04-12T13:17:42,092][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [lang-expression] [2018-04-12T13:17:42,092][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [lang-mustache] [2018-04-12T13:17:42,092][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [lang-painless] [2018-04-12T13:17:42,092][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [mapper-extras] [2018-04-12T13:17:42,092][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [parent-join] [2018-04-12T13:17:42,093][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [percolator] [2018-04-12T13:17:42,093][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [rank-eval] [2018-04-12T13:17:42,093][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [reindex] [2018-04-12T13:17:42,093][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [repository-url] [2018-04-12T13:17:42,093][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [transport-netty4] [2018-04-12T13:17:42,094][INFO ][o.e.p.PluginsService ] [3TDwJHZ] loaded module [tribe] [2018-04-12T13:17:42,094][INFO ][o.e.p.PluginsService ] [3TDwJHZ] no plugins loaded [2018-04-12T13:17:46,515][INFO ][o.e.d.DiscoveryModule ] [3TDwJHZ] using discovery type [zen] [2018-04-12T13:17:47,452][INFO ][o.e.n.Node ] initialized [2018-04-12T13:17:47,453][INFO ][o.e.n.Node ] [3TDwJHZ] starting ... [2018-04-12T13:17:47,744][INFO ][o.e.t.TransportService ] [3TDwJHZ] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300} [2018-04-12T13:17:47,765][WARN ][o.e.b.BootstrapChecks ] [3TDwJHZ] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] [2018-04-12T13:17:47,765][WARN ][o.e.b.BootstrapChecks ] [3TDwJHZ] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] [2018-04-12T13:17:50,860][INFO ][o.e.c.s.MasterService ] [3TDwJHZ] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {3TDwJHZ}{3TDwJHZRT6C8UX-8_zPDcw}{0yp6_s7yQ-SQX8a4AEqQDQ}{127.0.0.1}{127.0.0.1:9300} [2018-04-12T13:17:50,870][INFO ][o.e.c.s.ClusterApplierService] [3TDwJHZ] new_master {3TDwJHZ}{3TDwJHZRT6C8UX-8_zPDcw}{0yp6_s7yQ-SQX8a4AEqQDQ}{127.0.0.1}{127.0.0.1:9300}, reason: apply cluster state (from master [master {3TDwJHZ}{3TDwJHZRT6C8UX-8_zPDcw}{0yp6_s7yQ-SQX8a4AEqQDQ}{127.0.0.1}{127.0.0.1:9300} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]]) [2018-04-12T13:17:50,906][INFO ][o.e.h.n.Netty4HttpServerTransport] [3TDwJHZ] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200} [2018-04-12T13:17:50,906][INFO ][o.e.n.Node ] [3TDwJHZ] started [2018-04-12T13:17:51,225][INFO ][o.e.g.GatewayService ] [3TDwJHZ] recovered [0] indices into cluster_state [2018-04-12T13:17:51,461][INFO ][o.e.m.j.JvmGcMonitorService] [3TDwJHZ] [gc][4] overhead, spent [285ms] collecting in the last [1s]

I have check the curl status with localhost:9200 . Please advise on this

~]# curl -XGET localhost:9200 { "name" : "3TDwJHZ", "cluster_name" : "elasticsearch", "cluster_uuid" : "L_J7yVICSByJCVttttQMThQ", "version" : { "number" : "6.2.3", "build_hash" : "c59ff00", "build_date" : "2018-03-13T10:06:29.741383Z", "build_snapshot" : false, "lucene_version" : "7.2.1", "minimum_wire_compatibility_version" : "5.6.0", "minimum_index_compatibility_version" : "5.0.0" }, "tagline" : "You Know, for Search" }

Attached the verbose status

indent [elasticsearch@ddinsyslog elasticsearch-6.2.3]$ ./bin/elasticsearch -v

[2018-04-12T13:44:33,888][INFO ][o.e.n.Node ] [] initializing ...
[2018-04-12T13:44:33,947][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/home/Java/elasticsearch-6.2.3/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-6.2.3.jar:6.2.3]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-6.2.3.jar:6.2.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.2.3.jar:6.2.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.2.3.jar:6.2.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.2.3.jar:6.2.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.2.3.jar:6.2.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.2.3.jar:6.2.3]
preformatted text by 4 spaces

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

Please update your post.

Here most likely you already have one instance running when you are launching the second command.

What do you expect? Elasticsearch is running correctly no?

Hi David,

Sorry for the post. I think currently Elasticsearch is running.
How to confirm whether the installation is completed or not
while the ./elasticsearch get stuck with below line

'''
[o.e.m.j.JvmGcMonitorService] [3TDwJHZ] [gc][45] overhead, spent [276ms] collecting in the last [1s
'''

curl -XGET 'localhost:9200/_cluster/health?pretty'
{
"cluster_name" : "elasticsearch",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 0,
"active_shards" : 0,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0

It's not stuck. It's just running in the foreground.

Hi David,

I change the installation steps from Tar to rpm file.
Everything looks fine

Regards
NAndha

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