# No alive nodes found in your cluster

**URL:** https://discuss.elastic.co/t/no-alive-nodes-found-in-your-cluster/272216
**Category:** Elasticsearch
**Created:** [May 5, 2021, 4:45pm UTC](https://discuss.elastic.co/t/no-alive-nodes-found-in-your-cluster/272216 "2021-05-05T16:45:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chrisan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisan/32/12335_2.png) [@chrisan](https://discuss.elastic.co/u/chrisan)
#### Post date: [May 5, 2021, 4:45pm UTC](https://discuss.elastic.co/t/no-alive-nodes-found-in-your-cluster/272216/1 "2021-05-05T16:45:35Z")

</div>

I'm on Ubuntu 20.04 with Elasticsearch 7.10.2 (though this has happened in previous minor versions too)

We have a PHP script that runs every night using 7.12.0 of the PHP SDK where it re-indexes live documents and deletes old documents no longer considered live in our CMS. The basic loop is

for each company

- re-index live stuff
- delete old stuff

Every so often, maybe every 5-7 days one of the nights we will see an error of "No alive nodes found in your cluster" after trying to do a delete

```auto
$deleteCompanyParams = [
  'refresh' => true,
  'index' => "{$company->slug}_{$company->id}",
  'body' => [
    'query' => [
      'terms' => [
        'publication_id' => array_values($oldPublicationIds->toArray())
      ]
    ]
  ]
];
$client->deleteByQuery($deleteCompanyParams);

```

Any ideas on what can cause this sporadic behavior?

---

<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: [May 6, 2021, 12:10am UTC](https://discuss.elastic.co/t/no-alive-nodes-found-in-your-cluster/272216/2 "2021-05-06T00:10:32Z")

</div>

Is there anything matching that time in your Elasticsearch master logs that might provide a hint?

---

<div class="post-metadata">

### Author: ![chrisan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisan/32/12335_2.png) [@chrisan](https://discuss.elastic.co/u/chrisan)
#### Post date: [May 6, 2021, 10:49am UTC](https://discuss.elastic.co/t/no-alive-nodes-found-in-your-cluster/272216/3 "2021-05-06T10:49:32Z")

</div>

Hmm, I see I have more digging to do.

```auto
[2021-05-05T08:00:00,365][INFO][o.e.n.Node] [prod.v2.elasticsearch] stopping ...
[2021-05-05T08:00:00,551][INFO][o.e.x.w.WatcherService] [prod.v2.elasticsearch] stopping watch service, reason [shutdown initiated]

```

Looks like `unattended-upgrades` began then.

Thank you and sorry to clog up the forums needlessly!

---

<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 3, 2021, 10:50am UTC](https://discuss.elastic.co/t/no-alive-nodes-found-in-your-cluster/272216/4 "2021-06-03T10:50:30Z")

</div>

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