# Search\_phase\_execution\_exception: \[no\_shard\_available\_action\_exception\] Reason: null; \[no\_shard\_available\_action\_exception\] Reason: null (500)

**URL:** <https://discuss.elastic.co/t/search-phase-execution-exception-no-shard-available-action-exception-reason-null-no-shard-available-action-exception-reason-null-500/338003>\
**Category:** Elasticsearch\
**Created:** [July 10, 2023, 8:56am UTC](https://discuss.elastic.co/t/search-phase-execution-exception-no-shard-available-action-exception-reason-null-no-shard-available-action-exception-reason-null-500/338003 "2023-07-10T08:56:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [July 10, 2023, 8:56am UTC](https://discuss.elastic.co/t/search-phase-execution-exception-no-shard-available-action-exception-reason-null-no-shard-available-action-exception-reason-null-500/338003/1 "2023-07-10T08:56:31Z")

</div>

Hi  
after i've receive disk full i try to remove some indices from this path:  
`/opt/elasticsearch/var/lib/elasticsearch/indices/`

after that APM dashboard not load and give below errors. seems some indices that related to APM removed.  
is there any way to fix it?

```auto
Field span.name was not found
Edit in Lens editor to see more errors

```

```auto

{
  "took": 3,
  "timed_out": false,
  "_shards": {
    "total": 7,
    "successful": 5,
    "skipped": 4,
    "failed": 2,
    "failures": [
      {
        "shard": 0,
        "index": ".ds-traces-apm-default-2023.06.26-000006",
        "node": null,
        "reason": {
          "type": "no_shard_available_action_exception",
          "reason": null,
          "index_uuid": "7J_sRZeiT-W_m_171pp5vA",
          "shard": "0",
          "index": ".ds-traces-apm-default-2023.06.26-000006"
        }
      },
      {
        "shard": 0,
        "index": ".ds-traces-apm-default-2023.07.01-000007",
        "node": null,
        "reason": {
          "type": "no_shard_available_action_exception",
          "reason": null,
          "index_uuid": "8-O5Rfi4SSeH4wTSy_HgZw",
          "shard": "0",
          "index": ".ds-traces-apm-default-2023.07.01-000007"
        }
      }
    ]
  },
  "hits": {
    "total": 0,
    "max_score": null,
    "hits": []
  }
}

```

```auto
Error
search_phase_execution_exception: [no_shard_available_action_exception] Reason: null; [no_shard_available_action_exception] Reason: null (500)
URL
http://192.168.1.1:5601/internal/apm/services/use/throughput?environment=ENVIRONMENT_ALL&kuery=service.target.type%20%3A%20%22&start=2023-06-09T20%3A30%3A00.000Z&end=2023-07-10T08%3A46%3A18.746Z&transactionType=messaging&offset=2636178740ms&_inspect=true

```

any idea?  
Thanks

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [July 10, 2023, 2:50pm UTC](https://discuss.elastic.co/t/search-phase-execution-exception-no-shard-available-action-exception-reason-null-no-shard-available-action-exception-reason-null-500/338003/2 "2023-07-10T14:50:01Z")

</div>

> [@Indeed2000](#):
>
> i try to remove some indices from this path:

Unfortunately this may have unrecoverably broken your cluster. See [these docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html#data-path) for more information:

> **WARNING** : Don’t modify anything within the data directory or run processes that might interfere with its contents. If something other than Elasticsearch modifies the contents of the data directory, then Elasticsearch may fail, reporting corruption or other data inconsistencies, or may appear to work correctly having silently lost some of your data.

---

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [July 10, 2023, 5:28pm UTC](https://discuss.elastic.co/t/search-phase-execution-exception-no-shard-available-action-exception-reason-null-no-shard-available-action-exception-reason-null-500/338003/3 "2023-07-10T17:28:56Z")

</div>

After several workaround remove data stream indice (trace-apm-default), then restart apm-server.  
Elastic create it with good health condition.  
Issue resolved.

---

<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:** [August 7, 2023, 5:29pm UTC](https://discuss.elastic.co/t/search-phase-execution-exception-no-shard-available-action-exception-reason-null-no-shard-available-action-exception-reason-null-500/338003/4 "2023-08-07T17:29:50Z")

</div>

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