# Problem while execute npm run elasticsearch after restart

**URL:** <https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566>\
**Category:** Kibana\
**Created:** [November 21, 2017, 1:06pm UTC](https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566 "2017-11-21T13:06:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![RajeshAJ](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@RajeshAJ](https://discuss.elastic.co/u/RajeshAJ)\
**Post date:** [November 21, 2017, 1:06pm UTC](https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566/1 "2017-11-21T13:06:39Z")

</div>

atlast, I start the elasticsearch in the dev mode using npm run elasticsearch, it works fine.i stop that using ctrl+c , then i start the elasticsearch using the same command npm run elasticsearch, it shows an error,

 ![Screenshot from 2017-11-21 18:34:06](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3ad6fdf2d60399aca00bef25223edafe2021cce5.png) ![Screenshot from 2017-11-21 18:35:03](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f4bbb9519349bd791f511ec5afd32f6656e8231.png)

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [November 21, 2017, 6:32pm UTC](https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566/2 "2017-11-21T18:32:37Z")

</div>

Hm, I am not sure why the purging of the old directory is failing.

Can you include the output if you do `find esvm -maxdepth 3 -type d` from the Kibana directory?

---

<div class="post-metadata">

**Author:** ![RajeshAJ](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@RajeshAJ](https://discuss.elastic.co/u/RajeshAJ)\
**Post date:** [November 22, 2017, 4:00am UTC](https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566/3 "2017-11-22T04:00:09Z")

</div>

Thanks for your response,  
[elastic@sandbox kibana]$ find esvm -maxdepth 3 -type d  
esvm  
esvm/dev  
esvm/dev/branch-master  
esvm/dev/branch-master/logs  
esvm/dev/branch-master/lib  
esvm/dev/branch-master/modules  
esvm/dev/branch-master/bin  
esvm/dev/branch-master/config  
esvm/data\_dir  
esvm/data\_dir/nodes  
esvm/data\_dir/nodes/0

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [November 22, 2017, 11:48pm UTC](https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566/5 "2017-11-22T23:48:37Z")

</div>

Hm, have you tried running the rmdir command standalone to see if you get a better error?

What is your base OS? Are you running in a VM?

---

<div class="post-metadata">

**Author:** ![RajeshAJ](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@RajeshAJ](https://discuss.elastic.co/u/RajeshAJ)\
**Post date:** [November 23, 2017, 3:30am UTC](https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566/6 "2017-11-23T03:30:45Z")

</div>

yes, i am running in a VM,in that HDP 2.5 and OS base is Centos

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [November 27, 2017, 5:24pm UTC](https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566/7 "2017-11-27T17:24:37Z")

</div>

Sorry, I am not sure why that is happening.

You could try just running Elasticsearch from the download and running it that way.

---

<div class="post-metadata">

**Author:** ![RajeshAJ](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@RajeshAJ](https://discuss.elastic.co/u/RajeshAJ)\
**Post date:** [November 28, 2017, 5:42am UTC](https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566/8 "2017-11-28T05:42:20Z")

</div>

ok.Thank you

---

<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:** [December 26, 2017, 5:42am UTC](https://discuss.elastic.co/t/problem-while-execute-npm-run-elasticsearch-after-restart/108566/9 "2017-12-26T05:42:46Z")

</div>

Closed on December 26, 2017, 5:42am UTC

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