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

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

srinivas.kr
Explorer

[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.

1 REPLY 1

Naoto.Yamamoto
AppDynamics Team

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


Thanks,
Naoto Yamamoto




Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.