Java (Java Agent, Installation, JVM, and Controller Installation)

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to run Jetty pre-built docker image

Wanderer

Unable to run Jetty pre-built docker image

Hi,

 

I am trying to test out the pre-built Jetty docker image, but getting error. 

 

Here is my docker run command.

 

docker run -p 3030:3030 -e APPDYNAMICS_CONTROLLER_HOST_NAME=<host name> -e APPDYNAMICS_CONTROLLER_PORT=<port> -e APPDYNAMICS_CONTROLLER_SSL_ENABLED=true -e APPDYNAMICS_AGENT_APPLICATION_NAME=<App name> -e APPDYNAMICS_AGENT_TIER_NAME=<Tier name> -e APPDYNAMICS_AGENT_ACCOUNT_NAME=<Account Name> -e APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=<access key> -e APPDYNAMICS_AGENT_NODE_NAME=121 store/appdynamics/java:4.3_jetty9-jre8 

 

I am getting below error

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /opt/appdynamics/ver4.3.7.1/logs/121/agent.2019_05_01__17_07_26.0.log (No such file or directory)

 

Complete log stack is given below.

 

Full Agent Registration Info Resolver found env variable [APPDYNAMICS_AGENT_APPLICATION_NAME] for application name [****]
Full Agent Registration Info Resolver found env variable [APPDYNAMICS_AGENT_TIER_NAME] for tier name [***]
Full Agent Registration Info Resolver found env variable [APPDYNAMICS_AGENT_NODE_NAME] for node name [121]
Full Agent Registration Info Resolver using selfService [false]
Full Agent Registration Info Resolver using selfService [false]
Full Agent Registration Info Resolver using application name [****]
Full Agent Registration Info Resolver using tier name [****]
Full Agent Registration Info Resolver using node name [121]
Install Directory resolved to[/opt/appdynamics]
[Thread-0] Wed May 01 17:07:26 UTC 2019[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver is running
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Full Agent Registration Info Resolver found env variable [APPDYNAMICS_AGENT_APPLICATION_NAME] for application name [*****]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Full Agent Registration Info Resolver found env variable [APPDYNAMICS_AGENT_TIER_NAME] for tier name [*****]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Full Agent Registration Info Resolver found env variable [APPDYNAMICS_AGENT_NODE_NAME] for node name [121]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [false]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [false]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [*****]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [****]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [121]
[Thread-0] Wed May 01 17:07:26 UTC 2019[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver finished running
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Agent runtime directory set to [/opt/appdynamics/ver4.3.7.1]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: AgentInstallManager - Agent node directory set to [121]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: JavaAgent - Using Java Agent Version [Server Agent v4.3.7.1 GA #15472 r666c888950068365d8a7d2ec64268aedb53d9b87 13534-4.3.7.next-analytics]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: JavaAgent - Running IBM Java Agent [No]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: JavaAgent - Java Agent Directory [/opt/appdynamics/ver4.3.7.1]
[Thread-0] Wed May 01 17:07:26 UTC 2019[INFO]: JavaAgent - Java Agent AppAgent directory [/opt/appdynamics/ver4.3.7.1]
Agent Logging Directory [/opt/appdynamics/ver4.3.7.1/logs/121]
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /opt/appdynamics/ver4.3.7.1/logs/121/agent.2019_05_01__17_07_26.0.log (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at com.singularity.util.org.apache.log4j.FileAppender.setFile(FileAppender.java:300)
at com.singularity.util.org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:185)
at com.singularity.util.org.apache.log4j.AppDynamicsRollingFileAppender.setFile(AppDynamicsRollingFileAppender.java:92)
at com.singularity.util.org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
at com.singularity.util.org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:340)
at com.singularity.util.org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:268)
at com.singularity.util.org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:157)
at com.singularity.util.org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:170)
at com.singularity.util.org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:477)
at com.singularity.util.org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:393)
at com.singularity.util.org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:876)
at com.singularity.util.org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:751)
at com.singularity.util.org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:646)

 

Can someone let me know if I am missing something?

 

Thanks,

Sumit 

Unable to run Jetty pre-built docker image