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

Getting error:- SimMachinesAgentService#registerMachine(SimMachineMinimalDto) - Result: 401 Unauthorized - content

Amit.Bisht
Builder

Hello Team,

We have deployed machine agent as an  side car(different container within a pod) for  apache in OSE. It's working for most of the pod but for one pod we are getting below error.

 

code-external-site-ui-sit-50-gm9np==> [system-thread-0] 23 Jan 2024 08:22:14,654 DEBUG RegistrationTask - Encountered error during registration.
com.appdynamics.voltron.rest.client.NonRestException: Method: SimMachinesAgentService#registerMachine(SimMachineMinimalDto) - Result: 401 Unauthorized - content:
 
at com.appdynamics.voltron.rest.client.VoltronErrorDecoder.decode(VoltronErrorDecoder.java:62) ~[rest-client-1.1.0.245.jar:?]
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:156) ~[feign-core-10.7.4.jar:?]
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:80) ~[feign-core-10.7.4.jar:?]
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:100) ~[feign-core-10.7.4.jar:?]
at com.sun.proxy.$Proxy114.registerMachine(Unknown Source) ~[?:?]
at com.appdynamics.agent.sim.registration.RegistrationTask.run(RegistrationTask.java:147) [machineagent.jar:Machine Agent v23.9.1.3731 GA compatible with 4.4.1.0 Build Date 2023-09-20 05:14:38]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
code-external-site-ui-sit-50-gm9np==> [system-thread-0] 23 Jan 2024 08:22:17,189 DEBUG GlobalTagsConfigsDecider - Global tags enabled: false
code-external-site-ui-sit-50-gm9np==> [system-thread-0] 23 Jan 2024 08:22:17,189 DEBUG RegistrationTask - Running registration task
code-external-site-ui-sit-50-gm9np==> [system-thread-0] 23 Jan 2024 08:22:17,256  WARN RegistrationTask - Encountered error during registration. Will retry in 60 seconds.
code-external-site-ui-sit-50-gm9np==> [system-thread-0] 23 Jan 2024 08:22:17,256 DEBUG RegistrationTask - Encountered error during registration.
 
We have cross-verified and everything looks good from the configuration end. 
 
Kindly help us with your suggestions.
7 REPLIES 7

Ryan.Paredez
Community Manager

Hi @Amit.Bisht,

I searched for your error and found a few existing posts that mention it. Please take a look and see if you can find a solution or a lead in them.

https://community.appdynamics.com/t5/forums/searchpage/tab/message?filter=location&q=%22Result:%2040...

 


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.

@Ryan.Paredez  Thanks for your reply. I have gone thought all the post. They are mentioning about the incorrect configuration, could be possible reason of the error. The configuration look good from our side i.e. same config is working other PODS.

I have opened the support case and we are working on it.

 

Regards,

Amit Singh Bisht

 

 

Ryan.Paredez
Community Manager

Hi @Amit.Bisht,

Thanks for letting me know! Could you come back here and share the outcome with the Support case? 


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.

Hello Ryan,

The error was related to the stale connection. After clearing the  clearing the stale nodes from controller end it got resolved.

Ryan.Paredez
Community Manager

Hi @Amit.Bisht,

Thank you so much for following up with a solution to your issue. We love to see that here in the community!


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.

Andrew.Bray
Explorer

Hi ,  I follow below tutorial to setup the machine-agent but no luck. Please help to figure out the issue.

Tutorial :  https://www.youtube.com/watch?v=nMowG41jaTU

Command jre/bin/java -jar machineagent.jar
2024-09-19 08:34:32.916 Using Java Version [11.0.23] for Agent
2024-09-19 08:34:32.916 Using Agent Version [Machine Agent v24.7.0.4315 GA compatible with 4.4.1.0 Build Date 2024-07-18 05:41:53]
2024-09-19 08:34:34.380 [INFO] Agent logging directory set to: [/root/machine-agent/logs]

Error:    

[system-thread-0] 19 Sep 2024 08:40:35,271  WARN RegistrationTask - Encountered error during registration. Will retry in 60 seconds.
abc.com==> [system-thread-0] 19 Sep 2024 08:40:35,271 ERROR RegistrationTask - Encountered error during registration: {}
com.appdynamics.voltron.rest.client.NonRestException: Method: SimMachinesAgentService#registerMachine(SimMachineMinimalDto) - Result: 401 Unauthorized - content:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Unauthorized</title>
</head>
<body>
HTTP Error 401 Unauthorized
<p/>
This request requires HTTP authentication
</body>
</html>
at com.appdynamics.voltron.rest.client.VoltronErrorDecoder.decode(VoltronErrorDecoder.java:62) ~[rest-client-1.1.0.324.jar:?]
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:156) ~[feign-core-10.7.4.jar:?]
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:80) ~[feign-core-10.7.4.jar:?]
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:100) ~[feign-core-10.7.4.jar:?]
at com.sun.proxy.$Proxy116.registerMachine(Unknown Source) ~[?:?]
at com.appdynamics.agent.sim.registration.RegistrationTask.run(RegistrationTask.java:170) [machineagent.jar:Machine Agent v24.7.0.4315 GA compatible with 4.4.1.0 Build Date 2024-07-18 05:41:53]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
 
Hi, This is a beginner tutorial video containing step by step guide to install an AppDynamics machine agent for Linux based servers. Below demonstrations have been covered as part of this video: how to install an AppDynamics machine agent on Linux based system - Machine agent installation. common

Ryan.Paredez
Community Manager

Hi @Andrew.Bray,

Have you seen this AppD Docs page? https://docs.appdynamics.com/appd/23.x/23.11/en/infrastructure-visibility/machine-agent/install-the-...

 


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.