Splunk AppDynamics

Getting the Unrecognized field "agent-runtime-dir" (class com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration) error

CommunityUser
Splunk Employee
Splunk Employee

[aims@mywiz1031 bin]$ ./java -jar /home/aims/machineagent.jar
Using Java Version [1.8.0_162] for Agent
Using Agent Version [Machine Agent v4.5.5.1784 GA compatible with 4.4.1.0 Build Date 2018-11-02 01:36:01]
[INFO] Agent logging directory set to: [/home/aims]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Unrecognized field "agent-runtime-dir" (class com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration), not marked as ignorable (57 known properties: "agent-config-update-interval", "main-config-timeout-millis", "proxyUsePreemptiveAuth", "sam-event-update-interval-millis", "proxyPort", "client-gzip-enabled", "agent-registration-interval", "controller-port", "docker-enabled", "agent-request-max-retry-period", "account-access-key", "dotnet-compatibility-mode", "bindMountOfHostRoot", "controller-keystore-filename", "force-agent-registration", "use-simple-hostname", "credential-store-filename", "account-name", "use-encrypted-credentials", "docker-engine-url", "sam-state-update-interval-millis", "controller-keystore-password", "proxyHost", "controller-host", "extensions-max-start-time", "credential-store-password", "asymmetric-key-password", "proxyPasswordFile", "sam-config-update-interval-millis", "asymmetric-key-alias", "controller-ssl-enabled", "agent-request-max-retries", "compatibility-mode", "use-ssl-client-auth", "proxyUsername", "application-name", "machine-path", "metric-aggregator-cache-expiration-seconds" [truncated]])
at [Source: java.io.StringReader@114a85c2; line: 84, column: 44] (through reference chain: com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration["agent-runtime-dir"])
Please see startup.log in the current working directory for details.
Could not log exception details to startup file. Showing on the console instead.
[aims@mywiz1031 bin]$ sudo su -
[sudo] password for aims:
Last login: Thu Nov 15 05:54:52 UTC 2018 on pts/8
[root@mywiz1031 ~]# pwd
/root
[root@mywiz1031 ~]# cd /home/aims/
[root@mywiz1031 aims]# cd jre
[root@mywiz1031 jre]# cd bin
[root@mywiz1031 bin]# pwd
/home/aims/jre/bin
[root@mywiz1031 bin]# ./java -jar /home/aims/machineagent.jar
Using Java Version [1.8.0_162] for Agent
Using Agent Version [Machine Agent v4.5.5.1784 GA compatible with 4.4.1.0 Build Date 2018-11-02 01:36:01]
[INFO] Agent logging directory set to: [/home/aims]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Unrecognized field "agent-runtime-dir" (class com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration), not marked as ignorable (57 known properties: "agent-config-update-interval", "main-config-timeout-millis", "proxyUsePreemptiveAuth", "sam-event-update-interval-millis", "proxyPort", "client-gzip-enabled", "agent-registration-interval", "controller-port", "docker-enabled", "agent-request-max-retry-period", "account-access-key", "dotnet-compatibility-mode", "bindMountOfHostRoot", "controller-keystore-filename", "force-agent-registration", "use-simple-hostname", "credential-store-filename", "account-name", "use-encrypted-credentials", "docker-engine-url", "sam-state-update-interval-millis", "controller-keystore-password", "proxyHost", "controller-host", "extensions-max-start-time", "credential-store-password", "asymmetric-key-password", "proxyPasswordFile", "sam-config-update-interval-millis", "asymmetric-key-alias", "controller-ssl-enabled", "agent-request-max-retries", "compatibility-mode", "use-ssl-client-auth", "proxyUsername", "application-name", "machine-path", "metric-aggregator-cache-expiration-seconds" [truncated]])
at [Source: java.io.StringReader@114a85c2; line: 84, column: 44] (through reference chain: com.appdynamics.agent.sim.configuration.bootstrap.DefaultBootstrapConfiguration["agent-runtime-dir"])
Please see startup.log in the current working directory for details.

Labels (1)
0 Karma

Naoto_Yamamoto
Path Finder

Hi Srinivas,

Thanks for posting the question on the Community. 

Could you try to remove the 'agent-runtime-dir' xml tag from the agent controller-info.xml file, and restart the agent to check the results?

If it does not work, could you try to put below jvm option to see the results?

-Dappdynamics.agent.runtime.dir

Also, could you share your machine agent version? 

Let me know if this helped you.

Many thanks,

Naoto

Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...