Elasticsearch dead but pid file exists

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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
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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit 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.

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
<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 <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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/941757f7-1186-4eb4-a61c-276b12a90be3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 Like

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
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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4cc2ab13-88b2-4faa-ad0a-f04fd392664a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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
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
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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
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?utm_medium=email&utm_source=footer
.

For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAMUueYm-V4pBMRfN2yLY8eGBR1Uwe-PwEOWOLMz%2BR8jMwhnp0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

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
<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
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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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 <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?utm_medium=email&utm_source=footer
.

For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5a7aa72d-5131-4811-9a76-34f03417aa78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

/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
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
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

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.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/b606f43b-c4af-4114-9419-88ebe0397616%40goo
glegroups.com
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.

--
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.
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?utm_medium=email&utm_source=footer
.

For more options, visit 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.
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?utm_medium=email&utm_source=footer
.

For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAMUueY%3DUZV8WEpCgYWPG4RcWKskUnxC6WwQY%3DdH0UW487Si9sQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

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
<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
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> 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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b606f43b-c4a
f-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
.
For more options, visit 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.
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?utm_medium=email&utm_source=footer
.

For more options, visit 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 <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?utm_medium=email&utm_source=footer
.

For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d27e9e51-6bef-420a-9ace-bb676a39d48e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.