Loading

AutoOps for self-managed clusters troubleshooting

ECK ECE Self-Managed

Learn about issues that might come up when connecting your clusters and using AutoOps.

Use this guide to troubleshoot any issues you may encounter.

I’m trying to create a Cloud organization, but I’m already part of a different one.

Users can only belong to one Elastic Cloud organization at a time. If you want to create or join another organization, you must leave the previous one or use a different email address.

I need to uninstall Elastic Agent.
Refer to Uninstall Elastic Agent for instructions.
My cluster was disconnected from Elastic Cloud and I want to reconnect it.
If the cluster was disconnected by one of the users in your Cloud organization, you can repeat the installation process to reconnect. If not, explore additional resources or contact us.
After running the installation command, I can't move on to the next steps.
If an error appears on the screen, follow the suggestion in the error message and try to run the command again. If the issue is not resolved, explore additional resources or contact us.
My organization's firewall may be preventing Elastic Agent from collecting and sending metrics.

If you suspect that a corporate firewall is hindering Elastic Agent, complete the following steps to test each component of the connection and implement an appropriate solution.

Tip

Run the following tests within the context of your execution environment. That is, if your chosen installation method is Kubernetes, run the commands from within the pod; for Docker, run the commands from within the container, and so on.

There are three main components of Elastic Agent's connection with your system:

  1. Elastic Agent registers your cluster with Elastic Cloud
  2. Elastic Agent connects to your cluster
  3. Elastic Agent sends metrics from your cluster to Elastic Cloud

If there is an issue with the first component, the agent will stop working and your logs might look like:

... failed to register Cloud Connected Mode: ... Post \"https://api.elastic-cloud.com/api/v1/cloud-connected/clusters\": ...
		

To test if your organization is not allowing the agent to register your cluster with Elastic Cloud, run the following command:

curl -XPOST -i \
https://api.elastic-cloud.com/api/v1/cloud-connected/clusters \
-H 'Content-Type: application/json' \
-d '{"self_managed_cluster": {"id": "my-cluster-uuid", "name": "my-cluster-name", "version": "9.1.0"}, "license": {"uid": "my-license-id", "type": "basic"}}'
		

The command should return an HTTP 401 response similar to:

{"UnauthorizedMessages":["Invalid credential headers"],"Cause":null}
		

If you do not receive a similar response, configure your HTTP proxy to allow it to reach the URL (with headers and a JSON body):

POST https://api.elastic-cloud.com/api/v1/cloud-connected/clusters
		
Note

If you are using Docker, you may need to complete this configuration directly via the HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables.

If there is an issue with the second component, Elastic Agent cannot connect to your cluster. To test if your organization is not allowing this connection, run the following command depending on your chosen authentication method:

curl -XGET -i $AUTOOPS_ES_URL \
-H "Authorization: ApiKey $AUTOOPS_ES_API_KEY"
		
curl -XGET -i $AUTOOPS_ES_URL \
-u $AUTOOPS_ES_USERNAME
		

The command should return a response similar to:

{
"name" : "1c72f00a6195",
"cluster_name" : "my-ccm-cluster",
"cluster_uuid" : "2O_EjO6kTR6AEVYwL5fPEw",
"version" : {
"number" : "9.1.3",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "0c781091a2f57de895a73a1391ff8426c0153c8d",
"build_date" : "2025-08-24T22:05:04.526302670Z",
"build_snapshot" : false,
"lucene_version" : "10.2.2",
"minimum_wire_compatibility_version" : "8.19.0",
"minimum_index_compatibility_version" : "8.0.0"
},
"tagline" : "You Know, for Search"
}
		

If you do not receive a similar response, your system will return an error indicating one or more reasons for failure as outlined in the following table. Use the corresponding proposed solution to fix the issue.

Reason for failure Proposed solution
The Elasticsearch endpoint URL you specified is incorrect/not reachable - Make sure you are using http or https correctly.
- Make sure you are providing the correct port. The default port is 9200.
- If you have verified that the URL is correct, your network team may need to open the firewall to allow-list this URL.
Your API key is incorrect - Recheck for typos.
- If your cluster is on versions 9.1.0 through 9.1.3, ensure that you have the base64-decoded version of the key by running the following command:

echo $AUTOOPS_ES_API_KEY | base64 -d

