# Elasticsearch dead but pid file exists

**URL:** <https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344>\
**Category:** Elasticsearch\
**Created:** [August 19, 2014, 5:23pm UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344 "2014-08-19T17:23:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![shriyansh\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shriyansh_jain/32/1035_2.png) [@shriyansh\_jain](https://discuss.elastic.co/u/shriyansh_jain)\
**Post date:** [August 19, 2014, 5:23pm UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344/1 "2014-08-19T17:23:05Z")

</div>

Hi,

While trying to check the elasticsearch status, I am getting the message

elasticsearch dead but pid file exists.

How can I restart my services.?

Thank you,  
Shriyansh

--  
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/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![error804](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@error804](https://discuss.elastic.co/u/error804)\
**Post date:** [August 19, 2014, 5:33pm UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344/2 "2014-08-19T17:33:28Z")

</div>

First grep the pid of existing elasticsearch using  
_netstat -ntlp | grep 9200_  
kill that pid and start the elasticsearch service

On Tue, Aug 19, 2014 at 11:08 PM, shriyansh jain [shriyanshajain@gmail.com](mailto:shriyanshajain@gmail.com)  
wrote:

> Hi,
> 
> While trying to check the elasticsearch status, I am getting the message
> 
> elasticsearch dead but pid file exists.
> 
> How can I restart my services.?
> 
> Thank you,  
> Shriyansh
> 
> --  
> 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/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%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/CAMUueY%3DvOUPnseLQM2y%2BU%3Dc7NCs0U4%3DAgpj7JsMkH6R-JiAFAQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMUueY%3DvOUPnseLQM2y%2BU%3Dc7NCs0U4%3DAgpj7JsMkH6R-JiAFAQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shriyansh\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shriyansh_jain/32/1035_2.png) [@shriyansh\_jain](https://discuss.elastic.co/u/shriyansh_jain)\
**Post date:** [August 19, 2014, 5:37pm UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344/3 "2014-08-19T17:37:48Z")

</div>

The command is not giving me any output. Is there any other way to find out  
the problem.?

Thanks,  
Shriyansh

On Tuesday, August 19, 2014 10:33:43 AM UTC-7, pawansharma2045 wrote:

> First grep the pid of existing elasticsearch using  
> _netstat -ntlp | grep 9200_  
> kill that pid and start the elasticsearch service
> 
> On Tue, Aug 19, 2014 at 11:08 PM, shriyansh jain \<[shriyan...@gmail.com](mailto:shriyan...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Hi,
> > 
> > While trying to check the elasticsearch status, I am getting the message
> > 
> > elasticsearch dead but pid file exists.
> > 
> > How can I restart my services.?
> > 
> > Thank you,  
> > Shriyansh
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%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/941757f7-1186-4eb4-a61c-276b12a90be3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/941757f7-1186-4eb4-a61c-276b12a90be3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shriyansh\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shriyansh_jain/32/1035_2.png) [@shriyansh\_jain](https://discuss.elastic.co/u/shriyansh_jain)\
**Post date:** [August 19, 2014, 5:39pm UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344/4 "2014-08-19T17:39:06Z")

</div>

On Tuesday, August 19, 2014 10:37:48 AM UTC-7, shriyansh jain wrote:

> The command is not giving me any output. Is there any other way to find  
> out the problem.?
> 
> Thanks,  
> Shriyansh
> 
> On Tuesday, August 19, 2014 10:33:43 AM UTC-7, pawansharma2045 wrote:
> 
> > First grep the pid of existing elasticsearch using  
> > _netstat -ntlp | grep 9200_  
> > kill that pid and start the elasticsearch service
> > 
> > when i try to execute "sudo service elasticsearch restart". it throws an  
> > exception

IOException[No space left on device]  
java.io.IOException: No space left on device  
at java.io.FileOutputStream.writeBytes(Native Method)  
at java.io.FileOutputStream.write(FileOutputStream.java:305)  
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:157)  
at  
org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)

> > On Tue, Aug 19, 2014 at 11:08 PM, shriyansh jain [shriyan...@gmail.com](mailto:shriyan...@gmail.com)  
> > wrote:
> > 
> > > Hi,
> > > 
> > > While trying to check the elasticsearch status, I am getting the message
> > > 
> > > elasticsearch dead but pid file exists.
> > > 
> > > How can I restart my services.?
> > > 
> > > Thank you,  
> > > Shriyansh
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%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/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![error804](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@error804](https://discuss.elastic.co/u/error804)\
**Post date:** [August 19, 2014, 5:43pm UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344/5 "2014-08-19T17:43:18Z")

</div>

it means that you have no space left on root directory.

Can you tell me the output of df -h

it is is 100% then you have to make some space

On Tue, Aug 19, 2014 at 11:24 PM, shriyansh jain [shriyanshajain@gmail.com](mailto:shriyanshajain@gmail.com)  
wrote:

> On Tuesday, August 19, 2014 10:37:48 AM UTC-7, shriyansh jain wrote:
> 
> > The command is not giving me any output. Is there any other way to find  
> > out the problem.?
> > 
> > Thanks,  
> > Shriyansh
> > 
> > On Tuesday, August 19, 2014 10:33:43 AM UTC-7, pawansharma2045 wrote:
> > 
> > > First grep the pid of existing elasticsearch using  
> > > _netstat -ntlp | grep 9200_  
> > > kill that pid and start the elasticsearch service
> > > 
> > > when i try to execute "sudo service elasticsearch restart". it throws an  
> > > exception
> 
> IOException[No space left on device]  
> java.io.IOException: No space left on device  
> at java.io.FileOutputStream.writeBytes(Native Method)  
> at java.io.FileOutputStream.write(FileOutputStream.java:305)  
> at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:157)  
> at  
> org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
> 
> > > On Tue, Aug 19, 2014 at 11:08 PM, shriyansh jain [shriyan...@gmail.com](mailto:shriyan...@gmail.com)  
> > > wrote:
> > > 
> > > > Hi,
> > > > 
> > > > While trying to check the elasticsearch status, I am getting the message
> > > > 
> > > > elasticsearch dead but pid file exists.
> > > > 
> > > > How can I restart my services.?
> > > > 
> > > > Thank you,  
> > > > Shriyansh
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%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/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%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/CAMUueYm-V4pBMRfN2yLY8eGBR1Uwe-PwEOWOLMz%2BR8jMwhnp0g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMUueYm-V4pBMRfN2yLY8eGBR1Uwe-PwEOWOLMz%2BR8jMwhnp0g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shriyansh\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shriyansh_jain/32/1035_2.png) [@shriyansh\_jain](https://discuss.elastic.co/u/shriyansh_jain)\
**Post date:** [August 19, 2014, 5:47pm UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344/6 "2014-08-19T17:47:40Z")

</div>

I am writing the data to /auto/foo, and after going into that directory and  
doing df -h it gives me

Filesystem Size Used Avail Use% Mounted on  
/dev/sda3 24G 17G 5.8G 75% /  
tmpfs 7.8G 0 7.8G 0% /dev/shm  
/dev/sda1 97M 82M 9.9M 90% /boot  
/dev/sda6 2.0G 135M 1.8G 7% /tmp  
/dev/sda5 6.0G 5.7G 0 100% /var  
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
16T 4.2T 11T 28% /auto/home.nas01  
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
127T 27T 101T 21% /auto/foo  
Thanks,  
Shriyansh

On Tuesday, August 19, 2014 10:43:35 AM UTC-7, pawansharma2045 wrote:

> it means that you have no space left on root directory.
> 
> Can you tell me the output of df -h
> 
> it is is 100% then you have to make some space
> 
> On Tue, Aug 19, 2014 at 11:24 PM, shriyansh jain \<[shriyan...@gmail.com](mailto:shriyan...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > On Tuesday, August 19, 2014 10:37:48 AM UTC-7, shriyansh jain wrote:
> > 
> > > The command is not giving me any output. Is there any other way to find  
> > > out the problem.?
> > > 
> > > Thanks,  
> > > Shriyansh
> > > 
> > > On Tuesday, August 19, 2014 10:33:43 AM UTC-7, pawansharma2045 wrote:
> > > 
> > > > First grep the pid of existing elasticsearch using  
> > > > \*netstat -ntlp | grep 9200 \*  
> > > > kill that pid and start the elasticsearch service
> > > > 
> > > > when i try to execute "sudo service elasticsearch restart". it throws  
> > > > an exception
> > 
> > IOException[No space left on device]  
> > java.io.IOException: No space left on device  
> > at java.io.FileOutputStream.writeBytes(Native Method)  
> > at java.io.FileOutputStream.write(FileOutputStream.java:305)  
> > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:157)  
> > at  
> > org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32)
> > 
> > > > On Tue, Aug 19, 2014 at 11:08 PM, shriyansh jain [shriyan...@gmail.com](mailto:shriyan...@gmail.com)  
> > > > wrote:
> > > > 
> > > > > Hi,
> > > > > 
> > > > > While trying to check the elasticsearch status, I am getting the  
> > > > > message
> > > > > 
> > > > > elasticsearch dead but pid file exists.
> > > > > 
> > > > > How can I restart my services.?
> > > > > 
> > > > > Thank you,  
> > > > > Shriyansh
> > > > > 
> > > > > --  
> > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%  
> > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%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/5a7aa72d-5131-4811-9a76-34f03417aa78%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5a7aa72d-5131-4811-9a76-34f03417aa78%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![error804](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@error804](https://discuss.elastic.co/u/error804)\
**Post date:** [August 19, 2014, 5:52pm UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344/7 "2014-08-19T17:52:35Z")

</div>

/var is 100% so you are getting this issue could you please create some  
space in /var and try to start elasticsearch.

your path.data in elasticsearch.yml inside /var

Could you provide the full path of path.data. from elasticsearch.yml

On Tue, Aug 19, 2014 at 11:32 PM, shriyansh jain [shriyanshajain@gmail.com](mailto:shriyanshajain@gmail.com)  
wrote:

> I am writing the data to /auto/foo, and after going into that directory  
> and doing df -h it gives me
> 
> Filesystem Size Used Avail Use% Mounted on  
> /dev/sda3 24G 17G 5.8G 75% /  
> tmpfs 7.8G 0 7.8G 0% /dev/shm  
> /dev/sda1 97M 82M 9.9M 90% /boot  
> /dev/sda6 2.0G 135M 1.8G 7% /tmp  
> /dev/sda5 6.0G 5.7G 0 100% /var  
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
> 16T 4.2T 11T 28% /auto/home.nas01  
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
> 127T 27T 101T 21% /auto/foo  
> Thanks,  
> Shriyansh
> 
> On Tuesday, August 19, 2014 10:43:35 AM UTC-7, pawansharma2045 wrote:
> 
> > it means that you have no space left on root directory.
> > 
> > Can you tell me the output of df -h
> > 
> > it is is 100% then you have to make some space
> > 
> > On Tue, Aug 19, 2014 at 11:24 PM, shriyansh jain [shriyan...@gmail.com](mailto:shriyan...@gmail.com)  
> > wrote:
> > 
> > > On Tuesday, August 19, 2014 10:37:48 AM UTC-7, shriyansh jain wrote:
> > > 
> > > > The command is not giving me any output. Is there any other way to find  
> > > > out the problem.?
> > > > 
> > > > Thanks,  
> > > > Shriyansh
> > > > 
> > > > On Tuesday, August 19, 2014 10:33:43 AM UTC-7, pawansharma2045 wrote:
> > > > 
> > > > > First grep the pid of existing elasticsearch using  
> > > > > \*netstat -ntlp | grep 9200 \*  
> > > > > kill that pid and start the elasticsearch service
> > > > > 
> > > > > when i try to execute "sudo service elasticsearch restart". it throws  
> > > > > an exception
> > > 
> > > IOException[No space left on device]  
> > > java.io.IOException: No space left on device  
> > > at java.io.FileOutputStream.writeBytes(Native Method)  
> > > at java.io.FileOutputStream.write(FileOutputStream.java:305)  
> > > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:  
> > > 157)  
> > > at org.elasticsearch.bootstrap.Elasticsearch.main(  
> > > Elasticsearch.java:32)
> > > 
> > > > > On Tue, Aug 19, 2014 at 11:08 PM, shriyansh jain \<[shriyan...@gmail.com](mailto:shriyan...@gmail.com)
> > > > > 
> > > > > > wrote:
> > > > > 
> > > > > > Hi,
> > > > > > 
> > > > > > While trying to check the elasticsearch status, I am getting the  
> > > > > > message
> > > > > > 
> > > > > > elasticsearch dead but pid file exists.
> > > > > > 
> > > > > > How can I restart my services.?
> > > > > > 
> > > > > > Thank you,  
> > > > > > Shriyansh
> > > > > > 
> > > > > > --  
> > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40goo  
> > > > > > [glegroups.com](http://glegroups.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%  
> > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%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/5a7aa72d-5131-4811-9a76-34f03417aa78%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5a7aa72d-5131-4811-9a76-34f03417aa78%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/5a7aa72d-5131-4811-9a76-34f03417aa78%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5a7aa72d-5131-4811-9a76-34f03417aa78%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/CAMUueY%3DUZV8WEpCgYWPG4RcWKskUnxC6WwQY%3DdH0UW487Si9sQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAMUueY%3DUZV8WEpCgYWPG4RcWKskUnxC6WwQY%3DdH0UW487Si9sQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![shriyansh\_jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shriyansh_jain/32/1035_2.png) [@shriyansh\_jain](https://discuss.elastic.co/u/shriyansh_jain)\
**Post date:** [August 19, 2014, 6:31pm UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344/8 "2014-08-19T18:31:27Z")

</div>

Yes, it was because of the logs being written to /var/log/elasticsearch. I  
created space in /var/log and the elasticsearch instance was able to  
restart successfully after that.  
Thank you very much for you advice. I really appreciate it.

Thank you,  
Shriyansh

On Tuesday, August 19, 2014 10:52:45 AM UTC-7, pawansharma2045 wrote:

> /var is 100% so you are getting this issue could you please create some  
> space in /var and try to start elasticsearch.
> 
> your path.data in elasticsearch.yml inside /var
> 
> Could you provide the full path of path.data. from elasticsearch.yml
> 
> On Tue, Aug 19, 2014 at 11:32 PM, shriyansh jain \<[shriyan...@gmail.com](mailto:shriyan...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > I am writing the data to /auto/foo, and after going into that directory  
> > and doing df -h it gives me
> > 
> > Filesystem Size Used Avail Use% Mounted on  
> > /dev/sda3 24G 17G 5.8G 75% /  
> > tmpfs 7.8G 0 7.8G 0% /dev/shm  
> > /dev/sda1 97M 82M 9.9M 90% /boot  
> > /dev/sda6 2.0G 135M 1.8G 7% /tmp  
> > /dev/sda5 6.0G 5.7G 0 100% /var  
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
> > 16T 4.2T 11T 28% /auto/home.nas01  
> > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
> > 127T 27T 101T 21% /auto/foo  
> > Thanks,  
> > Shriyansh
> > 
> > On Tuesday, August 19, 2014 10:43:35 AM UTC-7, pawansharma2045 wrote:
> > 
> > > it means that you have no space left on root directory.
> > > 
> > > Can you tell me the output of df -h
> > > 
> > > it is is 100% then you have to make some space
> > > 
> > > On Tue, Aug 19, 2014 at 11:24 PM, shriyansh jain [shriyan...@gmail.com](mailto:shriyan...@gmail.com)  
> > > wrote:
> > > 
> > > > On Tuesday, August 19, 2014 10:37:48 AM UTC-7, shriyansh jain wrote:
> > > > 
> > > > > The command is not giving me any output. Is there any other way to  
> > > > > find out the problem.?
> > > > > 
> > > > > Thanks,  
> > > > > Shriyansh
> > > > > 
> > > > > On Tuesday, August 19, 2014 10:33:43 AM UTC-7, pawansharma2045 wrote:
> > > > > 
> > > > > > First grep the pid of existing elasticsearch using  
> > > > > > \*netstat -ntlp | grep 9200 \*  
> > > > > > kill that pid and start the elasticsearch service
> > > > > > 
> > > > > > when i try to execute "sudo service elasticsearch restart". it throws  
> > > > > > an exception
> > > > 
> > > > IOException[No space left on device]  
> > > > java.io.IOException: No space left on device  
> > > > at java.io.FileOutputStream.writeBytes(Native Method)  
> > > > at java.io.FileOutputStream.write(FileOutputStream.java:305)  
> > > > at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:  
> > > > 157)  
> > > > at org.elasticsearch.bootstrap.Elasticsearch.main(  
> > > > Elasticsearch.java:32)
> > > > 
> > > > > > On Tue, Aug 19, 2014 at 11:08 PM, shriyansh jain \<  
> > > > > > [shriyan...@gmail.com](mailto:shriyan...@gmail.com)\> wrote:
> > > > > > 
> > > > > > > Hi,
> > > > > > > 
> > > > > > > While trying to check the elasticsearch status, I am getting the  
> > > > > > > message
> > > > > > > 
> > > > > > > elasticsearch dead but pid file exists.
> > > > > > > 
> > > > > > > How can I restart my services.?
> > > > > > > 
> > > > > > > Thank you,  
> > > > > > > Shriyansh
> > > > > > > 
> > > > > > > --  
> > > > > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4a](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4a)  
> > > > > > > f-4114-9419-88ebe0397616%[40googlegroups.com](http://40googlegroups.com)  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%  
> > > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/5a7aa72d-5131-4811-9a76-34f03417aa78%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5a7aa72d-5131-4811-9a76-34f03417aa78%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/5a7aa72d-5131-4811-9a76-34f03417aa78%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5a7aa72d-5131-4811-9a76-34f03417aa78%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/d27e9e51-6bef-420a-9ace-bb676a39d48e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d27e9e51-6bef-420a-9ace-bb676a39d48e%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, 1:07am UTC](https://discuss.elastic.co/t/elasticsearch-dead-but-pid-file-exists/19344/9 "2017-07-06T01:07:38Z")

</div>


