# elasticsearch throws ElasticsearchIllegalStateException: node is not configured to store local location

**URL:** <https://discuss.elastic.co/t/elasticsearch-throws-elasticsearchillegalstateexception-node-is-not-configured-to-store-local-location/17412>\
**Category:** Elasticsearch\
**Created:** [May 8, 2014, 4:32pm UTC](https://discuss.elastic.co/t/elasticsearch-throws-elasticsearchillegalstateexception-node-is-not-configured-to-store-local-location/17412 "2014-05-08T16:32:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nish/32/1578_2.png) [@Nish](https://discuss.elastic.co/u/Nish)\
**Post date:** [May 8, 2014, 4:32pm UTC](https://discuss.elastic.co/t/elasticsearch-throws-elasticsearchillegalstateexception-node-is-not-configured-to-store-local-location/17412/1 "2014-05-08T16:32:35Z")

</div>

I am turning on a single node instance (master+data) and trying to use  
logstash and I see this error:

log4j, [2014-05-08T16:11:05.571] ERROR:  
org.elasticsearch.gateway.local.state.meta:  
[logstash-ip-10-169-36-251-5993-4082] failed to read local state, exiting...  
org.elasticsearch.ElasticsearchIllegalStateException: node is not  
configured to store local location

This is my elasticsearch.yml:

cluster.name: elasticsearchtest  
node.name: "node1"  
node.master: true  
node.data: true  
index.number\_of\_replicas: 0

Any idea ?

--  
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/6d2df641-8afb-4d9d-831f-7bf1ab801d8f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6d2df641-8afb-4d9d-831f-7bf1ab801d8f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Nish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nish/32/1578_2.png) [@Nish](https://discuss.elastic.co/u/Nish)\
**Post date:** [May 8, 2014, 4:36pm UTC](https://discuss.elastic.co/t/elasticsearch-throws-elasticsearchillegalstateexception-node-is-not-configured-to-store-local-location/17412/2 "2014-05-08T16:36:16Z")

</div>

I get the error while running logstash  
I tried 127.0.0.1 , "localhost" , and it still throws same  
error ; the weird thing is that if I use elasticsearch in the input{} block  
; logstash is able to read from it.

On Thursday, May 8, 2014 12:32:35 PM UTC-4, Nish wrote:

> I am turning on a single node instance (master+data) and trying to use  
> logstash and I see this error:
> 
> log4j, [2014-05-08T16:11:05.571] ERROR:  
> org.elasticsearch.gateway.local.state.meta:  
> [logstash-ip-10-169-36-251-5993-4082] failed to read local state, exiting...  
> org.elasticsearch.ElasticsearchIllegalStateException: node is not  
> configured to store local location
> 
> This is my elasticsearch.yml:
> 
> cluster.name: elasticsearchtest  
> node.name: "node1"  
> node.master: true  
> node.data: true  
> index.number\_of\_replicas: 0
> 
> Any idea ?

--  
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/2f4326cb-6fa2-406f-8e4e-9c2d3264917b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2f4326cb-6fa2-406f-8e4e-9c2d3264917b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![sumit\_gupta\_sgt](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sumit\_gupta\_sgt](https://discuss.elastic.co/u/sumit_gupta_sgt)\
**Post date:** [May 8, 2014, 5:06pm UTC](https://discuss.elastic.co/t/elasticsearch-throws-elasticsearchillegalstateexception-node-is-not-configured-to-store-local-location/17412/3 "2014-05-08T17:06:45Z")

</div>

Hi,

Comment node.master=true  
I think it should work.

Thanks,  
Sumit G

---

<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:30am UTC](https://discuss.elastic.co/t/elasticsearch-throws-elasticsearchillegalstateexception-node-is-not-configured-to-store-local-location/17412/4 "2017-07-06T01:30:44Z")

</div>


