Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

How to resolve Analytics Agent failing to connect to the Controller registration endpoint

Problem

 

 Within the Analytics Agent logs, the following error message is shown:

 

[2017-07-24T15:22:17,856+01:00]  [ERROR]  [analytics-agent-sync-thread-0]  [c.a.a.agent.sync.ErrorMessageHelper]  Analytics agent failed to connect to the controller registration endpoint.
com.appdynamics.analytics.shared.rest.exceptions.ClientException: Could not execute request to https:/rest/analytics/agent/register
	at com.appdynamics.analytics.shared.rest.client.utils.GenericHttpRequestBuilder.getResponse(GenericHttpRequestBuilder.java:234) ~[analytics-shared-rest.jar:na]
	at com.appdynamics.analytics.shared.rest.client.utils.GenericHttpRequestBuilder.executeAndReturnRawResponseString(GenericHttpRequestBuilder.java:248) ~[analytics-shared-rest.jar:na]
	at com.appdynamics.analytics.agent.sync.registration.DefaultAgentRegistrationClient.register(DefaultAgentRegistrationClient.java:59) ~[analytics-agent.jar:na]
	at com.appdynamics.analytics.agent.sync.registration.RegistrationChannelManager.sync(RegistrationChannelManager.java:89) ~[analytics-agent.jar:na]
	at com.appdynamics.analytics.agent.sync.AgentSyncLifecycleManager$SyncRunner.run(AgentSyncLifecycleManager.java:96) [analytics-agent.jar:na]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_111]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_111]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_111]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_111]
	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
Caused by: org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: https:/rest/analytics/agent/register
	at org.apache.http.impl.client.CloseableHttpClient.determineTarget(CloseableHttpClient.java:94) ~[httpclient-4.5.1.jar:4.5.1]
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[httpclient-4.5.1.jar:4.5.1]
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107) ~[httpclient-4.5.1.jar:4.5.1]
	at com.appdynamics.analytics.shared.rest.client.utils.GenericHttpRequestBuilder.getResponse(GenericHttpRequestBuilder.java:232) ~[analytics-shared-rest.jar:na]
	... 9 common frames omitted

 

The error indicates an issue with the Controller endpoint.

 

After investigating the URL of the endpoint, the endpoint is not taken from the Analytics Agent property ad.controller.url.

 

Could not execute request to https:/rest/analytics/agent/register

 

This property is located in analytics-agent/conf/analytics-agent.properties file, or for Machine Agents, MachineAgent/monitors/analytics-agent/conf/analytics-agent.properties.

 

 

Two potential causes for this issue:

 

1. The user did not set the property ad.controller.url within the analytics-agent.properties file.

2. The Controller endpoint contains underscores or other special characters.

For example https://example_controller.saas.appdynamics.com

 

Solution

 

If the property ad.controller.url was not set within the property file, the user must set the property ad.controller.url in the file analytics-agent.properties and then restart the Analytics Agent.

 

If the Controller endpoint contains special characters, the user must set the property ad.controller.url in in the property file, as in the example below, then restart the Analytics Agent. 

 

ad.controller.url='https://example_controller.saas.appdynamics.com'
*Make sure to wrap the URL in single quotes.

 

Version history
Revision #:
5 of 5
Last update:
‎09-22-2017 03:17 PM
Updated by:
 
Labels (2)
0 Kudos