# Invalid ActiveGate Token for Container AG in Kubernetes

**URL:** <https://community.dynatrace.com/t/invalid-activegate-token-for-container-ag-in-kubernetes/44871>\
**Category:** Container platforms\
**Tags:** dynatrace-operator, kubernetes\
**Created:** [March 26, 2024, 9:34pm UTC](https://community.dynatrace.com/t/invalid-activegate-token-for-container-ag-in-kubernetes/44871 "2024-03-26T21:34:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [March 26, 2024, 9:34pm UTC](https://community.dynatrace.com/t/invalid-activegate-token-for-container-ag-in-kubernetes/44871/1 "2024-03-26T21:34:39Z")

</div>

I’m suddenly seeing the error below and the operator pod and 2 AG pods are not functional, with the error being in the AG pod. We are using operator version 0.12.1 and I have decoded the secret and confirmed the apiToken does have the **‘Create ActiveGate tokens’** scope. I even tried deleting the secret and creating it back with the tokens. What else can I look at here? I prefer to not wipe everything out and start fresh (delete the dynakube crd, reapplying yaml files, etc).

2024-03-26 21:22:10 UTC WARNING [\<ltr71653\>] [\<collector.core\>, InitialCollectorSetupPoller] Initial collector setup received with error:REQUEST\_REJECTED, reason=Invalid ActiveGate Token source=ANY\_SERVER 0x0000000000000000 [Suppressing further messages for 1 hour]

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [March 26, 2024, 9:48pm UTC](https://community.dynatrace.com/t/invalid-activegate-token-for-container-ag-in-kubernetes/44871/2 "2024-03-26T21:48:42Z")

</div>

Hello, I recommend you to check [this](https://community.dynatrace.com/post/213400) response from [@Babar\_Qayyum](https://community.dynatrace.com/user/22017)

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [March 26, 2024, 10:03pm UTC](https://community.dynatrace.com/t/invalid-activegate-token-for-container-ag-in-kubernetes/44871/3 "2024-03-26T22:03:07Z")

</div>

What response are you referring to? I don’t see it linked here. I’ve also tried looking up their profile and viewing some recent posts but did not find anything relevant.

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [March 27, 2024, 7:34am UTC](https://community.dynatrace.com/t/invalid-activegate-token-for-container-ag-in-kubernetes/44871/4 "2024-03-27T07:34:32Z")

</div>

I have seen this kind of error when there are a couple of secrets, one dynakube secret and one with a custom name.

Please check it.

---

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [March 27, 2024, 11:49am UTC](https://community.dynatrace.com/t/invalid-activegate-token-for-container-ag-in-kubernetes/44871/5 "2024-03-27T11:49:07Z")

</div>

Thanks for the recommendation here. We customized the name of our secret. There was no secret by the name of dynakube. I went ahead and deleted the dynakube, the secret, and any leftover resources in the namespace then redeployed. All is good now.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [March 27, 2024, 9:25pm UTC](https://community.dynatrace.com/t/invalid-activegate-token-for-container-ag-in-kubernetes/44871/6 "2024-03-27T21:25:39Z")

</div>

Sorry, link updated.
