<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cluster Agent Pod Stuck in CrashLoopBackOff in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720942#M2307</link>
    <description>&lt;P&gt;I see this in your log, have you figured out why this is happening?&lt;BR /&gt;agentregistrationmodule.go:352 - "default" is not a valid namespace in your kubernetes cluster&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 13:39:09 GMT</pubDate>
    <dc:creator>Marcie_Sirbaugh</dc:creator>
    <dc:date>2024-04-10T13:39:09Z</dc:date>
    <item>
      <title>Cluster Agent Pod Stuck in CrashLoopBackOff</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720938#M2303</link>
      <description>&lt;P&gt;I'm trying to deploy a cluster agent in my Kubernetes cluster to monitor the infrastructure using the kubectl CLI. I've followed the steps and executed these commands:&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;kubectl create -f cluster-agent-operator.yaml

kubectl -n appdynamics create secret generic cluster-agent-secret --from-literal=controller-key=&amp;lt;access-key&amp;gt;

kubectl create -f cluster-agent.yaml&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;However, the cluster agent pod is stuck in the "CrashLoopBackOff" state. The logs indicate an issue with the account access key:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[ERROR]: 2024-04-03 18:29:45 - main.go:183 - Account accessKey is not specified
[ERROR]: 2024-04-03 18:29:45 - main.go:184 - Please provide account accessKey before starting cluster-agent. Exiting...&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;I've verified that the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;cluster-agent-secret&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;contains the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;controller-key&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with the correct access key value.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;What could be causing this issue despite providing the access key in the secret? Are there any additional configuration steps I might be missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reference :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.appdynamics.com/appd/22.x/latest/en/infrastructure-visibility/monitor-kubernetes-with-the-cluster-agent/install-the-cluster-agent/install-the-cluster-agent-with-the-kubernetes-cli" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/appd/22.x/latest/en/infrastructure-visibility/monitor-kubernetes-with-the-cluster-agent/install-the-cluster-agent/install-the-cluster-agent-with-the-kubernetes-cli&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 16:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720938#M2303</guid>
      <dc:creator>sajo_sam</dc:creator>
      <dc:date>2024-04-04T16:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Agent Pod Stuck in CrashLoopBackOff</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720939#M2304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/168702"&gt;@sajo.sam&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I found this TKB article. Please check it out and see if it helps.&lt;BR /&gt;&lt;A href="https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-debug-common-Linux-Private-Synthetic-Agent-issues/ta-p/51547" target="_blank"&gt;https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-debug-common-Linux-Private-Synthetic-Agent-issues/ta-p/51547&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 16:45:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720939#M2304</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2024-04-05T16:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Agent Pod Stuck in CrashLoopBackOff</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720940#M2305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/168702"&gt;@sajo.sam&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Did you get a chance to check out the TKB article or have you found a solution you can share?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 15:53:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720940#M2305</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2024-04-09T15:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Agent Pod Stuck in CrashLoopBackOff</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720941#M2306</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/142051"&gt;@Ryan.Paredez&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;BR /&gt;I tried but I'm stuck with another issue. The logs given below show it faces some errors with "Failed to send agent registration request: Post "accountname.saas.appdynamics.com:8080/sim/v2/agent/clusterRegistration&amp;nbsp;": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[ERROR]: 2024-04-09 11:20:38 - secretconfig.go:68 - Problem With Getting /opt/appdynamics/cluster-agent/secret-volume/api-user Secret: open /opt/appdynamics/cluster-agent/secret-volume/api-user: no such file or directory

[INFO]: 2024-04-09 11:20:38 - main.go:78 - Kubernetes version: v1.29.0
[INFO]: 2024-04-09 11:20:38 - main.go:236 - Registering cluster agent with
 controller host : accountname.saas.appdynamics.com
 controller port : 8080
 account name : accountname
[WARNING]: 2024-04-09 11:20:38 - agentregistrationmodule.go:352 - "default" is not a valid namespace in your kubernetes cluster

