EMD upload error:full upload has failed: uploadXMLFiles skipped :: OMS version not checked .. EMD pingOMS error: Failure connecting to – OMS is unreachable

Cause:

Agent is unable to communicate with the OMS due to network error. When try upload and ping to the OMS server, it fails with the following errors

-bash-4.2$ /u01/app/oracle/agent/agent_13.4.0.0.0/bin/emctl upload agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload error:full upload has failed: uploadXMLFiles skipped :: OMS version not checked yet. If this issue persists check trace files for ping to OMS related errors. (OMS_DOWN)

Ping failure from Agent server to OMS server

-bash-4.2$ /u01/app/oracle/agent/agent_inst/bin/emctl pingOMS
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD pingOMS error: Failure connecting to https://192.168.56.123:4903/empbs/upload/ , err

In gcagent.log file ,the following ping communication errors are displayed

2021-12-01 15:59:10,631 [68:CDEB16E1:GC.SysExecutor.9 (Ping OMS)] INFO - attempting initial heartbeat
2021-12-01 15:59:10,633 [68:CDEB16E1] WARN - Ping communication error
o.s.emSDK.agent.comm.exception.ConnectException [Failure connecting to - Subsystem (Ping Manager) returned bad status of {+ Ping Manager: *Warning* +}
2021-12-01 16:00:40,388 [64:EDF2D361] WARN - Subsystem (Upload Manager) returned bad status of {+ Upload Manager: *Warning* +}
2021-12-01 16:00:40,642 [66:BE87CC23] INFO - attempting initial heartbeat
2021-12-01 16:00:40,643 [66:BE87CC23] WARN - Ping communication error
o.s.emSDK.agent.comm.exception.ConnectException [Failure connecting to 

Even wget fails with the message “No route to host.”

-bash-4.2$ wget https://192.168.56.123:4903/empbs/upload --no-check-certificate
--2021-12-01 15:59:19--  https://192.168.56.123:4903/empbs/upload
Connecting to 192.168.56.123:4903... failed: No route to host.

Both OMS version and Heartbeat to OMS shows null value

-bash-4.2$ /u01/app/oracle/agent/agent_13.4.0.0.0/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 13.4.0.0.0
OMS Version            : (unknown)     --> *************************
Protocol Version       : 12.1.0.1.0
Agent Home             : /u01/app/oracle/agent/agent_inst
Agent Log Directory    : /u01/app/oracle/agent/agent_inst/sysman/log
Agent Binaries         : /u01/app/oracle/agent/agent_13.4.0.0.0
Core JAR Location      : /u01/app/oracle/agent/agent_13.4.0.0.0/jlib
Agent Process ID       : 2963
Parent Process ID      : 2896
Started at             : 2021-12-01 18:18:50
Started by user        : oracle
Operating System       : Linux version 4.1.12-61.1.18.el7uek.x86_64 (amd64)
Number of Targets      : (none)
Last Reload            : (none)
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload           : 6
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 78.28%
Collection Status                            : Collections enabled
Heartbeat Status                             : OMS is unreachable
Last attempted heartbeat to OMS              : 2021-12-01 18:27:00
Last successful heartbeat to OMS             : (none)  --> ******************************
Next scheduled heartbeat to OMS              : 2021-12-01 18:27:30

---------------------------------------------------------------
Agent is Running and Ready

Solution:

Check ping,telnet to port and wget from Agent server to OMS server

http://alphaoragroup.com/2021/12/01/no-route-to-host/

Follow below steps

--Stop agent

-bash-4.2$ /u01/app/oracle/agent/agent_13.4.0.0.0/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.

--Secure agent

-bash-4.2$ /u01/app/oracle/agent/agent_13.4.0.0.0/bin/emctl secure agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
Agent is already stopped...   Done.
Securing agent...   Started.
Enter Agent Registration Password :
Securing agent...   Successful.

--Start agent

-bash-4.2$ /u01/app/oracle/agent/agent_13.4.0.0.0/bin/emctl start agent
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
Starting agent ......... started.

Verify if both OMS and agent URL are same

--Agent server
-bash-4.2$ /u01/app/oracle/agent/agent_inst/bin/emctl status agent |grep 'URL'

--OMS server
[oracle@oem ~]$ emctl status oms -details|grep 'URL'

This should solve the issue

Leave a Reply