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 Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...