﻿---
title: Troubleshoot node bootlooping in Elastic Cloud Enterprise
description: When you attempt to apply a configuration change to a deployment, the attempt may fail with an error indicating that the change could not be applied,...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/troubleshoot/deployments/cloud-enterprise/node-bootlooping
products:
  - Elastic Cloud Enterprise
---

# Troubleshoot node bootlooping in Elastic Cloud Enterprise
When you attempt to apply a configuration change to a deployment, the attempt may fail with an error indicating that the change could not be applied, and deployment resources may be unable to restart. In some cases, bootlooping may result, where the deployment resources cycle through a continual reboot process.
![A screen capture of the deployment page showing an error: Latest change to Elasticsearch configuration failed.](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/troubleshoot/images/cloud-ec-ce-configuration-change-failure.png)

To confirm if your Elasticsearch cluster is bootlooping, you can check the most recent plan under your [Deployment Activity page](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/deploy-manage/deploy/elastic-cloud/keep-track-of-deployment-activity) for the error:
```sh
Plan change failed: Some instances were unable to start properly.
```

Here are some frequent causes of a failed configuration change:
- [Secure settings](#ece-config-change-errors-secure-settings)
- [Expired custom plugins or bundles](#ece-config-change-errors-expired-bundle-extension)
- [OOM errors](#ece-config-change-errors-oom-errors)
- [Existing index](#ece-config-change-errors-existing-index)
- [Insufficient storage](#ece-config-change-errors-insufficient-storage)

If you’re unable to remediate the failing plan’s root cause, you can attempt to reset the deployment to the latest successful Elasticsearch configuration by performing a [no-op plan](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/troubleshoot/monitoring/deployment-health-warnings).
<admonition title="Simplify monitoring with AutoOps" applies-to="{ ess:, ece:, eck:, self:, "serverless": "ga" }">
  AutoOps is a monitoring tool that simplifies cluster management through performance recommendations, resource utilization visibility, and real-time issue detection with resolution paths. Learn more about [AutoOps](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/deploy-manage/monitor/autoops).
</admonition>


## Secure settings

The most frequent cause of a failed deployment configuration change is due to invalid or mislocated [secure settings](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/deploy-manage/security/secure-settings).
The keystore allows you to safely store sensitive settings, such as passwords, as a key/value pair. You can then access a secret value from a settings file by referencing its key. Importantly, not all settings can be stored in the keystore, and the keystore does not validate the settings that you add. Adding unsupported settings can cause Elasticsearch or other components to fail to restart. To check whether a setting is supported in the keystore, look for a "Secure" qualifier in the [lists of reloadable settings](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/deploy-manage/security/secure-settings).
The following sections detail some secure settings problems that can result in a configuration change error that can prevent a deployment from restarting. You might diagnose these plan failures via the logs or via their [related exit codes](/elastic/docs-content/pull/4103/deploy-manage/maintenance/start-stop-services/start-stop-elasticsearch#fatal-errors) `1`, `3`, and `78`.

### Invalid or outdated values

The keystore does not validate any settings that you add, so invalid or outdated values are a common source of errors when you apply a configuration change to a deployment.
To check the current set of stored settings:
1. Open the deployment **Security** page.
2. In the **Elasticsearch keystore** section, check the **Security keys** list. The list is shown only if you currently have settings configured in the keystore.

One frequent cause of errors is when settings in the keystore are no longer valid, such as when SAML settings are added for a test environment, but the settings are either not carried over or no longer valid in a production environment.

### Snapshot repositories

Sometimes, settings added to the keystore to connect to a snapshot repository may not be valid. When this happens, you may get an error such as `SettingsException[Neither a secret key nor a shared access token was set.]`
For example, when adding an [Azure repository storage setting](/elastic/docs-content/pull/4103/deploy-manage/tools/snapshot-and-restore/azure-repository#repository-azure-usage) such as `azure.client.default.account` to the keystore, the associated setting `azure.client.default.key` must also be added for the configuration to be valid.

### Third-party authentication

When you configure third-party authentication, it’s important that all required configuration elements that are stored in the keystore are included in the Elasticsearch user settings file. For example, when you [create a SAML realm](/elastic/docs-content/pull/4103/deploy-manage/users-roles/cluster-or-deployment-auth/saml#saml-create-realm), omitting a field such as `idp.entity_id` when that setting is present in the keystore results in a failed configuration change.

### Wrong location

In some cases, settings may accidentally be added to the keystore that should have been added to the [Elasticsearch user settings file](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/deploy-manage/deploy/elastic-cloud/edit-stack-settings). It’s always a good idea to check the [lists of reloadable settings](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/deploy-manage/security/secure-settings) to determine if a setting can be stored in the keystore. Settings that can safely be added to the keystore are flagged as `Secure`.

## Expired custom plugins or bundles

During the process of applying a configuration change, Elastic Cloud checks to determine if any [uploaded custom plugins or bundles](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/deploy-manage/deploy/elastic-cloud/upload-custom-plugins-bundles) are expired.
Problematic plugins produce oscillating Elasticsearch start-up logs like the following:
```sh
Booting at Sun Sep 4 03:06:43 UTC 2022
Installing user plugins.
Installing elasticsearch-analysis-izumo-master-7.10.2-20210618-28f8a97...
/app/elasticsearch.sh: line 169: [: too many arguments
Booting at Sun Sep 4 03:06:58 UTC 2022
Installing user plugins.
Installing elasticsearch-analysis-izumo-master-7.10.2-20210618-28f8a97...
/app/elasticsearch.sh: line 169: [: too many arguments
```

Problematic bundles produce similar oscillations but their install log would appear like
```sh
2024-11-17 15:18:02   https://found-user-plugins.s3.amazonaws.com/XXXXX/XXXXX.zip?response-content-disposition=attachment%3Bfilename%XXXXX%2F4007535947.zip&x-elastic-extension-version=1574194077471&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20241016T133214Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&XAmz-Credential=XXXXX%2F20201016%2Fus-east-1%2Fs3%2Faws4_request&X-AmzSignature=XXXXX
```

Noting in example that the bundle’s expiration `X-Amz-Date=20241016T133214Z` is before than the log timestamp `2024-11-17 15:18:02` so this bundle is considered expired.
To view any added plugins or bundles:
1. Go to the **Features** page and open the **Extensions** tab.
2. Select any extension and then choose **Update extension** to renew it. No other changes are needed, and any associated configuration change failures should now be able to succeed.


## OOM errors

Configuration change errors can occur when there is insufficient RAM configured for a data tier. In this case, the cluster typically also shows OOM (out of memory) errors. To resolve these, you need to increase the amount of heap memory. For instances up to 64 GB of RAM, heap memory is half of the total memory allocated. For instances larger than 64 GB, the heap size is capped at 32 GB. You might also detect OOM in plan changes via their [related exit codes](/elastic/docs-content/pull/4103/deploy-manage/maintenance/start-stop-services/start-stop-elasticsearch#fatal-errors) `127`, `137`, and `158`.
You can also read our detailed blog [Managing and troubleshooting Elasticsearch memory](https://www.elastic.co/blog/managing-and-troubleshooting-elasticsearch-memory).

## Existing index

In rare cases, when you attempt to upgrade the version of a deployment and the upgrade fails on the first attempt, subsequent attempts to upgrade may fail due to already existing resources. The problem may be due to the system preventing itself from overwriting existing indices, resulting in an error such as this: `Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_2 and restarting Kibana`.
To resolve this:
1. Check that you don’t need the content.
2. Run an Elasticsearch [Delete index request](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete) to remove the existing index.
   In this example, the `.kibana_2` index is the rollover of saved objects (such as Kibana visualizations or dashboards) from the original `.kibana_1` index. Since `.kibana_2` was created as part of the failed upgrade process, this index does not yet contain any pertinent data and it can safely be deleted.
3. Retry the deployment configuration change.


## Insufficient storage

Configuration change errors can occur when there is insufficient disk space for a data tier. To resolve this, you need to increase the size of that tier to ensure it provides enough storage to accommodate the data in your cluster tier considering the [high watermark](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings#disk-based-shard-allocation). For troubleshooting walkthrough, see [Fix watermark errors](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4103/troubleshoot/elasticsearch/fix-watermark-errors).