My Oracle Support Banner

13.5: Executing "emcli get_agentimage" on Windows OMS fails with error: zip error: Could not create output file (was replacing the original zip file) (Doc ID 2802942.1)

Last updated on OCTOBER 18, 2022

Applies to:

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


On a 13.5 OMS installed on Windows platform, executing "emcli get_agentimage" to extract the agent software for any platform, fails with the error:

OMS_HOME\bin>emcli.bat get_agentimage -destination=<STAGE_LOC> -platform="Microsoft Windows x64 (64-bit)" -version=""
=== Partition Detail ===
Space free : 82 GB
Space required : 1 GB
Check the logs at C:\Users\a335037f/.emcli/get_agentimage_2021-07-06_17-13-27-PM.log
Downloading <STAGE_LOC>\
File saved as <STAGE_LOC>\
Downloading <STAGE_LOC>\
File saved as <STAGE_LOC>\
Downloading <STAGE_LOC>\unzip.exe
File saved as <STAGE_LOC>\unzip.exe
Executing command: <STAGE_LOC>\unzip.exe <STAGE_LOC> -d <STAGE_LOC>
ERROR: Command <STAGE_LOC>\unzip.exe <STAGE_LOC>\ -d <STAGE_LOC> execution failed.
Extracting plugins failed.



2021-06-29_07-20-24:INFO:Cmd <OMS_HOME>/perl/bin/perl <OMS_HOME>/sysman/prov/agentpush/scripts/ zip <OMS_HOME>/bin/zip <TMP Loc> <OMS_HOME>/install/agentImage/
2021-06-29_07-20-36:INFO:OUT:Number of arguements = 3
Operation = zip
Zip exe = <OMS_HOME>/bin/zip
Source = <TMP Loc>
Destination = <OMS_HOME>/install/agentImage/
Zipping ...
Executing command <OMS_HOME>/bin/zip -rq <OMS_HOME>/install/agentImage/ .
zip I/O error: File exists
zip error: Could not create output file (was replacing the original zip file)
Return code = 3840
Error =
2021-06-29_07-20-36:INFO:Exception : Unable to zip file <OMS_HOME>/install/agentImage/
2021-06-29_07-20-36:INFO:Exception agent image :Creation of the plugin archive "<OMS_HOME>/install/agentImage/" failed. Check the log file ../gc_inst/em/EMGC_OMS1/sysman/agentpush/logs/EMAgentPushLogger&lt;timestamp&gt;.log for more details.
2021-06-29_07-20-36:INFO:2 - discFlag = trueoneoffsFlag = trueagentFlag = false
2021-06-29_07-20-36:INFO:ERROR : null
2021-06-29_07-20-36:INFO:Cleaning:<TMP Loc>



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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.