Splunk AppDynamics

JavaAgent start failed on Docker-Container

CommunityUser
Splunk Employee
Splunk Employee

Hello together,

I created a Docker container with the Java AppAgent (4.5.0.23604) inside. Also I uncomment the line "<appender-ref ref="AgentLogAppender"/>" in the file log4j-unknown.xml and the line "<AppenderRef ref="Console"/>" in the file log4j2-unknown.xml.

The container started in a kubernetes environment.

Logoutput:

Full Agent Registration Info Resolver using node name [unknown]
Install Directory resolved to[/opt/appdynamics]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver is running
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[INFO]: AgentInstallManager - Full Agent Registration Info Resolver found env variable [APPDYNAMICS_AGENT_APPLICATION_NAME] for application name [docker-poc]
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[INFO]: AgentInstallManager - Full Agent Registration Info Resolver found env variable [APPDYNAMICS_AGENT_TIER_NAME] for tier name [meins-navigation]
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [false]
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [false]
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [docker-poc]
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [meins-navigation]
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [unknown]
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver finished running
[Thread-0] Fri Aug 24 11:39:51 CEST 2018[INFO]: AgentInstallManager - Agent runtime directory set to [/opt/appdynamics/ver4.5.0.23604]
[Thread-0] Fri Aug 24 11:39:52 CEST 2018[INFO]: AgentInstallManager - Agent node directory set to [unknown]
[Thread-0] Fri Aug 24 11:39:52 CEST 2018[INFO]: JavaAgent - Using Java Agent Version [Server Agent #4.5.0.23604 v4.5.0 GA compatible with 4.4.1.0 r88b53d319a45abc58963be9d2d0824499a2c23dd release/4.5.0-release]
[Thread-0] Fri Aug 24 11:39:52 CEST 2018[INFO]: JavaAgent - Running IBM Java Agent [No]
Could not start Java Agent because unable to determine Tier Name or Node Name
Agent Logging Directory [/opt/appdynamics/ver4.5.0.23604/logs/unknown]
2018-08-24 11:39:52,869 INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
2018-08-24 11:39:52,922 ERROR Cannot access RandomAccessFile {}) java.io.FileNotFoundException: /opt/appdynamics/ver4.5.0.23604/logs/unknown/agent.2018_08_24__11_39_52.log (No such file or directory)

What am I doing wrong here?

With kind regards

Raphael

Labels (1)
0 Karma
1 Solution

Megha_Sharma
Explorer
Hi Raphael,
Nodename seems to be missing in the above code.
-Dappdynamics.agent.nodeName=<node name> This property seems to be missing when starting the Java Agent.
Could you try adding this property and running the code again. May be this could help.

Regards,
Megha

View solution in original post

iamryan
Community Manager
Community Manager

Hi @swayam.pattanayak,

Given how old this post is and it did not get a reply, you may want to contact AppD Support for more help at this time.

How do I submit a Support ticket? An FAQ 

0 Karma

Megha_Sharma
Explorer
Hi Raphael,
Nodename seems to be missing in the above code.
-Dappdynamics.agent.nodeName=<node name> This property seems to be missing when starting the Java Agent.
Could you try adding this property and running the code again. May be this could help.

Regards,
Megha

swayam_pattana1
New Member

Hi Megha,

I am getting the same error in agent logs. can you please let me know where to pass this argument.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...