# Elasticsearch doesn't see data

**URL:** <https://discuss.elastic.co/t/elasticsearch-doesnt-see-data/328702>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [March 28, 2023, 10:21am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-see-data/328702 "2023-03-28T10:21:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![freeman999](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/freeman999/32/104827_2.png) [@freeman999](https://discuss.elastic.co/u/freeman999)\
**Post date:** [March 28, 2023, 10:21am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-see-data/328702/1 "2023-03-28T10:21:02Z")

</div>

hello everyone,  
I have running elasticsearch in docker container. Data stores like:

```auto
"Mounts": [
            {
                "Type": "bind",
                "Source": "/opt/elasticsearch/data",
                "Destination": "/usr/share/elasticsearch/data",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },

```

I stop container and start Elascticsearch like a service. I want to use the data from /opt/elasticsearch/data but Elasticsearch doesn't see any indexes.  
Please explain me what I should do to elasticsearch sees the data from /opt/elasticsearch/data

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 28, 2023, 10:46pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-see-data/328702/2 "2023-03-28T22:46:23Z")

</div>

Can you share your entire docker config please.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 29, 2023, 3:02am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-see-data/328702/3 "2023-03-29T03:02:25Z")

</div>

Did the node itself create the data in the volume you mounted?

---

<div class="post-metadata">

**Author:** ![rachel\_gomez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rachel_gomez/32/108615_2.png) [@rachel\_gomez](https://discuss.elastic.co/u/rachel_gomez)\
**Post date:** [March 29, 2023, 5:11am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-see-data/328702/4 "2023-03-29T05:11:57Z")

</div>

Troubleshooting edit-  
Fix watermark errors caused by low disk space.  
Add a missing tier to the system.  
Allow Elasticsearch to allocate the data in the system.  
Allow Elasticsearch to allocate the index.  
Indices mix index allocation filters with data tiers node roles to move through data tiers.

Regards,  
Rachel Gomez

---

<div class="post-metadata">

**Author:** ![freeman999](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/freeman999/32/104827_2.png) [@freeman999](https://discuss.elastic.co/u/freeman999)\
**Post date:** [March 29, 2023, 8:49am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-see-data/328702/5 "2023-03-29T08:49:44Z")

</div>

Thanks for your answers!  
I found a resolution from these two articles:

> **[ElasticSearch- 单节点 unassigned\_shards 故障排查 - DevOps在路上 - 博客园](https://www.cnblogs.com/FLY_DREAM/p/14269859.html)**
>
> 故障现象 在部署ELK的单机环境，当连接Kibana时候提示下面错误，即使重启整个服务也是提示Kibana server is not ready. {"message":&quo

> **[ELK: Deleting unassigned shards to restore cluster health | Fabian Lee :...](https://fabianlee.org/2018/10/02/elk-deleting-unassigned-shards-to-restore-cluster-health/)**
>
> If your ElasticSearch cluster is not healthy because of unassigned shards, there are multiple resolution paths. This datadoghq article provides an excellent walk-through of how you can analyze and resolve the situation.  The simplest case is when...

command  
`POST /_cluster/reroute`  
resolved my problem

---

<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:** [April 26, 2023, 8:50am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-see-data/328702/6 "2023-04-26T08:50:39Z")

</div>

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