# Elasticsearch is not running on linux

**URL:** <https://discuss.elastic.co/t/elasticsearch-is-not-running-on-linux/180659>\
**Category:** Elasticsearch\
**Created:** [May 11, 2019, 4:03pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-running-on-linux/180659 "2019-05-11T16:03:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pathri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pathri/32/54484_2.png) [@pathri](https://discuss.elastic.co/u/pathri)\
**Post date:** [May 11, 2019, 4:03pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-running-on-linux/180659/1 "2019-05-11T16:03:24Z")

</div>

i am running elasticsearch-7.0.0 as ./elasticsearch on linux and getting below error.  
it was working file till yesterday.

[2019-05-11T15:51:43.284+0000][341528][safepoint] Application time: 0.0000275 seconds  
[2019-05-11T15:51:43.284+0000][341528][safepoint] Entering safepoint region: RevokeBias  
[2019-05-11T15:51:43.284+0000][341528][safepoint] Leaving safepoint region  
[2019-05-11T15:51:43.284+0000][341528][safepoint] Total time for which application threads were stopped: 0.0000316 seconds, Stopping threads took: 0.0000140 seconds  
[2019-05-11T15:51:43.284+0000][341528][safepoint] Application time: 0.0008288 seconds  
[2019-05-11T15:51:43.284+0000][341528][safepoint] Entering safepoint region: RevokeBias  
[2019-05-11T15:51:43.284+0000][341528][safepoint] Leaving safepoint region  
[2019-05-11T15:51:43.284+0000][341528][safepoint] Total time for which application threads were stopped: 0.0000428 seconds, Stopping threads took: 0.0000183 seconds  
[2019-05-11T15:51:43.286+0000][341528][gc,heap,exit] Heap  
[2019-05-11T15:51:43.286+0000][341528][gc,heap,exit] par new generation total 314560K, used 128643K [0x00000000c0000000, 0x00000000d5550000, 0x00000000d5550000)  
[2019-05-11T15:51:43.286+0000][341528][gc,heap,exit] eden space 279616K, 46% used [0x00000000c0000000, 0x00000000c7da0e68, 0x00000000d1110000)  
[2019-05-11T15:51:43.286+0000][341528][gc,heap,exit] from space 34944K, 0% used [0x00000000d1110000, 0x00000000d1110000, 0x00000000d3330000)  
[2019-05-11T15:51:43.286+0000][341528][gc,heap,exit] to space 34944K, 0% used [0x00000000d3330000, 0x00000000d3330000, 0x00000000d5550000)  
[2019-05-11T15:51:43.286+0000][341528][gc,heap,exit] concurrent mark-sweep generation total 699072K, used 0K [0x00000000d5550000, 0x0000000100000000, 0x0000000100000000)  
[2019-05-11T15:51:43.286+0000][341528][gc,heap,exit] Metaspace used 14137K, capacity 14719K, committed 14976K, reserved 1062912K  
[2019-05-11T15:51:43.286+0000][341528][gc,heap,exit] class space used 1663K, capacity 1875K, committed 1920K, reserved 1048576K  
[2019-05-11T15:51:43.286+0000][341528][safepoint] Application time: 0.0013228 seconds  
[2019-05-11T15:51:43.286+0000][341528][safepoint] Entering safepoint region: Halt

which thing needs to be corrected here?  
please help

---

<div class="post-metadata">

**Author:** ![pathri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pathri/32/54484_2.png) [@pathri](https://discuss.elastic.co/u/pathri)\
**Post date:** [May 11, 2019, 4:04pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-running-on-linux/180659/2 "2019-05-11T16:04:53Z")

</div>

log file is showing below error

[2019-05-11T15:51:43,230][ERROR][o.e.b.Bootstrap] [node-rest] Exception  
java.lang.IllegalStateException: Node is started with node.data=false, but has shard data: [/home/switcrlh/elk/elasticsearch-7.0.0/data/nodes/0/indices/KVytJnunStyTahqrvwvBpQ/0]. Use 'elasticsearch-node repurpose' tool to clean up  
at org.elasticsearch.env.NodeEnvironment.ensureNoShardData(NodeEnvironment.java:1060) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:323) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.node.Node.(Node.java:271) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.node.Node.(Node.java:251) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:211) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:211) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325) [elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-7.0.0.jar:7.0.0]  
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) [elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.0.0.jar:7.0.0]  
[2019-05-11T15:51:43,250][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-rest] uncaught exception in thread [main]  
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Node is started with node.data=false, but has shard data: [/home/switcrlh/elk/elasticsearch-7.0.0/data/nodes/0/indices/KVytJnunStyTahqrvwvBpQ/0]. Use 'elasticsearch-node repurpose' tool to clean up  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-7.0.0.jar:7.0.0]  
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.0.0.jar:7.0.0]  
Caused by: java.lang.IllegalStateException: Node is started with node.data=false, but has shard data: [/home/switcrlh/elk/elasticsearch-7.0.0/data/nodes/0/indices/KVytJnunStyTahqrvwvBpQ/0]. Use 'elasticsearch-node repurpose' tool to clean up  
at org.elasticsearch.env.NodeEnvironment.ensureNoShardData(NodeEnvironment.java:1060) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:323) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.node.Node.(Node.java:271) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.node.Node.(Node.java:251) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:211) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:211) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325) ~[elasticsearch-7.0.0.jar:7.0.0]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.0.0.jar:7.0.0]  
... 6 more

---

<div class="post-metadata">

**Author:** ![pathri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pathri/32/54484_2.png) [@pathri](https://discuss.elastic.co/u/pathri)\
**Post date:** [May 11, 2019, 4:09pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-running-on-linux/180659/3 "2019-05-11T16:09:25Z")

</div>

1 more log file is saying below error

{"type": "server", "timestamp": "2019-05-11T15:51:43,230+0000", "level": "ERROR", "component": "o.e.b.Bootstrap", "cluster.name": "elk-cluster", "node.name": "node-rest", "message": "Exception" ,  
"stacktrace": ["java.lang.IllegalStateException: Node is started with node.data=false, but has shard data: [/home/switcrlh/elk/elasticsearch-7.0.0/data/nodes/0/indices/KVytJnunStyTahqrvwvBpQ/0]. Use 'elasticsearch-node repurpose' tool to clean up",  
"at org.elasticsearch.env.NodeEnvironment.ensureNoShardData(NodeEnvironment.java:1060) ~[elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:323) ~[elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.node.Node.(Node.java:271) ~[elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.node.Node.(Node.java:251) ~[elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:211) ~[elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:211) ~[elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325) [elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) [elasticsearch-7.0.0.jar:7.0.0]",  
"at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.0.0.jar:7.0.0]"] }

---

<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:** [June 8, 2019, 4:09pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-running-on-linux/180659/4 "2019-06-08T16:09:32Z")

</div>

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