If your key has a colon (:), it is not base64 encoded. If your key has an equal sign (=), it is base64 coded.
For versions 9.1.4 and above, both formats will work.
Your username and/or password are incorrect - Recheck for typos.
- Ensure that your provided user has the necessary privileges. We do not recommend providing a privileged superuser like elastic for this purpose.
You are providing both the API key and username/password Choose one type of authentication only.
A proxy is blocking communication with your Elasticsearch cluster You may have to configure NO_PROXY.
You are using a custom SSL/TLS configuration with Elasticsearch Disable SSL/TLS verification so that your system trusts all certificates. We do not recommend disabling verification in production environments.

If you are using API key authentication, run the following command:

curl -XGET --insecure -i $AUTOOPS_ES_URL \ -H "Authorization: ApiKey $AUTOOPS_ES_API_KEY".

If you are using username/password authentication, run the following command:

curl -XGET --insecure -i $AUTOOPS_ES_URL \ -u $AUTOOPS_ES_USERNAME

If the issue is resolved, you need to configure your custom SSL/TLS settings with Elastic Agent. If the issue persists, contact Elastic support.
You are connecting a local development cluster using Docker without specifying --network host - Make sure you are following all the steps to connect your local development cluster to AutoOps.
- In the Install agent step, make sure you are replacing docker run -d \ with docker run -d --network host \.

If there is an issue with the third component, the agent will attempt to establish the connection and your logs might look like:

... Exporting failed. Dropping data. ... no more retries left: failed to make an HTTP request: Post \"https://otel-collector.auto-ops.eu-west-1.aws.cloud.elastic.co:4318/v1/logs\": ...
		

To test if your organization is not allowing the agent to send metrics from your cluster to Elastic Cloud, run the following command. We will use AWS eu-west-1 as the CSP region, but you should replace it with your chosen CSP region before running the command.

curl -XPOST -i \
https://otel-collector.auto-ops.eu-west-1.aws.cloud.elastic.co:4318/v1/logs \
-H 'Content-Type: application/json'
		

The command should return an HTTP 401 response similar to:

{"code":16,"message":"no auth provided"}
		

If you do not receive a similar response, configure your HTTP proxy to allow it to reach the URL (with headers and an arbitrary body):

POST https://otel-collector.auto-ops.${REGION}.${CSP}.cloud.elastic.co:4318/v1/logs
		
Note

If you are using Docker, you may need to complete this configuration directly via the HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables.

The following table shows the errors you might encounter if something goes wrong while you set up and use AutoOps on your clusters.

Error code Error message Description
HTTP_401 Authentication failed Connection denied because of an authentication error. Verify that your API key and password are correct and all necessary privileges have been granted.
HTTP_502 Server error Received an invalid response from the server. Verify the server status and network configuration.
HTTP_503 Server unavailable Invalid or corrupt response received from the server. The server acting as a proxy may be busy or undergoing scheduled maintenance. If the issue persists, check the cluster's health and resource usage.
HTTP_504 Request timed out Did not receive a response from the cluster within the expected time frame. Check the cluster's performance or consider changing your connection timeout settings.
CLUSTER_ALREADY_CONNECTED Cluster connected to another account This cluster is already connected to another Elastic Cloud organization. Disconnect it and then try again.
CLUSTER_NOT_READY Elasticsearch cluster is still connecting Your Elasticsearch cluster is not yet ready to connect. Wait a few moments for it to finish starting up and then try again.
HTTP_0 Connection error Elastic Agent couldn't connect to the cluster. There may be various reasons for this issue. Review the documentation or contact Elastic support if the issue persists.
LICENSE_EXPIRED Elastic license is expired Contact sales to renew your license.
LICENSE_USED_BY_ANOTHER_ACCOUNT License key connected to another account A license key can only be connected to one Elastic Cloud organization. Contact Elastic support for help.
VERSION_MISMATCH Elasticsearch version is unsupported Upgrade your cluster to a supported version.
UNKNOWN_ERROR Installation failed Elastic Agent couldn't be installed due to an unknown issue. Consult the troubleshooting guide or contact Elastic support for more help.
Failed to register Cloud Connected Mode: cluster license type is not supported The cluster you are trying to connect doesn't have the required license to connect to AutoOps. For more information, refer to the prerequisites.