Infrastructure (Server, Network, Database)

cancel
Showing results for 
Search instead for 
Did you mean: 

Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

Builder

Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

Trying to register a new agent with the controller fails, even though I am using a superuser account to generate the agent zip file and I have more than 50 agent licenses (i've also disabled SIM on the agent side):

 

Logs on the agent show:

 

[system-thread-0] 22 Apr 2017 14:19:06,786  WARN RegistrationTask - Encountered error during registration. Will retry in 60 seconds.

[system-thread-0] 22 Apr 2017 14:19:06,786 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)

 

Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)
20 REPLIES 20
Builder

Re: Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

More details from the registration step:

 

 RegistrationTask - Built agent config {_features={features=[basic, dmm], reason={message=, code=}}, _agentRegistrationRequestConfig={machineInfo=os.name=Linux|os.arch=amd64|os.version=3.10.0-327.10.1.el7.x86_64, jvmInfo=java.vm.name=Java HotSpot(TM) 64-Bit Server VM|java.vendor=Oracle Corporation|java.version=1.8.0_112|user.language=en|user.country=US|user.variant=unknown, installDirectory=/opt/appdynamics, agentVersion=Machine Agent v4.3.0.3 GA Build Date 2017-04-11 16:00:57, tierName=null, nodeName=null, applicationNames=[], autoRegisterAgent=true, agentType=MACHINE_AGENT}, _machineInstanceRegistrationRequestConfig={forceMachineInstanceRegistration=true}, _dotnetRegistrationRequestConfig={dotnetCompatibilityMode=false}}

[system-thread-0] 22 Apr 2017 14:25:40,178 DEBUG RegistrationTask - Running registration task

[main] 22 Apr 2017 14:25:40,180 DEBUG FrameworkBootstrap - Created injector

[main] 22 Apr 2017 14:25:40,180 DEBUG FrameworkBootstrap - Starting application context

[main] 22 Apr 2017 14:25:40,183 DEBUG FrameworkBootstrap - Calling Blocking Main run method

[system-thread-0] 22 Apr 2017 14:25:40,275 DEBUG FlexibleX509TrustManager - X509Certificates: [

 

 

Builder

Re: Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

NOTE: registration also fails if SSL is turned off and non-https port is used to connect to the controller.

Builder

Re: Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

Additional data point, in the controller logs I see these entrieis, suggesting some kind of authentication error between agent and controller:

 

---

 

[#|2017-04-22T14:50:57.556+0000|INFO|glassfish 4.1|com.singularity.ee.controller.auth.AuthRealm|_ThreadID=55;_ThreadName=http-listener-1(4);_TimeMillis=1492872657556;_LevelValue=800;|Invalid account singularity-agent@customer1_xyxyxyxyxyxyxyxyxyxyxyxyxy|#]

[#|2017-04-22T14:50:57.556+0000|INFO|glassfish 4.1|javax.enterprise.system.core.security|_ThreadID=55;_ThreadName=http-listener-1(4);_TimeMillis=1492872657556;_LevelValue=800;_MessageID=NCLS-SECURITY-05046;|Audit:
Authentication refused for [singularity-agent@customer1_xyxyxyxyxyxyxyxyxyxyxyxyxy].|#]

[#|2017-04-22T14:50:57.556+0000|INFO|glassfish 4.1|javax.enterprise.system.core.security.com.sun.enterprise.security.jmac.callback|_ThreadID=55;_ThreadName=http-listener-1(4);_TimeMillis=1492872657556;_LevelValue=800;|jmac.loginfail|#]

----

 

However, this agent was built through the UI and there is no indication of a user or credentials that may be needed ...

 

AppDynamics Team

Re: Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

Hi Traiano,

 

Could you please send us details as requested here

 

1) Zipped machine agent logs

2) controller-info.xml file located under <machine-agent-install-dir>/conf folder

3) Output of command listed here

 

ps -ef |grep "machine" 

 

4) Screenshot of what you see on controller UI

 

Thanks

Rajesh

Highlighted
New Poster

Re: Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

Has this been resolved or responded to? I am having the same problem with both the Saas solution and the on premise controller. I am using the trial version.

New Poster

Re: Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

I am a new user, facing the same issue.

 

User.Status: Trail-user (SaaS)

OS: Win10

JAva: 1.8

 

[system-thread-0] 01 Jun 2017 00:18:57,192  WARN RegistrationTask - Encountered error during registration. Will retry in 60 seconds.
[system-thread-0] 01 Jun 2017 00:18:57,194 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] 01 Jun 2017 00:19:25,133 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] 01 Jun 2017 00:19:25,136 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] 01 Jun 2017 00:19:25,137 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/logging/ to see if it is readable.
[UriConfigPoller] 01 Jun 2017 00:19:25,138 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/ to see if it is readable.
[UriConfigPoller] 01 Jun 2017 00:19:55,142 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] 01 Jun 2017 00:19:55,144 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] 01 Jun 2017 00:19:55,145 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/logging/ to see if it is readable.
[UriConfigPoller] 01 Jun 2017 00:19:55,145 DEBUG UriConfigProvider - Checking uri file:/C:/Users/wunsch/git/aem-demo-machine/demos/machineagent/conf/ to see if it is readable.
[system-thread-0] 01 Jun 2017 00:19:55,244 DEBUG RegistrationTask - Running registration task

 

AppDynamics Team

Re: Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

Hi,

 

401 Error code indicates that either account name or account access key might not be configured. Even if you configure them, they could be wrong and hence you have encountered HTTP 401

 

Could you please send us following details to debug this issue.

 

1) controller-info.xml file located under <machine-agent-install>/conf folder

2) Zip up machine agent logs

 

Thanks

Rajesh

New Poster

Re: Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

Hi Rajesh,
Please find the files requested attached.
Cheers
Robert
AppDynamics Team

Re: Agent RegistrationTask - Encountered error during registration (Version 4.3.0.3, build 147)

Hi Robert,

 

Thanks for the update. But unfortunately we didnot find any attachments as a part of your update. Could you please enclose them.

 

Thanks

Rajesh