# Maximum number of attempts exceeded. Restart Kibana to generate a new code and retry

**URL:** <https://discuss.elastic.co/t/maximum-number-of-attempts-exceeded-restart-kibana-to-generate-a-new-code-and-retry/343997>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [September 27, 2023, 2:18pm UTC](https://discuss.elastic.co/t/maximum-number-of-attempts-exceeded-restart-kibana-to-generate-a-new-code-and-retry/343997 "2023-09-27T14:18:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uli67](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@uli67](https://discuss.elastic.co/u/uli67)\
**Post date:** [September 27, 2023, 2:18pm UTC](https://discuss.elastic.co/t/maximum-number-of-attempts-exceeded-restart-kibana-to-generate-a-new-code-and-retry/343997/1 "2023-09-27T14:18:00Z")

</div>

Hi fellows,  
I installed elk stack as docker containers with podman in RHEL9. Now after generating the enrollment token for elasticsearch I would like to configure KIBANA but I get this error message:  
" Maximum number of attempts exceeded. Restart Kibana to generate a new code and retry."  
So I reinstalled and restarted KIBANA container and retried but no success. What do I have to do to fix that error?

Many thanks in advance  
Uli

---

<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:** [October 25, 2023, 2:18pm UTC](https://discuss.elastic.co/t/maximum-number-of-attempts-exceeded-restart-kibana-to-generate-a-new-code-and-retry/343997/2 "2023-10-25T14:18:27Z")

</div>

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