cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Amit.Jha
AppDynamics Team (Retired)

Symptoms

 The Analytics Agent startup fails with the following error in the Analytics Agent logs:

 

[2017-06-02T13:09:47,657+02: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://<controller host>/rest/analytics/agent/register
...
...
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

Diagnosis

The issue occurs when using a self-signed certificate for the Controller.

 

The Analytics Agent uses a truststore for the JRE to validate the certificate of the connecting server. The truststore does not have self-signed certificates added to the store by default.

 

Solution

Import the client certificate to the JRE truststore, which is located in the Java directory used by the Analytics Agentby default.

 

Example: JAVA_HOME/lib/security/cacerts

 

Version history
Last update:
‎03-01-2019 10:33 AM
Updated by:
Join Us On December 10
Learn how Splunk and AppDynamics are redefining observability


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here