Commit ade1c02
Add troubleshooting section for Elastic Agent automatic unenrollment on 401 errors (#4250)
## Summary
Adds documentation for Elastic Agent automatic unenrollment behavior
when receiving 401 errors during check-in. In versions < 8.19.0 and <
9.1.0, agents are automatically unenrolled after 7 consecutive 401
failures. This behavior was removed in 8.19.0/9.1.0.
**Changes:**
- Added troubleshooting section "{{agent}} is automatically unenrolled
after failed check-ins with 401 errors" to
`troubleshoot/ingest/fleet/common-problems.md`
- Updated table of contents with new section reference
- Documented version-specific behavior for versions < 8.19.0 and < 9.1.0
- Provided resolution steps: re-enrollment process and investigating 401
error causes
- Added version-gated admonition explaining behavior change in
8.19.0/9.1.0
- Listed common causes: expired API keys, misconfiguration,
authentication issues
## Generative AI disclosure
1. Did you use a generative AI (GenAI) tool to assist in creating this
contribution?
- [x] Yes
- [ ] No
2. Tool(s) and model(s) used: GitHub Copilot
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>[Website]: Add troubleshooting section about failed
check-ins and 401</issue_title>
> <issue_description>### Type of issue
>
> None
>
> ### What documentation page is affected
>
> https://www.elastic.co/docs/troubleshoot/ingest/fleet/common-problems
>
> ### What happened?
>
> We should cover the situation that if an Elastic Agent in versions <
9.1.0 or 8.19.0 gets a 401 while checkin in for more than 7 times, it
gets auto-unenrolled.
>
> This behavior has been changed on 9.1.0 and 8.19.0, removing the
auto-unenrollment.
>
> ### Additional info
>
> _No response_</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
<!-- START COPILOT CODING AGENT SUFFIX -->
- Fixes #3708
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: vishaangelova <91186315+vishaangelova@users.noreply.github.com>
Co-authored-by: Visha Angelova <visha.angelova@elastic.co>1 parent d40451f commit ade1c02
1 file changed
+54
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
531 | 532 | | |
532 | 533 | | |
533 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
534 | 588 | | |
535 | 589 | | |
536 | 590 | | |
| |||
0 commit comments