[INFO]: 2024-04-09 11:20:38 - agentregistrationmodule.go:356 - Established connection to Kubernetes API
[INFO]: 2024-04-09 11:20:38 - agentregistrationmodule.go:68 - Cluster name: fromKube
[INFO]: 2024-04-09 11:20:38 - agentregistrationmodule.go:119 - Initial Agent registration
[ERROR]: 2024-04-09 11:21:08 - agentregistrationmodule.go:131 - Failed to send agent registration request: Post "accountname.saas.appdynamics.com:8080/sim/v2/agent/clusterRegistration": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
[ERROR]: 2024-04-09 11:21:08 - agentregistrationmodule.go:132 - clusterId: -1
[ERROR]: 2024-04-09 11:21:08 - agentregistrationmodule.go:134 - Registration properties: {}
[INFO]: 2024-04-09 11:21:38 - agentregistrationmodule.go:119 - Initial Agent registration&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;^ Post edited by&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/142051"&gt;@Ryan.Paredez&lt;/A&gt;&amp;nbsp;to remove mentions and links to Account name. For security and privacy reasons, please redact the name of your Account in Community posts.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 16:05:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720941#M2306</guid>
      <dc:creator>sajo_sam</dc:creator>
      <dc:date>2024-04-09T16:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Agent Pod Stuck in CrashLoopBackOff</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720942#M2307</link>
      <description>&lt;P&gt;I see this in your log, have you figured out why this is happening?&lt;BR /&gt;agentregistrationmodule.go:352 - "default" is not a valid namespace in your kubernetes cluster&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 13:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720942#M2307</guid>
      <dc:creator>Marcie_Sirbaugh</dc:creator>
      <dc:date>2024-04-10T13:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Agent Pod Stuck in CrashLoopBackOff</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720943#M2308</link>
      <description>&lt;P&gt;Hy&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/156370"&gt;@Marcie.Sirbaugh&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just looked into it but didn't get any information from this because the namespace default is already there but I don't know where i'm missing&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 16:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720943#M2308</guid>
      <dc:creator>sajo_sam</dc:creator>
      <dc:date>2024-04-10T16:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Agent Pod Stuck in CrashLoopBackOff</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720944#M2309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/156370"&gt;@Marcie.Sirbaugh&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I see you have an open ticket with the same error you asked Sajo about&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;agentregistrationmodule.go:352&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Perhaps you can continue to share any outcomes from that interaction with your ticket here with Sajo.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 15:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720944#M2309</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2024-04-11T15:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Agent Pod Stuck in CrashLoopBackOff</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720945#M2310</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/168702"&gt;@sajo.sam&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The error message you've encountered "agentregistrationmodule.go:132 - clusterId: -1" indicates that the cluster agent received incorrect controller information or that the controller is rejecting the registration.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To verify if you've configured the correct controller access key, you can execute the following command:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;kubectl get secret cluster-agent-secret -n appdynamics -o jsonpath='{.data.controller-key}' | base64 --decode&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;Please note that DONOT share any controller sensitive information in this public platform.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regarding the error mentioned in your comments:&lt;/P&gt;

&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[ERROR]: 2024-04-09 11:21:08 - agentregistrationmodule.go:131 - Failed to send agent registration request: Post "accountname.saas.appdynamics.com:8080/sim/v2/agent/clusterRegistration": context deadline exceeded (Client.Timeout exceeded while awaiting headers)&lt;/CODE&gt;&lt;/PRE&gt;


&lt;P class="p1"&gt;&lt;SPAN&gt;This is likely due to a network connection issue. You can check the network connection from one of the running pods using the following command:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;curl -v -k -u &lt;A href="mailto:singularity-agent@&amp;lt;accountname&amp;gt;" target="_blank" rel="nofollow noopener noreferrer"&gt;singularity-agent@&amp;lt;accountname&amp;gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://tatadigital.saas.appdynamics.com/sim/v2/agent/clusterRegistration" target="_blank" rel="nofollow noopener noreferrer"&gt;https://&amp;lt;controllerhost&amp;gt;.saas.appdynamics.com:&amp;lt;port&amp;gt;/sim/v2/agent/clusterRegistration&lt;/A&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Please check the above if that helpful.&lt;/P&gt;
&lt;P class="p1"&gt;Best Regards,&lt;BR /&gt;Rajesh Ganapavarapu&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 20:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Cluster-Agent-Pod-Stuck-in-CrashLoopBackOff/m-p/720945#M2310</guid>
      <dc:creator>rganapavarapu</dc:creator>
      <dc:date>2024-05-14T20:48:42Z</dc:date>
    </item>
  </channel>
</rss>

