# Another kind of data.path bug?

**URL:** <https://discuss.elastic.co/t/another-kind-of-data-path-bug/85371>\
**Category:** Elasticsearch\
**Created:** [May 11, 2017, 10:20am UTC](https://discuss.elastic.co/t/another-kind-of-data-path-bug/85371 "2017-05-11T10:20:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LmYjQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lmyjq/32/97480_2.png) [@LmYjQ](https://discuss.elastic.co/u/LmYjQ)\
**Post date:** [May 11, 2017, 10:20am UTC](https://discuss.elastic.co/t/another-kind-of-data-path-bug/85371/1 "2017-05-11T10:20:46Z")

</div>

kibana crashed suddenly in this afternoon

 ![](https://us1.discourse-cdn.com/elastic/original/3X/4/d/4dd6a0e9d0f3db7540a96795ed6f0ea70b389e51.png)

I found the log info:  
`Caused by: java.lang.IllegalStateException: detected index data in default.path.data [/var/lib/elasticsearch] where there should not be any; check the logs for details`

I HAVE read the following blog: [Multi data path bug in Elasticsearch 5.3.0 | Elastic Blog](https://www.elastic.co/blog/multi-data-path-bug-in-elasticsearch-5-3-0)  
But in my configuration, I have ONLY ONE path like this:

```
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
#path.data: /path/to/data
path.data: /data1/elasticsearch
#
# Path to log files:
#
#path.logs: /path/to/logs

```

And the response of following request

> curl -XGET "[http://localhost:9200/\_nodes?pretty&filter\_path=nodes.\*.settings.path.data](http://localhost:9200/_nodes?pretty&filter_path=nodes.*.settings.path.data)"  
> is  
> curl: (7) Failed to connect to localhost port 9200: Connection refused

instead of the json of paths.

How could I fix this? Thanks a lot

---

<div class="post-metadata">

**Author:** ![LmYjQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lmyjq/32/97480_2.png) [@LmYjQ](https://discuss.elastic.co/u/LmYjQ)\
**Post date:** [May 11, 2017, 10:55am UTC](https://discuss.elastic.co/t/another-kind-of-data-path-bug/85371/2 "2017-05-11T10:55:08Z")

</div>

UPDATE

I deleted the **-E default.path.data=${DATA\_DIR}** in **/usr/lib/systemd/system/elasticsearch.service**

But another error came out

`[security_exception] missing authentication token for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } }`

---

<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, 2017, 11:06am UTC](https://discuss.elastic.co/t/another-kind-of-data-path-bug/85371/3 "2017-06-08T11:06:28Z")

</div>

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