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

Getting 401 unauthorized even after enabling SIM module in Appdynamics Container

Hi Team, 

I am trying to run appdynamics machine agent as a container to monitor the existing app containers. I have gone through the issue discussion and added this line in my environment file. 


But still I recieve the error log:

c8ebf9f96874==> [system-thread-0] 24 Jun 2022 13:04:05,719 DEBUG RegistrationTask - Encountered error during registration. Method: SimMachinesAgentService#registerMachine(SimMachineMinimalDto) - Result: 401 Unauthorized - content:

at ~[rest-client-]
at feign.SynchronousMethodHandler.executeAndDecode( ~[feign-core-10.7.4.jar:?]
at feign.SynchronousMethodHandler.invoke( ~[feign-core-10.7.4.jar:?]
at feign.ReflectiveFeign$FeignInvocationHandler.invoke( ~[feign-core-10.7.4.jar:?]
at com.sun.proxy.$Proxy113.registerMachine(Unknown Source) ~[?:?]
at [machineagent.jar:Machine Agent v22.5.0-3361 GA compatible with Build Date 2022-05-26 01:20:55]
at java.util.concurrent.Executors$ Source) [?:?]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$ Source) [?:?]"

Need solution on this. 


Community Manager

Hi @Christopher.Antonyraj,

Thanks for asking your question on the Community. I did some digging around and found these two AppD Doc pages. Please let me know if they help out at all.

If I find anything else, I'll share it with you here.


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.


This took me a "minute" to figure this one out. Turns out that in my controller-info.xml, at host tag, I had included an unnecessary fwd slash.  That corrupted my whole rest api url resolution. Check if that is not the case with you. As a general rule, keep host-name clean, port clean, and ssl option clean.