EM 12c, EM 13c: Enterprise Manager Cloud Control emctl start agent Fails with Error: Target Manager failed at Startup: targets.xml was rejected: loaded with a wrong agent token (Doc ID 1384366.1)

Last updated on MAY 03, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.

Symptoms

Enterprise Manager 12c Cloud Control Agent was installed using virtual hostname. Virtual name was set as alias for a physical server.
After the actual server hostname was changed, i.e. virtual name is made as alias for another physical server (not virtual hostname), the agent was unable to start.
Virtual Server Got new IP address.

$/AGENT_INST/bin/emctl start agent
fails with following exception

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Starting agent ...................... failed.
Target Manager failed at Startup: targets.xml was rejected: loaded with a wrong agent token

 

/AGENT_INST/sysman/log/emagent.nohup reports the following exception

----- Tue Mar 19 20:26:27 2013::6773::Auto tuning the agent at time Tue Mar
19 20:26:27 2013 ----- Picked up _JAVA_OPTIONS: -Djava.io.tmpdir=/perftest/tmp
log4j:ERROR Failed to flush writer,
java.io.IOException: No space left on device
        at java.io.FileOutputStream.writeBytes(Native Method)
        at java.io.FileOutputStream.write(FileOutputStream.java:282)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)

/AGENT_INST/sysman/log/gcagent.log reports the following exception

2013-03-19 20:26:59,390 [1:3305B9:main] INFO - agent status is being changed to INITIALIZING
2013-03-19 20:26:59,421 [1:3305B9] INFO - Agent is starting up
.....
2013-03-19 20:27:02,055 [1:3305B9] INFO - Invoking STARTUP_P1 on System Properties
2013-03-19 20:27:02,429 [1:3305B9] WARN - Unable to store AGENT_RESTART_COUNTER as a private property
java.io.IOException: No space left on device
        at java.io.FileOutputStream.writeBytes(Native Method)
......
oracle.sysman.gcagent.util.config.PrivateConfiguration.saveProperty(PrivateConfiguration.java:166)
        at oracle.sysman.gcagent.util.config.SystemProperties.updateRestartCounter(SystemProperties.java:429)

OR

/AGENT_INST/sysman/log/gcagent.log reports the following exceptions

2014-10-28 01:37:09,929 [1:main] ERROR - Agent failed to Startup for Target Manager in step 2
oracle.sysman.gcagent.tmmain.lifecycle.AgentStartupException: targets.xml was rejected: loaded with a wrong agent token
at oracle.sysman.gcagent.metadata.TargetManager.loadTargetsInstance(TargetManager.java:4029)
.....
2014-10-28 01:37:09,929 [1:3305B9] INFO - Error while starting up (will do a shutdown)
oracle.sysman.gcagent.tmmain.lifecycle.AgentStartupException: targets.xml was rejected: loaded with a wrong agent token
at oracle.sysman.gcagent.metadata.TargetManager.loadTargetsInstance(TargetManager.java:4029)

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms