# Elasticsearch crashed after start

**URL:** <https://discuss.elastic.co/t/elasticsearch-crashed-after-start/23384>\
**Category:** Elasticsearch\
**Created:** [April 24, 2015, 2:03am UTC](https://discuss.elastic.co/t/elasticsearch-crashed-after-start/23384 "2015-04-24T02:03:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ann\_Yablunovskaya](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ann\_Yablunovskaya](https://discuss.elastic.co/u/Ann_Yablunovskaya)\
**Post date:** [April 24, 2015, 2:03am UTC](https://discuss.elastic.co/t/elasticsearch-crashed-after-start/23384/1 "2015-04-24T02:03:39Z")

</div>

Hi!

I don't understand, what happend.  
OS CentOS 7.1  
I have ES cluster with two servers.  
It have the same configuration.

I tried to configure shield and marvel but my second ES instanse have  
suddenly crashed.

[root@server bin]# ./elasticsearch -v  
Version: 1.5.1, Build: 5e38401/2015-04-09T13:41:35Z, JVM: 1.7.0\_79

[root@server bin]# service elasticsearch-server start  
Redirecting to /bin/systemctl start elasticsearch-server.service

[root@server bin]# service elasticsearch-server status  
Redirecting to /bin/systemctl status elasticsearch-server.service  
elasticsearch-server.service - Starts and stops a single elasticsearch  
instance on this system  
Loaded: loaded (/usr/lib/systemd/system/elasticsearch-server.service;  
enabled)  
Active: active (running) since Thu 2015-04-23 21:50:09 EDT; 5s ago  
Docs: [http://www.elasticsearch.org](http://www.elasticsearch.org)  
Process: 15958 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d -p  
/var/run/elasticsearch/elasticsearch-server.pid  
-Des.default.config=$CONF\_FILE -Des.default.path.home=$ES\_HOME  
-Des.default.path.logs=$LOG\_DIR -Des.default.path.data=$DATA\_DIR  
-Des.default.path.work=$WORK\_DIR -Des.default.path.conf=$CONF\_DIR  
(code=exited, status=0/SUCCESS)  
Main PID: 15964 (java)  
CGroup: /system.slice/elasticsearch-server.service  
└─15964 java -Xms30g -Xmx30g -Djava.awt.headless=true  
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC  
-XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiating...

Apr 23 21:50:08 server.local systemd[1]: PID file  
/var/run/elasticsearch/elasticsearch-server.pid not readable (yet?) after  
start.  
Apr 23 21:50:09 server.local systemd[1]: Started Starts and stops a single  
elasticsearch instance on this system.

[root@server bin]# telnet localhost 9200  
Trying ::1...  
telnet: connect to address ::1: Connection refused  
Trying 127.0.0.1...  
telnet: connect to address 127.0.0.1: Connection refused

[root@server bin]# service elasticsearch-server status  
Redirecting to /bin/systemctl status elasticsearch-server.service  
elasticsearch-server.service - Starts and stops a single elasticsearch  
instance on this system  
Loaded: loaded (/usr/lib/systemd/system/elasticsearch-server.service;  
enabled)  
Active: failed (Result: exit-code) since Thu 2015-04-23 21:50:15 EDT;  
16s ago  
Docs: [http://www.elasticsearch.org](http://www.elasticsearch.org)  
Process: 15958 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d -p  
/var/run/elasticsearch/elasticsearch-server.pid  
-Des.default.config=$CONF\_FILE -Des.default.path.home=$ES\_HOME  
-Des.default.path.logs=$LOG\_DIR -Des.default.path.data=$DATA\_DIR  
-Des.default.path.work=$WORK\_DIR -Des.default.path.conf=$CONF\_DIR  
(code=exited, status=0/SUCCESS)  
Main PID: 15964 (code=exited, status=3)

Apr 23 21:50:08 server.local systemd[1]: PID file  
/var/run/elasticsearch/elasticsearch-server.pid not readable (yet?) after  
start.  
Apr 23 21:50:09 server.local.local systemd[1]: Started Starts and stops a  
single elasticsearch instance on this system.  
Apr 23 21:50:15 server.local.local systemd[1]:  
elasticsearch-server.service: main process exited, code=exited,  
status=3/NOTIMPLEMENTED  
Apr 23 21:50:15 server.local.local systemd[1]: Unit  
elasticsearch-server.service entered failed state.

I will be really appreciate any help!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b8029de2-a170-49d2-81fd-9f8ec963d1b9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b8029de2-a170-49d2-81fd-9f8ec963d1b9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 24, 2015, 3:38am UTC](https://discuss.elastic.co/t/elasticsearch-crashed-after-start/23384/2 "2015-04-24T03:38:40Z")

</div>

What do the logs show?

On 24 April 2015 at 12:03, Ann Yablunovskaya [lad.shada@gmail.com](mailto:lad.shada@gmail.com) wrote:

> Hi!
> 
> I don't understand, what happend.  
> OS CentOS 7.1  
> I have ES cluster with two servers.  
> It have the same configuration.
> 
> I tried to configure shield and marvel but my second ES instanse have  
> suddenly crashed.
> 
> [root@server bin]# ./elasticsearch -v  
> Version: 1.5.1, Build: 5e38401/2015-04-09T13:41:35Z, JVM: 1.7.0\_79
> 
> [root@server bin]# service elasticsearch-server start  
> Redirecting to /bin/systemctl start elasticsearch-server.service
> 
> [root@server bin]# service elasticsearch-server status  
> Redirecting to /bin/systemctl status elasticsearch-server.service  
> elasticsearch-server.service - Starts and stops a single elasticsearch  
> instance on this system  
> Loaded: loaded (/usr/lib/systemd/system/elasticsearch-server.service;  
> enabled)  
> Active: active (running) since Thu 2015-04-23 21:50:09 EDT; 5s ago  
> Docs: [http://www.elasticsearch.org](http://www.elasticsearch.org)  
> Process: 15958 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d  
> -p /var/run/elasticsearch/elasticsearch-server.pid  
> -Des.default.config=$CONF\_FILE -Des.default.path.home=$ES\_HOME  
> -Des.default.path.logs=$LOG\_DIR -Des.default.path.data=$DATA\_DIR  
> -Des.default.path.work=$WORK\_DIR -Des.default.path.conf=$CONF\_DIR  
> (code=exited, status=0/SUCCESS)  
> Main PID: 15964 (java)  
> CGroup: /system.slice/elasticsearch-server.service  
> └─15964 java -Xms30g -Xmx30g -Djava.awt.headless=true  
> -XX:+UseParNewGC -XX:+UseConcMarkSweepGC  
> -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiating...
> 
> Apr 23 21:50:08 server.local systemd[1]: PID file  
> /var/run/elasticsearch/elasticsearch-server.pid not readable (yet?) after  
> start.  
> Apr 23 21:50:09 server.local systemd[1]: Started Starts and stops a single  
> elasticsearch instance on this system.
> 
> [root@server bin]# telnet localhost 9200  
> Trying ::1...  
> telnet: connect to address ::1: Connection refused  
> Trying 127.0.0.1...  
> telnet: connect to address 127.0.0.1: Connection refused
> 
> [root@server bin]# service elasticsearch-server status  
> Redirecting to /bin/systemctl status elasticsearch-server.service  
> elasticsearch-server.service - Starts and stops a single elasticsearch  
> instance on this system  
> Loaded: loaded (/usr/lib/systemd/system/elasticsearch-server.service;  
> enabled)  
> Active: failed (Result: exit-code) since Thu 2015-04-23 21:50:15 EDT;  
> 16s ago  
> Docs: [http://www.elasticsearch.org](http://www.elasticsearch.org)  
> Process: 15958 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d  
> -p /var/run/elasticsearch/elasticsearch-server.pid  
> -Des.default.config=$CONF\_FILE -Des.default.path.home=$ES\_HOME  
> -Des.default.path.logs=$LOG\_DIR -Des.default.path.data=$DATA\_DIR  
> -Des.default.path.work=$WORK\_DIR -Des.default.path.conf=$CONF\_DIR  
> (code=exited, status=0/SUCCESS)  
> Main PID: 15964 (code=exited, status=3)
> 
> Apr 23 21:50:08 server.local systemd[1]: PID file  
> /var/run/elasticsearch/elasticsearch-server.pid not readable (yet?) after  
> start.  
> Apr 23 21:50:09 server.local.local systemd[1]: Started Starts and stops a  
> single elasticsearch instance on this system.  
> Apr 23 21:50:15 server.local.local systemd[1]:  
> elasticsearch-server.service: main process exited, code=exited,  
> status=3/NOTIMPLEMENTED  
> Apr 23 21:50:15 server.local.local systemd[1]: Unit  
> elasticsearch-server.service entered failed state.
> 
> I will be really appreciate any help!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/b8029de2-a170-49d2-81fd-9f8ec963d1b9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b8029de2-a170-49d2-81fd-9f8ec963d1b9%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/b8029de2-a170-49d2-81fd-9f8ec963d1b9%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b8029de2-a170-49d2-81fd-9f8ec963d1b9%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-kcSan1Nfr9%2B2KiRBc5G%3D1nYJTDXP95RS3Rt0SZNkO%2Bg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-kcSan1Nfr9%2B2KiRBc5G%3D1nYJTDXP95RS3Rt0SZNkO%2Bg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ann\_Yablunovskaya](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@Ann\_Yablunovskaya](https://discuss.elastic.co/u/Ann_Yablunovskaya)\
**Post date:** [April 24, 2015, 1:30pm UTC](https://discuss.elastic.co/t/elasticsearch-crashed-after-start/23384/3 "2015-04-24T13:30:21Z")

</div>

[2015-04-24 03:38:04,501][INFO][node] [server]  
version[1.5.1], pid[29957], build[5e38401/2015-04-09T13:41:35Z]  
[2015-04-24 03:38:04,502][INFO][node] [server]  
initializing ...  
[2015-04-24 03:38:04,536][INFO][plugins] [server] loaded  
[marvel, shield, license], sites [marvel]  
[2015-04-24 03:38:04,562][ERROR][bootstrap] Exception  
org.elasticsearch.ElasticsearchIllegalStateException: Failed to created  
node environment  
at  
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:162)  
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:70)  
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:213)  
at  
org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)  
Caused by: java.nio.file.AccessDeniedException:  
/opt/elasticsearch/data/server/cluster/nodes/1  
at  
sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)  
at  
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)  
at  
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)  
at  
sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:383)  
at java.nio.file.Files.createDirectory(Files.java:630)  
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:734)  
at java.nio.file.Files.createDirectories(Files.java:720)  
at  
org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:105)  
at  
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:160)  
... 4 more

