cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Java agent unable to connect to saas controller

Naveen.Reddy
New Poster

Hello Team,

I'm using docker image of tomcat to deploy an spring boot app and configured the java agent as per instructions.
All though I see the following message

[AD Agent init] 02 Nov 2023 13:30:10,183 INFO JavaAgent - Started AppDynamics Java Agent Successfully.

Right after that I see the following error. I replaced the first part of saas controller name to test to sanitise the original url. There's no proxy in my case. Not sure what is happening


AD Thread Pool-Global0] 02 Nov 2023 13:19:18,496 ERROR ConfigurationChannel - Fatal transport error while connecting to URL [/controller/instance/0/applicationConfiguration]: java.net.UnknownHostException: https://test.saas.appdynamics.com : Name or service not known
[AD Thread Pool-Global0] 02 Nov 2023 13:19:18,496 WARN ConfigurationChannel - Could not connect to the controller/invalid response from controller, cannot get initialization information, controller host [https://test.saas.appdynamics.com ], port[443], exception [Fatal transport error while connecting to URL [/controller/instance/0/applicationConfiguration]]
[AD Thread Pool-Global0] 02 Nov 2023 13:19:18,496 WARN AgentErrorProcessor - Agent error occurred, [name,transformId]=[com.singularity.CONFIG.ConfigurationChannel - java.net.UnknownHostException,2147483647]
[AD Thread Pool-Global0] 02 Nov 2023 13:19:18,496 WARN AgentErrorProcessor - 3 instance(s) remaining before error log is silenced
[AD Thread Pool-Global0] 02 Nov 2023 13:19:18,496 ERROR ConfigurationChannel - Exception: https://test.saas.appdynamics.com : Name or service not known
java.net.UnknownHostException: https://test.saas.appdynamics.com : Name or service not known
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[?:1.8.0_212]
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929) ~[?:1.8.0_212]
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324) ~[?:1.8.0_212]
at java.net.InetAddress.getAllByName0(InetAddress.java:1277) ~[?:1.8.0_212]
at java.net.InetAddress.getAllByName(InetAddress.java:1193) ~[?:1.8.0_212]
at java.net.InetAddress.getAllByName(InetAddress.java:1127) ~[?:1.8.0_212]
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:112) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.13.jar:4.5.13]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) ~[httpclient-4.5.13.jar:4.5.13]
at com.singularity.ee.util.httpclient.SimpleHttpClientWrapper.executeHttpOperation(SimpleHttpClientWrapper.java:302) ~[appagent.jar:?]
at com.singularity.ee.util.httpclient.SimpleHttpClientWrapper.executeHttpOperation(SimpleHttpClientWrapper.java:217) ~[appagent.jar:?]
at com.singularity.ee.rest.RESTRequest.sendRequestTracked(RESTRequest.java:395) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.rest.RESTRequest.sendRequest(RESTRequest.java:337) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.rest.controller.request.AControllerRequest.sendRequest(AControllerRequest.java:129) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.rest.controller.request.ABinaryControllerRequest.sendRequest(ABinaryControllerRequest.java:36) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.agent.appagent.kernel.config.xml.ConfigurationChannel.registerApplicationServer(ConfigurationChannel.java:1437) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.agent.appagent.kernel.config.xml.ConfigurationChannel.access$100(ConfigurationChannel.java:122) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.agent.appagent.kernel.config.xml.ConfigurationChannel$UnregisteredConfigurationState.nextTransition(ConfigurationChannel.java:785) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.agent.appagent.kernel.config.xml.ConfigurationChannel.refreshConfiguration(ConfigurationChannel.java:555) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.agent.appagent.kernel.config.xml.XMLConfigManager$AgentConfigurationRefreshTask.run(XMLConfigManager.java:653) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.util.javaspecific.scheduler.AgentScheduledExecutorServiceImpl$SafeRunnable.run(AgentScheduledExecutorServiceImpl.java:122) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_212]
at com.singularity.ee.util.javaspecific.scheduler.ADFutureTask$Sync.innerRunAndReset(ADFutureTask.java:335) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.util.javaspecific.scheduler.ADFutureTask.runAndReset(ADFutureTask.java:152) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor$ADScheduledFutureTask.access$101(ADScheduledThreadPoolExecutor.java:119) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor$ADScheduledFutureTask.runPeriodic(ADScheduledThreadPoolExecutor.java:206) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.util.javaspecific.scheduler.ADScheduledThreadPoolExecutor$ADScheduledFutureTask.run(ADScheduledThreadPoolExecutor.java:236) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor$Worker.runTask(ADThreadPoolExecutor.java:694) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at com.singularity.ee.util.javaspecific.scheduler.ADThreadPoolExecutor$Worker.run(ADThreadPoolExecutor.java:726) ~[appagent.jar:Server Agent #23.10.0.35234 v23.10.0 GA compatible with 4.4.1.0 r67092cab6cbe60eed5a0453a32f699ca06e301e7 release/23.10.0]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]

1 REPLY 1

Ryan.Paredez
Community Manager

Hi @Naveen.Reddy,

Unfortunately, your post was flagged as spam and has just been released into the Community for visibility. Have you happened to find any new info or a solution since posting?


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.