I move a little foward, I had to add set <node-name>node-demo</node-name> in controller-config in order to have logs in
javaagent_home/logs/node-demo
I setup debug level to javaagent_home/conf/logging/log4j.xml and get the following trace in javaagent_home/logs/node-demo/agent.2015_09_28__09_44_27.0.log
:
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,536 INFO ConfigurationChannel - Detected node meta info: [Name:ProcessID, Value:11808, Name:appdynamics.ip.addresses, Value:fe80:0:0:0:f816:3eff:fe1b:8178%2,10.0.2.18, Name:supportsDevMode, Value:true]
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,536 INFO ConfigurationChannel - Sending Registration request with: Application Name [tomcat], Tier Name [webapps], Node Name [node-demo], Host Name [demo-prod-test] Node Unique Local ID [node-demo], Version [Server Agent v4.1.4.1 GA #9445 r8c303cd6d7ab2d54c3fa4812241a95bc5c6e59fa 28-4.1.4.next-build]
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,541 DEBUG HTTPLogger - CookieSpec selected: best-match
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,542 DEBUG HTTPLogger - Connection request: [route: {}->http://10.0.2.18:8090][total kept alive: 0; route allocated: 0 of 4; total allocated: 0 of 20]
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,542 DEBUG HTTPLogger - Connection leased: [id: 3][route: {}->http://10.0.2.18:8090][total kept alive: 0; route allocated: 1 of 4; total allocated: 1 of 20]
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,542 DEBUG HTTPLogger - Opening connection {}->http://10.0.2.18:8090
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,543 DEBUG HTTPLogger - Connecting to /10.0.2.18:8090
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,544 DEBUG HTTPLogger - Connection established 10.0.2.18:33467<->10.0.2.18:8090
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,544 DEBUG HTTPLogger - Executing request POST /controller/instance/0/applicationConfiguration HTTP/1.1
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,545 DEBUG HTTPLogger - Target auth state: FAILURE
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,545 DEBUG HTTPLogger - Proxy auth state: UNCHALLENGED
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,545 DEBUG HTTPLogger - http-outgoing-3 >> POST /controller/instance/0/applicationConfiguration HTTP/1.1
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,545 DEBUG HTTPLogger - http-outgoing-3 >> Content-Length: 9078
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,545 DEBUG HTTPLogger - http-outgoing-3 >> Content-Type: application/singularity-native-serializer
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,545 DEBUG HTTPLogger - http-outgoing-3 >> Host: 10.0.2.18:8090
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,545 DEBUG HTTPLogger - http-outgoing-3 >> Connection: Keep-Alive
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,545 DEBUG HTTPLogger - http-outgoing-3 >> User-Agent: Apache-HttpClient/4.3.3 (java 1.5)
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,545 DEBUG HTTPLogger - http-outgoing-3 >> Accept-Encoding: gzip,deflate
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,546 DEBUG HTTPLogger - http-outgoing-3 >> "POST /controller/instance/0/applicationConfiguration HTTP/1.1[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,546 DEBUG HTTPLogger - http-outgoing-3 >> "Content-Length: 9078[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,546 DEBUG HTTPLogger - http-outgoing-3 >> "Content-Type: application/singularity-native-serializer[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,546 DEBUG HTTPLogger - http-outgoing-3 >> "Host: 10.0.2.18:8090[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,546 DEBUG HTTPLogger - http-outgoing-3 >> "Connection: Keep-Alive[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,546 DEBUG HTTPLogger - http-outgoing-3 >> "User-Agent: Apache-HttpClient/4.3.3 (java 1.5)[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,546 DEBUG HTTPLogger - http-outgoing-3 >> "Accept-Encoding: gzip,deflate[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,549 DEBUG HTTPLogger - http-outgoing-3 << "HTTP/1.1 401 Unauthorized[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,549 DEBUG HTTPLogger - http-outgoing-3 << "X-Powered-By: Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.2.2 Java/Oracle Corporation/1.7)[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,549 DEBUG HTTPLogger - http-outgoing-3 << "WWW-Authenticate: Basic realm="controller_realm"[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,549 DEBUG HTTPLogger - http-outgoing-3 << "Content-Type: text/html[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,549 DEBUG HTTPLogger - http-outgoing-3 << "Content-Length: 973[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,549 DEBUG HTTPLogger - http-outgoing-3 << "Date: Mon, 28 Sep 2015 07:47:29 GMT[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,549 DEBUG HTTPLogger - http-outgoing-3 << "[\r][\n]"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,549 DEBUG HTTPLogger - http-outgoing-3 << "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Error report</title><style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - </h1><hr/><p><b>type</b> Status report</p><p><b>message</b></p><p><b>description</b>This request requires HTTP authentication ().</p><hr/></body></html>"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,550 DEBUG HTTPLogger - http-outgoing-3 << HTTP/1.1 401 Unauthorized
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,550 DEBUG HTTPLogger - http-outgoing-3 << X-Powered-By: Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.2.2 Java/Oracle Corporation/1.7)
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,550 DEBUG HTTPLogger - http-outgoing-3 << WWW-Authenticate: Basic realm="controller_realm"
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,550 DEBUG HTTPLogger - http-outgoing-3 << Content-Type: text/html
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,550 DEBUG HTTPLogger - http-outgoing-3 << Content-Length: 973
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,550 DEBUG HTTPLogger - http-outgoing-3 << Date: Mon, 28 Sep 2015 07:47:29 GMT
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,550 DEBUG HTTPLogger - Connection can be kept alive indefinitely
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,550 DEBUG HTTPLogger - Authentication required
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,550 DEBUG HTTPLogger - 10.0.2.18:8090 requested authentication
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,551 ERROR ConfigurationChannel - HTTP Request failed: HTTP/1.1 401 Unauthorized
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,551 DEBUG HTTPLogger - http-outgoing-3: Shutdown connection
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,551 DEBUG HTTPLogger - Connection discarded
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,552 DEBUG HTTPLogger - http-outgoing-3: Close connection
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,552 DEBUG HTTPLogger - Connection released: [id: 3][route: {}->http://10.0.2.18:8090][total kept alive: 0; route allocated: 0 of 4; total allocated: 0 of 20]
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,552 WARN ConfigurationChannel - Could not connect to the controller/invalid response from controller, cannot get initialization information, controller host [10.0.2.18], port[8090], exception [null]
[AD Thread Pool-Global1] 28 Sep 2015 09:47:29,552 ERROR ConfigurationChannel - Exception: NULL
How can I set the credentials I set in the controller config so that the agent can talk with the controller ?
What is this NULL exception ?
Regards,
Philippe