How to fix Unassigned state for my indexes?

I have ElasticSearch configured in Docker and loading data from Magento into ES via indexer. When quering ES indexes I can see all the data is there but when I try to access it from my localhost:8080 where my connection to ES should lead to I get a 500 error ("index_not_found_exception"). I can see the Unassigned state for all my indexes in ESHead and no shards allocated.
{

* "state": "UNASSIGNED",
* "primary": false,
* "node": null,
* "relocating_node": null,
* "shard": 0,
* "index": "vue_storefront_catalog_taxrule_1616001644",
* "recovery_source": {
  * "type": "PEER"},
* "unassigned_info": {
  * "reason": "REPLICA_ADDED",
  * "at": "2021-03-17T17:20:44.846Z",
  * "delayed": false,
  * "allocation_status": "no_attempt"}

} 

When I made the query 'curl http://localhost:9200/vue_storefront_catalog_product/_search'
I get this back.
c url: (6) Could not resolve host: rl
HTTP/1.1 200 OK
content-type: application/json; charset=UTF-8
content-length: 14700

    {"took":33,"timed_out":false,"_shards":{"total":1,"successful":1,"skipped":0,"failed":0},"hits":{"total":{"value":2046,"relation":"eq"} ......

How can I fix this issue?

Welcome to our community! :smiley:

What is the output from the _cat/health?v and _cat/indices?v APIs?

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