Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot start Machine Agent - Could not resolve local hostname

Explorer

Cannot start Machine Agent - Could not resolve local hostname

Any suggestions?

 

Amazon EC2 Linux server. 

 

$MACHINE_AGENT_HOME/jre/bin/java -jar $MACHINE_AGENT_HOME/machineagent.jar
Using Java Version [1.8.0_162] for Agent
Using Agent Version [Machine Agent v4.5.9.2096 GA compatible with 4.4.1.0 Build Date 2019-03-19 19:13:12]
[INFO] Agent logging directory set to: [/home/ec2-user/machine-agent]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Could not start up the machine agent due to: Could not resolve local hostname
Please see startup.log in the current working directory for details.

startup.log:

 

 

Tue May 21 23:41:37 AST 2019
com.google.inject.CreationException: Unable to create injector, see the following errors:

1) Could not resolve local hostname
  while locating com.appdynamics.agent.sim.configuration.bootstrap.HostnameProvider
  at com.appdynamics.agent.sim.configuration.bootstrap.BootstrapConfigurationModule.configure(BootstrapConfigurationModule.java:82)
  while locating java.lang.String annotated with @com.appdynamics.sim.agent.extensions.api.Hostname()
    for parameter 0 at com.appdynamics.agent.sim.registration.MachineAgentHostnameProvider.<init>(MachineAgentHostnameProvider.java:26)
  while locating com.appdynamics.agent.sim.registration.MachineAgentHostnameProvider
  while locating java.util.Map<java.lang.String, java.lang.String> annotated with @com.google.inject.multibindings.Element(setName=@com.appdynamics.agent.sim.properties.InitialMachineProperties,uniqueId=23, type=MULTIBINDER, keyType=)
  at com.appdynamics.agent.sim.properties.MachinePropertiesModule.configure(MachinePropertiesModule.java:41) (via modules: com.appdynamics.agent.sim.properties.MachinePropertiesModule -> com.google.inject.multibindings.Multibinder$RealMultibinder)
  while locating java.util.Set<java.util.Map<java.lang.String, java.lang.String>> annotated with @com.appdynamics.agent.sim.properties.InitialMachineProperties()
    for parameter 1 at com.appdynamics.agent.sim.properties.MachinePropertiesProvider.<init>(MachinePropertiesProvider.java:35)
  while locating com.appdynamics.agent.sim.properties.MachinePropertiesProvider
  at com.appdynamics.agent.sim.properties.MachinePropertiesModule.configure(MachinePropertiesModule.java:32)
  while locating com.appdynamics.sim.agent.extensions.api.machines.MachineProperties
    for parameter 6 at com.appdynamics.agent.sim.registration.RegistrationTask.<init>(RegistrationTask.java:105)
  at com.appdynamics.agent.sim.registration.RegistrationModule.configure(RegistrationModule.java:22)
  while locating com.appdynamics.agent.sim.registration.RegistrationTask

1 error
  at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:466)
  at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:184)
  at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
  at com.google.inject.Guice.createInjector(Guice.java:96)
  at com.google.inject.Guice.createInjector(Guice.java:73)
  at com.appdynamics.voltron.FrameworkBootstrap.createInjector(FrameworkBootstrap.java:107)
  at com.appdynamics.voltron.FrameworkBootstrap.start(FrameworkBootstrap.java:162)
  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:61)
  at com.appdynamics.agent.sim.bootstrap.Bootstrap.main(Bootstrap.java:45)

 

Cannot start Machine Agent - Could not resolve local hostname
1 REPLY 1
Explorer

Re: Cannot start Machine Agent - Could not resolve local hostname

I was able to resolve this issue by changing the hostname to something that resolved properly through a DNS resolution.