Splunk AppDynamics

Cannot start Machine agent in Ubuntu

kumar_payla
Engager

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

Labels (1)
Tags (2)
1 Solution

kumar_payla
Engager

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.

View solution in original post

kumar_payla
Engager

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.

Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...