Skip to content

Commit 73c134e

Browse files
BBQigniterkilfoyle
authored andcommitted
Update troubleshooting.asciidoc (#1573)
* Update troubleshooting.asciidoc Added info about what to look for if an agent gets reenrolled on a Kubernetes cluster * Update docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc * Update docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc * Update docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc --------- Co-authored-by: David Kilfoyle <[email protected]> (cherry picked from commit 300b660)
1 parent 99836e0 commit 73c134e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Find troubleshooting information for {fleet}, {fleet-server}, and {agent} in the
6161
* <<agent-oom-k8s>>
6262
* <<agent-sudo-error>>
6363
* <<agent-kubernetes-kustomize>>
64+
* <<agent-kubernetes-invalid-api-key>>
6465

6566

6667
[discrete]
@@ -963,3 +964,13 @@ Extra resources for {agent} on Kubernetes troubleshooting and information:
963964
* https://github.com/elastic/elastic-agent/tree/main/deploy/kubernetes/elastic-agent-kustomize/default[{agent} Kustomize Templates] documentation and resources.
964965

965966
* Other examples and manifests to deploy https://github.com/elastic/elastic-agent/tree/main/deploy/kubernetes[{agent} on Kubernetes].
967+
968+
[discrete]
969+
[[agent-kubernetes-invalid-api-key]]
970+
== Troubleshoot {agent} on Kubernetes seeing `invalid api key to authenticate with fleet` in logs
971+
972+
If an agent was unenrolled from a Kubernetes cluster, there might be data remaining in `/var/lib/elastic-agent-managed/kube-system/state` on the node(s). Reenrolling an agent later on the same nodes might then result in `invalid api key to authenticate with fleet` error messages.
973+
974+
To avoid these errors, make sure to delete this state-folder before enrolling a new agent.
975+
976+
For more information, refer to issue link:https://github.com/elastic/elastic-agent/issues/3586[#3586].

0 commit comments

Comments
 (0)