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 AUGUST 27, 2021

Applies to:

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

Symptoms

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="13.5.0.0.0"
=== 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>\13.5.0.0.0_AgentCore_233.zip
File saved as <STAGE_LOC>\13.5.0.0.0_AgentCore_233.zip
Downloading <STAGE_LOC>\13.5.0.0.0_Plugins_233.zip
File saved as <STAGE_LOC>\13.5.0.0.0_Plugins_233.zip
Downloading <STAGE_LOC>\unzip.exe
File saved as <STAGE_LOC>\unzip.exe
Executing command: <STAGE_LOC>\unzip.exe <STAGE_LOC>13.5.0.0.0_Plugins_233.zip -d <STAGE_LOC>
ERROR: Command <STAGE_LOC>\unzip.exe <STAGE_LOC>\13.5.0.0.0_Plugins_233.zip -d <STAGE_LOC> execution failed.
Extracting plugins failed.

 

..gc_inst/em/EMGC_OMS1/sysman/agentpush/logs/EMAgentPushLogger<timestamp>.log

2021-06-29_07-20-24:INFO:Cmd <OMS_HOME>/perl/bin/perl <OMS_HOME>/sysman/prov/agentpush/scripts/zipUtil.pl zip <OMS_HOME>/bin/zip <TMP Loc> <OMS_HOME>/install/agentImage/13.5.0.0.0_Plugins_233.zip
2021-06-29_07-20-36:INFO:Nodelocalhost
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/13.5.0.0.0_Plugins_233.zip
Zipping ...
Executing command <OMS_HOME>/bin/zip -rq <OMS_HOME>/install/agentImage/13.5.0.0.0_Plugins_233.zip .
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:ERR:null
2021-06-29_07-20-36:INFO:exit:3840
2021-06-29_07-20-36:INFO:STATUS:false
2021-06-29_07-20-36:INFO:Exception : Unable to zip file <OMS_HOME>/install/agentImage/13.5.0.0.0_Plugins_233.zip
2021-06-29_07-20-36:INFO:Exception agent image :Creation of the plugin archive "<OMS_HOME>/install/agentImage/13.5.0.0.0_Plugins_233.zip" 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>

 

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
Cause
Solution
References


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