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

Cannot start Machine agent in Ubuntu

kumar.payla
Producer

Pease check, Thanks

 

root@ubuntu:/opt/machineagent# ./bin/machine-agent
Using java executable at /usr/bin/java
Using Java Version [11.0.7] for Agent
Using Agent Version [Machine Agent v20.5.1-2635 GA compatible with 4.4.1.0 Build Date 2020-05-27 21:53:51]
ERROR StatusLogger Reconfiguration failed: No configuration found for '8bcc55f' at 'null' in 'null'
[INFO] Agent logging directory set to: [/opt/machineagent/logs]
Could not start up the machine agent due to: javax/annotation/PreDestroy
Please see startup.log in the current working directory for details.

 

root@ubuntu:/opt/machineagent# cat startup.log
Thu Jun 11 09:30:03 UTC 2020
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
at com.appdynamics.voltron.AppLifecycleModule.<clinit>(AppLifecycleModule.java:53)
at com.appdynamics.voltron.FrameworkBootstrap.start(FrameworkBootstrap.java:157)
at com.appdynamics.voltron.FrameworkBootstrap.startAndRun(FrameworkBootstrap.java:120)
at com.appdynamics.voltron.FrameworkApplication.start(FrameworkApplication.java:31)
at com.appdynamics.agent.sim.Main.startSafe(Main.java:62)
at com.appdynamics.agent.sim.bootstrap.Bootstrap.main(Bootstrap.java:45)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 6 more

1 REPLY 1

kumar.payla
Producer

 

 

It is supporting only for java 8 , once I changed it is working fine. 

 

root@ubuntu:/opt/machineagent# ./bin/machine-agent
Using java executable at /usr/bin/java
Using Java Version [1.8.0_252] for Agent
Using Agent Version [Machine Agent v20.5.1-2635 GA compatible with 4.4.1.0 Build Date 2020-05-27 21:53:51]
ERROR StatusLogger Reconfiguration failed: No configuration found for '33909752' at 'null' in 'null'
[INFO] Agent logging directory set to: [/opt/machineagent/logs]
Machine Agent Install Directory :/opt/machineagent
Machine Agent Temp Directory :/opt/machineagent/tmp
Tasks Root Directory :/opt/machineagent/controlchannel
Redirecting all logging statements to the configured logger
Started AppDynamics Machine Agent Successfully.