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!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...