# Fresh install stuck

**URL:** <https://discuss.elastic.co/t/fresh-install-stuck/127763>\
**Category:** Elasticsearch\
**Created:** [April 12, 2018, 8:24am UTC](https://discuss.elastic.co/t/fresh-install-stuck/127763 "2018-04-12T08:24:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandha\_88](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@nandha\_88](https://discuss.elastic.co/u/nandha_88)\
**Post date:** [April 12, 2018, 8:24am UTC](https://discuss.elastic.co/t/fresh-install-stuck/127763/1 "2018-04-12T08:24:54Z")

</div>

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" }`

---

<div class="post-metadata">

**Author:** ![nandha\_88](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@nandha\_88](https://discuss.elastic.co/u/nandha_88)\
**Post date:** [April 12, 2018, 8:40am UTC](https://discuss.elastic.co/t/fresh-install-stuck/127763/2 "2018-04-12T08:40:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 12, 2018, 9:06am UTC](https://discuss.elastic.co/t/fresh-install-stuck/127763/3 "2018-04-12T09:06:08Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) 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?

---

<div class="post-metadata">

**Author:** ![nandha\_88](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@nandha\_88](https://discuss.elastic.co/u/nandha_88)\
**Post date:** [April 12, 2018, 12:28pm UTC](https://discuss.elastic.co/t/fresh-install-stuck/127763/4 "2018-04-12T12:28:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 12, 2018, 12:48pm UTC](https://discuss.elastic.co/t/fresh-install-stuck/127763/5 "2018-04-12T12:48:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nandha\_88](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@nandha\_88](https://discuss.elastic.co/u/nandha_88)\
**Post date:** [April 12, 2018, 4:41pm UTC](https://discuss.elastic.co/t/fresh-install-stuck/127763/6 "2018-04-12T16:41:54Z")

</div>

Hi David,

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

Regards  
NAndha

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 10, 2018, 4:42pm UTC](https://discuss.elastic.co/t/fresh-install-stuck/127763/7 "2018-05-10T16:42:20Z")

</div>

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