OMC: Oracle Management Cloud Agent Upgrade fails with Error: File is not present at [sysman/admin/agent.installmode]
(Doc ID 2762936.1)
Last updated on MAY 24, 2023
Applies to:
Oracle Management Cloud - Version N/A to N/A [Release 1.0]Information in this document applies to any platform.
Symptoms
Oracle Management Cloud (OMC) Agent upgrade from 1.52 to 1.53 fails with the following error:
Validation started (FATAL: Error while evalutating the agent type, the details are [File is not present at [sysman/admin/agent.installmode] to load.]. Generate the logs bundle using [<Agent_BASE>/agent_inst/bin/omcli generate_support_bundle agent /tmp] command and contact Oracle Management Cloud support with the logs bundle.)
AgentUpgrade_20210312112140.log
====================================
2021-03-12 11:22:08 DEBUG ExceptionUtil:326 - Error Messages successfully loaded to memory.
2021-03-12 11:22:08 DEBUG OmcliHelper:72 - OMCLI path evaluated to [<Agent_BASE>/agent_inst/bin/omcli].
2021-03-12 11:22:08 DEBUG ProcessBuilderUtil:70 - Command to execute is {<Agent_BASE>/agent_inst/bin/omcli getproperty agent -name emdRoot}
2021-03-12 11:22:10 DEBUG ProcessBuilderUtil:120 - Command {<Agent_BASE>/agent_inst/bin/omcli getproperty agent -name emdRoot} execution completed with exit value [0] and ouput as
{Oracle Management Cloud Agent
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Invalid EMSTATE valueemdRoot=<Agent_BASE>/core/1.52.0
}
2021-03-12 11:22:10 DEBUG TaskUtil:177 - [AGENT_INSTANCE_HOME] is not required to submit task information to OMC, can be ignored.
2021-03-12 11:22:10 INFO TaskUtil:105 - Validation started state being set to FAIL.
2021-03-12 11:22:10 INFO TaskUtil:214 - Task status to update
AgentUpgrade_20210312112140.pl.log
====================================
[2021/03/12 11:22:13] Command [<Agent_BASE>/download/upgrade/scripts/agt/agt/core/1.53.0/jdk/jre/bin/java -DAGENT_INST=<Agent_BASE>/agent_inst -DSTART_TIMESTAMP=20210312112140 -DEXTRACTION_LOCATION=<Agent_BASE>/download/upgrade/scripts/agt/agt -DAGENT_IMAGE_LOCATION=<Agent_BASE>/download/upgrade/scripts/agt -DTEMP_DIR_NAME=agt -cp <Agent_BASE>/download/upgrade/scripts/agt/agt/core/1.53.0/jlib/omcagentinstaller.jar oracle.sysman.installer.AgentUpgradeMain AGENT_INSTANCE_HOME=<Agent_BASE>/agent_inst TASK_INFO=SESSION_NAME=<HOSTNAME>.<DOMAIN_NAME>:4459_2021-03-12T11:16:09.332Z,ENTITY_ID=0C07BFD32CC183C52D9CB348742150B3,AGENT_DETAILS_ID=A6D1B779131443F37CF8829D1575E761] executed with exit code 1
[2021/03/12 11:22:13] OUT:
Error while evalutating the agent type, the details are [File is not present at [sysman/admin/agent.installmode] to load.]. Generate the logs bundle using [<Agent_BASE>/agent_inst/bin/omcli generate_support_bundle agent /tmp] command and contact Oracle Management Cloud support with the logs bundle.
Please refer [/app/agents/omcagent/cloudagent/agent_inst/sysman/log/upgrade/AgentUpgrade_20210312112140.log] log file for further details.
[2021/03/12 11:22:13] ERR: [2021/03/12 11:22:13] Executing Command: <Agent_BASE>/agent_inst/bin/omcli update_lcmstate agent <HOSTNAME>.<DOMAIN_NAME>:4459_2021-03-12T11:16:09.332Z <Agent_BASE>/download/upgrade/scripts/perltaskupdate.json
[2021/03/12 11:22:16] Command [<Agent_BASE>/agent_inst/bin/omcli update_lcmstate agent <HOSTNAME>.<DOMAIN_NAME>:4459_2021-03-12T11:16:09.332Z <Agent_BASE>/download/upgrade/scripts/perltaskupdate.json] executed with exit code 1
[2021/03/12 11:22:16] OUT: Oracle Management Cloud Agent
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Agent lifecycle state could not be updated.
Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value
at [Source: java.io.StringReader@7905a0b8; line: 1, column: 208]
Invalid EMSTATE value[2021/03/12 11:22:16] ERR: [2021/03/12 11:22:16] Executing Command: <Agent_BASE>/agent_inst/bin/omcli update_endstate agent -downloadID=sessionName=<HOSTNAME>.<DOMAIN_NAME>:4459_2021-03-12T11:16:09.332Z#entityId=0C07BFD32CC183C52D9CB348742150B3#productid=LamaAgent#endstates=REQUEST_FAILED#status=FAILED#error=#cause=#recommendation=
[2021/03/12 11:22:19] Command [<Agent_BASE>/agent_inst/bin/omcli update_endstate agent -downloadID=sessionName=<HOSTNAME>.<DOMAIN_NAME>:4459_2021-03-12T11:16:09.332Z#entityId=0C07BFD32CC183C52D9CB348742150B3#productid=LamaAgent#endstates=REQUEST_FAILED#status=FAILED#error=#cause=#recommendation=] executed with exit code 0
[2021/03/12 11:22:20] Closing log files and exiting.
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |