AppD Archive

Internal Server Error

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I'm new to aoodynamics and I'm trying to do a small PoC (using SaaS). I followed the instructions and installed the agent under a brand new tomcat 7 install.

When I start it, I can see that the agent started successfully ("Started AppDynamics Java Agent Successfully.")

But nothing happens. The dashboard is empty. Looking to log files, I can see the followinf error:

[AD Thread Pool-Global1] 21 Mai 2014 20:20:21,814  INFO ConfigurationChannel - Detected node meta info: [Name:ProcessID, Value:4196, Name:appdynamics.ip.addresses, Value:172.27.021.43, Name:supportsDevMode, Value:true]
[AD Thread Pool-Global1] 21 Mai 2014 20:20:21,814  INFO ConfigurationChannel - Sending Registration request with: Application Name [flex], Tier Name [gui], Node Name [Node 387d], Host Name [MXLXP13075] Node Unique Local ID [Node 387d], Version [Server Agent v3.8.0.1 GA #2014-04-07_23-46-01 rfdfd4984dbabe64584c79891f6f823f81c22755b 49-3.8.0.next]
[AD Thread Pool-Global1] 21 Mai 2014 20:20:22,096 ERROR ConfigurationChannel - HTTP Request failed: HTTP/1.1 500 Internal Server Error
[AD Thread Pool-Global1] 21 Mai 2014 20:20:22,096  WARN ConfigurationChannel - Could not connect to the controller/invalid response from controller, cannot get initialization information, controller host [cardifbr.saas.appdynamics.com], port[80], exception [null]
[AD Thread Pool-Global1] 21 Mai 2014 20:20:22,096 ERROR ConfigurationChannel - Exception: NULL

Usefull info:

[Thread-0] 21 Mai 2014 19:46:45,619  INFO JavaAgent - Java Agent Directory [C:\opt\tools\appdynamics]
[Thread-0] 21 Mai 2014 19:46:45,619  INFO JavaAgent - Using Java Agent Version [Server Agent v3.8.0.1 GA #2014-04-07_23-46-01 rfdfd4984dbabe64584c79891f6f823f81c22755b 49-3.8.0.next]
[Thread-0] 21 Mai 2014 19:46:45,619  INFO AgentKernel - Starting Java Agent at Wed May 21 19:46:45 BRT 2014 ...
[Thread-0] 21 Mai 2014 19:46:45,635  INFO AgentKernel - JVM Runtime:
    java.home=C:\systems_development\java\jdk1.7.0_45\jre
    java.vm.vendor=Oracle Corporation
    java.vm.name=Java HotSpot(TM) Client VM
    java.runtime.version=1.7.0_45-b18
[Thread-0] 21 Mai 2014 19:46:45,635  INFO AgentKernel - OS Runtime:
    os.name=Windows XP
    os.arch=x86
    os.version=5.1

[Thread-0] 21 Mai 2014 19:46:45,698  INFO XMLConfigManager - XML Controller Info Resolver found valid config [Controller Host: myhost.saas.appdynamics.com; Controller Port: 80; ssl-enabled: false]

Any help is welcome,

TIA,

Roberto

0 Karma

Arun_Dasetty
Super Champion

Hi Roberto,

We have access to your saas controller and could see no applications registered, in reference to provided logs we see too different controller host details "cardifbr.saas.appdynamics.com and myhost.saas.appdynamics.com" in logs which should not be , and it should be only cardifbr.saas.appdynamics.com one controller host for <controller-host> xml element in C:\opt\tools\appdynamics\conf\controller-info.xml file

Can you please make sure you have updated controller-info.xml as below for the corresponding xml elements and restart JVM, make sure you are not passing any additional -Dappdynamics jvm args apart from -javaagent  to make sure you are passing wrong values are not passed to tomcat startup script which will override values in xml file at server startup:

====================


<controller-host>cardifbr.saas.appdynamics.com</controller-host>
<controller-port>443</controller-port>
<controller-ssl-enabled>true</controller-ssl-enabled>
<application-name>flex</application-name>
<tier-name>gui</tier-name>
<node-name>Node 387d</node-name>


 
<account-name></account-name>
<account-access-key></account-access-key>

======================

For <account-name></account-name> and <account-access-key></account-access-key> xml elements provide the account name and access key values shown in saas UI as listed Click Settings icon ->  License -> Account screen, striked values for security purpose:
image.png

Save changes to xml file and restart tomcat server and see how it goes. Please provide the logs under C:\opt\tools\appdynamics\logs path if issue still persists.

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi,

Thanks about the reply. The thing about cardifbr and myhost is that I intentionally change it. I'm not allowed expose my company in public bulletin boards. It's just a small thing, but I must follow the rules.

The controller-info.xml was generated by AppDynamics site. Anyway, I verified it as you told and inside the controller-info.xml the controller-host it's correct. Both account-name and account-access-key are also correct.

I restarted everyhting, incluind generating a new agent from agent download wizard, but the problem persists. Same error.

Unfortunatelly, I cannot attach the logs. I could do it through a private channel, but not through this channel.

TIA,

Bob

0 Karma

Arun_Dasetty
Super Champion

Hi,

Please be sure that the agent logs does not contain any security related information of your webapp,  you can feel free to attach logs,  If you still have concern, please send the logs to akumar@appdynamics.com or paste the latest agent stack trace logs snippet in this post.

Also you do not need download new agent, updating existing controller-info.xml file should have fixed after restart , did you changed the agent directory after downloading the new agent? is that updating in tomcat startup script as well ?

Keep us posted the logs requested to assist you better?

We request you to go through the following doc once:

http://docs.appdynamics.com/display/PRO14S/Quick+Install+for+the+App+Agent+for+Java

http://docs.appdynamics.com/display/PRO14S/Install+the+App+Agent+for+Java

Regards,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I'm facing similar issue with my controller. I can send the full log and controller-info.xml in the private message. There is a Bluecoat proxy in my environemnt. Can you help?

[AD Thread Pool-Global0] 12 apr 2016 12:24:48,917 ERROR ConfigurationChannel - Exception: NULL
[AD Thread Pool-Global1] 12 apr 2016 12:25:48,918 INFO ConfigurationChannel - Filtering data with key = [weblogic.security.SSL.trustedCAKeyStore]
[AD Thread Pool-Global1] 12 apr 2016 12:25:48,918 INFO ConfigurationChannel - Filtering data with key = [weblogic.management.password]
[AD Thread Pool-Global1] 12 apr 2016 12:25:48,918 INFO ConfigurationChannel - Filtering data with key = [weblogic.security.SSL.trustedCAKeyStore]
[AD Thread Pool-Global1] 12 apr 2016 12:25:48,919 INFO ConfigurationChannel - Detected node meta info: [Name:ProcessID, Value:28819, Name:appdynamics.ip.addresses, Value:fe80:0:0:0:250:56ff:fe90:37c2%2,10.150.115.206, Name:supportsDevMode, Value:true]
[AD Thread Pool-Global1] 12 apr 2016 12:25:48,919 INFO ConfigurationChannel - Sending Registration request with: Application Name [---], Tier Name [---], Node Name [---], Host Name [---] Node Unique Local ID [weblogic_instance_test], Version [Server Agent v4.1.8.5 GA #10236 r8eca32e4695e8f6a5902d34a66bfc12da1e12241 45-4.1.8.next-controller]
[AD Thread Pool-Global1] 12 apr 2016 12:25:48,944 ERROR ConfigurationChannel - HTTP Request failed: HTTP/1.1 500 Internal Server Error
[AD Thread Pool-Global1] 12 apr 2016 12:25:48,945 WARN ConfigurationChannel - Could not connect to the controller/invalid response from controller, cannot get initialization information, controller host [---], port[80], exception [null]

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...