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

When enabling EUM for an application from the EUM configuration window, the error "The server encountered an internal error () that prevented it from fulfilling this request" appears

 

In this article...

 

Symptoms: Error in the EUM configuration window

When trying to enable EUM for an application from the EUM configuration window, we get the following error:

Error  The server encountered an internal error () that prevented it from fulfilling this request.Error The server encountered an internal error () that prevented it from fulfilling this request.

 

Diagnosis: Analyze the Controller machine's server.log 

After analyzing the server.log file on the Controller machine, we can see the exceptions below while connecting to EUM:

Communication failure with service (https://agg.eum-appdynamics.com/v2/account/xxxxxxxxxxxxxxxxxxxx/license/terms): javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

The error above occurs when the Controller trust store does not have the EUM client certificate, resulting in a failed validation.

 

Solution: Import a new EUM certificate to the Controller trust store

Follow the steps below to download the EUM certificate and import it to the Controller trust store:

  1. Access the following URL in the browser: 
    https://agg.eum-appdynamics.com/eumaggregator/get-version
    • For an on-premise EUM Server, access the below URL:
    • https://<EUMHost>:7002/eumaggregator/get-version
    • If you are using any alternate port for HTTPS, change the value accordingly.

  2. Click on the lock icon on the URL bar to display the certificate details.

  3. Export the certificate for the EUM Server and transfer it to the Controller host.
    • To export the certificate from the command line, run the following command to export the certificate into a file:
      keytool -J-Dhttps.proxyHost=<proxy_host> -J-Dhttps.proxyPort=<proxy_port> -printcert -rfc -sslserver <eum_host>:<eum_ssl_port> 2>/dev/null > certs.pem​
    • If you are not using a proxy server to connect from the controller to the EUM server, you can avoid the parameters for the proxy host and ports:
      -J-Dhttps.proxyHost=<proxy_host> -J-Dhttps.proxyPort=<proxy_port>​
    • The certs.pem file generated using this command may contain multiple certs presented by the server (server cert, proxy cert, etc).

    • Save the individual certificate into a separate file, such as file1.pem, file2.pem, etc.

    • The individual certs will be enclosed as such:

      -----BEGIN CERTIFICATE-----
      .....
      -----END CERTIFICATE-----​
  4. Navigate to the <AppDynamicsHome>/appserver/glassfish/domains/domain1/config directory. Use the following key tool command to import the certificate to the Controller trust store:
    $JAVA_HOME/bin/keytool -import -trustcacerts -alias <alias> -file <certificate file> -keystore cacerts.jks​

     

  5. Run the command above for each of the certificates you saved in step 3.

  6. Restart the app server.

 

Comments
Infra Support.EPFO
New Poster

Dear Amit,

Can you provide the guide for how to view the browser app in user experience in AppDynamics?

2. Before using the user experience dashboard what do we need(such as any configuration)?

email [Redacted] 

^ Edited by @Ryan.Paredez to redact email. Please do not share your email address on Community posts for security and privacy concerns. Please use the Community Private Message feature to share/discuss anything in private. 

 

Noopur.Tibdiwal
AppDynamics Team

@Infra Support.EPFO  :

The JavaScript Agent for Browser RUM must be inserted into the headers of the pages for which you want to see these metrics. This process is called injection. There are several ways to accomplish this. See Inject the JavaScript Agent

https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring

https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring/browser-monitoring

https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring/browser-monitoring/browser-real...

 

 

 

 

Version history
Last update:
‎04-14-2023 08:06 PM
Updated by:
On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

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


Read the blog here