I fix this problem, sorry. The reason was in deleting elasticsearch user  
and missing file privileges. So, I changed file permissions and it works

пятница, 24 апреля 2015 г., 5:03:39 UTC+3 пользователь Ann Yablunovskaya  
написал:

> Hi!
> 
> I don't understand, what happend.  
> OS CentOS 7.1  
> I have ES cluster with two servers.  
> It have the same configuration.
> 
> I tried to configure shield and marvel but my second ES instanse have  
> suddenly crashed.
> 
> [root@server bin]# ./elasticsearch -v  
> Version: 1.5.1, Build: 5e38401/2015-04-09T13:41:35Z, JVM: 1.7.0\_79
> 
> [root@server bin]# service elasticsearch-server start  
> Redirecting to /bin/systemctl start elasticsearch-server.service
> 
> [root@server bin]# service elasticsearch-server status  
> Redirecting to /bin/systemctl status elasticsearch-server.service  
> elasticsearch-server.service - Starts and stops a single elasticsearch  
> instance on this system  
> Loaded: loaded (/usr/lib/systemd/system/elasticsearch-server.service;  
> enabled)  
> Active: active (running) since Thu 2015-04-23 21:50:09 EDT; 5s ago  
> Docs: [http://www.elasticsearch.org](http://www.elasticsearch.org)  
> Process: 15958 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d  
> -p /var/run/elasticsearch/elasticsearch-server.pid  
> -Des.default.config=$CONF\_FILE -Des.default.path.home=$ES\_HOME  
> -Des.default.path.logs=$LOG\_DIR -Des.default.path.data=$DATA\_DIR  
> -Des.default.path.work=$WORK\_DIR -Des.default.path.conf=$CONF\_DIR  
> (code=exited, status=0/SUCCESS)  
> Main PID: 15964 (java)  
> CGroup: /system.slice/elasticsearch-server.service  
> └─15964 java -Xms30g -Xmx30g -Djava.awt.headless=true  
> -XX:+UseParNewGC -XX:+UseConcMarkSweepGC  
> -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiating...
> 
> Apr 23 21:50:08 server.local systemd[1]: PID file  
> /var/run/elasticsearch/elasticsearch-server.pid not readable (yet?) after  
> start.  
> Apr 23 21:50:09 server.local systemd[1]: Started Starts and stops a single  
> elasticsearch instance on this system.
> 
> [root@server bin]# telnet localhost 9200  
> Trying ::1...  
> telnet: connect to address ::1: Connection refused  
> Trying 127.0.0.1...  
> telnet: connect to address 127.0.0.1: Connection refused
> 
> [root@server bin]# service elasticsearch-server status  
> Redirecting to /bin/systemctl status elasticsearch-server.service  
> elasticsearch-server.service - Starts and stops a single elasticsearch  
> instance on this system  
> Loaded: loaded (/usr/lib/systemd/system/elasticsearch-server.service;  
> enabled)  
> Active: failed (Result: exit-code) since Thu 2015-04-23 21:50:15 EDT;  
> 16s ago  
> Docs: [http://www.elasticsearch.org](http://www.elasticsearch.org)  
> Process: 15958 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -d  
> -p /var/run/elasticsearch/elasticsearch-server.pid  
> -Des.default.config=$CONF\_FILE -Des.default.path.home=$ES\_HOME  
> -Des.default.path.logs=$LOG\_DIR -Des.default.path.data=$DATA\_DIR  
> -Des.default.path.work=$WORK\_DIR -Des.default.path.conf=$CONF\_DIR  
> (code=exited, status=0/SUCCESS)  
> Main PID: 15964 (code=exited, status=3)
> 
> Apr 23 21:50:08 server.local systemd[1]: PID file  
> /var/run/elasticsearch/elasticsearch-server.pid not readable (yet?) after  
> start.  
> Apr 23 21:50:09 server.local.local systemd[1]: Started Starts and stops a  
> single elasticsearch instance on this system.  
> Apr 23 21:50:15 server.local.local systemd[1]:  
> elasticsearch-server.service: main process exited, code=exited,  
> status=3/NOTIMPLEMENTED  
> Apr 23 21:50:15 server.local.local systemd[1]: Unit  
> elasticsearch-server.service entered failed state.
> 
> I will be really appreciate any help!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9d87dbab-75fb-4d40-bb26-131138a88ac0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9d87dbab-75fb-4d40-bb26-131138a88ac0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:17am UTC](https://discuss.elastic.co/t/elasticsearch-crashed-after-start/23384/4 "2017-07-06T00:17:48Z")

</div>


