Infrastructure (Server, Database)

cancel
Showing results for 
Search instead for 
Did you mean: 

Troubleshooting Agent Registration Issues ? "Encountered error during registration. Will retry in 6"

Highlighted
Contributor

Troubleshooting Agent Registration Issues ? "Encountered error during registration. Will retry in 6"

Hi 

 

There seems to be very little information on the Internet or Appdynamics documentation on troubleshooting agent registration issues.

I'm trying to register a new server agent on Linux with Appdynamics  I get a very obscure registration error when running the agent:

 

---

[UriConfigPoller] 20 Apr 2017 10:57:21,118 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/ to see if it is readable.

[system-thread-0] 20 Apr 2017 10:57:21,160 DEBUG RegistrationTask - Running registration task

[system-thread-0] 20 Apr 2017 10:57:21,168  WARN RegistrationTask - Encountered error during registration. Will retry in 60 seconds.

[system-thread-0] 20 Apr 2017 10:57:21,168 DEBUG RegistrationTask - Encountered error during registration.

com.appdynamics.voltron.rest.client.NonRestException: Method: SimMachinesAgentService#registerMachine(SimMachineMinimalDto) - Result: 401 Unauthorized - content:

---

 

The agent I'm using was generated from the Appdynamics enterprise dashboard and uploaded to the linux server.

 

Things I've checked:

 

- Network connectivity: packet flow at tcp level is fine between agent and server.

- Licensing: Licensing is valid

- hostname/unique agent id: as a test , set manually using the result of  "hostname" command.

 

There seem to be no other appdynamics guides on how to troubleshoot this in further detail. Past forum posts seem to yield low quality answers.

 

 

More complete debug log dump as follows:

 

----

[UriConfigPoller] 20 Apr 2017 10:56:51,117 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/logging/log4j.xml to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:56:51,117 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/logging/ to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:56:51,117 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/controller-info.xml to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:56:51,117 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/ to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:57:21,117 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/logging/log4j.xml to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:57:21,118 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/logging/ to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:57:21,118 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/controller-info.xml to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:57:21,118 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/ to see if it is readable.

[system-thread-0] 20 Apr 2017 10:57:21,160 DEBUG RegistrationTask - Running registration task

[system-thread-0] 20 Apr 2017 10:57:21,168  WARN RegistrationTask - Encountered error during registration. Will retry in 60 seconds.

[system-thread-0] 20 Apr 2017 10:57:21,168 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)

        at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:126)

        at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:74)

        at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:97)

        at com.sun.proxy.$Proxy80.registerMachine(Unknown Source)

        at com.appdynamics.agent.sim.registration.RegistrationTask.run(RegistrationTask.java:124)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

[UriConfigPoller] 20 Apr 2017 10:57:51,118 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/logging/log4j.xml to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:57:51,118 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/logging/ to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:57:51,118 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/controller-info.xml to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:57:51,118 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/ to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:58:21,119 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/logging/log4j.xml to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:58:21,119 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/logging/ to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:58:21,119 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/controller-info.xml to see if it is readable.

[UriConfigPoller] 20 Apr 2017 10:58:21,119 DEBUG UriConfigProvider - Checking uri file:/opt/appdynamics/conf/ to see if it is readable.

[system-thread-0] 20 Apr 2017 10:58:21,160 DEBUG RegistrationTask - Running registration task

[system-thread-0] 20 Apr 2017 10:58:21,169  WARN RegistrationTask - Encountered error during registration. Will retry in 60 seconds.

[system-thread-0] 20 Apr 2017 10:58:21,169 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)

        at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:126)

        at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:74)

        at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:97)

        at com.sun.proxy.$Proxy80.registerMachine(Unknown Source)

        at com.appdynamics.agent.sim.registration.RegistrationTask.run(RegistrationTask.java:124)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

---

 

 

 

 

 

 

2 REPLIES
Contributor

Re: Troubleshooting Agent Registration Issues ? "Encountered error during registration. Will re

Any response?

Contributor

Re: Troubleshooting Agent Registration Issues ? "Encountered error during registration. Will re

Hi,

 

I have the same problem on a Windows machine.

 

[UriConfigPoller] 03 Jun 2017 00:54:41,937 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/controller-info.xml to see if it is readable.
[UriConfigPoller] 03 Jun 2017 00:54:41,940 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/logging/log4j.xml to see if it is readable.
[UriConfigPoller] 03 Jun 2017 00:54:41,941 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/logging/ to see if it is readable.
[UriConfigPoller] 03 Jun 2017 00:54:41,942 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/ to see if it is readable.
[UriConfigPoller] 03 Jun 2017 00:55:11,944 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/controller-info.xml to see if it is readable.
[UriConfigPoller] 03 Jun 2017 00:55:11,946 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/logging/log4j.xml to see if it is readable.
[UriConfigPoller] 03 Jun 2017 00:55:11,947 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/logging/ to see if it is readable.
[UriConfigPoller] 03 Jun 2017 00:55:11,947 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/ to see if it is readable.
[system-thread-0] 03 Jun 2017 00:55:12,088 DEBUG RegistrationTask - Running registration task
[system-thread-0] 03 Jun 2017 00:55:12,695  WARN RegistrationTask - Encountered error during registration. Will retry in 60 seconds.
[system-thread-0] 03 Jun 2017 00:55:12,695 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)
	at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:126)
	at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:74)
	at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:97)
	at com.sun.proxy.$Proxy80.registerMachine(Unknown Source)
	at com.appdynamics.agent.sim.registration.RegistrationTask.run(RegistrationTask.java:124)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
...
<repeat>