cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Failed to send agent registration request + Status: 401 Unauthorized

Hi,

I am running into following issue when I try to monitor my k8s cluster using Appdynamics. I verified that my controller key is correct. Any other reason why I would run into this issue?

 

Thanks,

Raghu

 

[WARNING]: 2021-01-16 05:27:39 - agentregistrationmodule.go:352 - dev is not a valid namespace in your kubernetes cluster
[INFO]: 2021-01-16 05:27:39 - agentregistrationmodule.go:356 - Established connection to Kubernetes API
[INFO]: 2021-01-16 05:27:39 - agentregistrationmodule.go:68 - Cluster name: TEST
[INFO]: 2021-01-16 05:27:39 - agentregistrationmodule.go:119 - Initial Agent registration
[ERROR]: 2021-01-16 05:27:39 - agentregistrationmodule.go:131 - Failed to send agent registration request: Status: 401 Unauthorized, Body:
[ERROR]: 2021-01-16 05:27:39 - agentregistrationmodule.go:132 - clusterId: -1
[ERROR]: 2021-01-16 05:27:39 - agentregistrationmodule.go:134 - Registration properties: {}

10 REPLIES 10

Ryan.Paredez
Community Manager

Hi @sajo.sam,

I did some digging and found this info.

We can see 401 when there is an issue either in the access key or in the account name
 

kubectl -n appdynamics create secret generic cluster-agent-secret --from-literal=controller-key="myaccount access key valid"


Can you please check and confirm if the access key you have used to create the secret is same with the access key under Settings#licenses#Account.
 
If not the same then please pass the same and repeat the steps of creating a secret and create yaml .


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.