Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build of a patched Database 12c Release 2 (12.2.0.1) image fails #1187

Closed
matmartin opened this issue Mar 11, 2019 · 4 comments
Closed

Build of a patched Database 12c Release 2 (12.2.0.1) image fails #1187

matmartin opened this issue Mar 11, 2019 · 4 comments
Assignees

Comments

@matmartin
Copy link

matmartin commented Mar 11, 2019

I have tried to build a patched Docker image of the Oracle Database 12c Release 2 (12.2.0.1) Enterprise Edition using the Database Release Update 12.2.0.1.190115 (p28822515_122010_Linux-x86-64.zip) with the following command:

./buildPatchedDockerImage.sh -v 12.2.0.1 -e -p 190115

The build failed with the following error:

Oracle Interim Patch Installer version 12.2.0.1.16
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /opt/oracle/product/12.2.0.1/dbhome_1
Central Inventory : /opt/oracle/oraInventory
   from           : /opt/oracle/product/12.2.0.1/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.16
OUI version       : 12.2.0.1.4
Log file location : /opt/oracle/product/12.2.0.1/dbhome_1/cfgtoollogs/opatch/opatch2019-03-11_04-47-45AM_1.log

Verifying environment and performing prerequisite checks...
Prerequisite check "CheckApplicable" failed.
The details are:

Patch 28822515:
Jar Action: Destination File "/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar" does not exists or is not writeable
'oracle.assistants.server, 12.2.0.1.0': Cannot update file '/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar' with '/oracle/assistants/dbua/resource/cmdfmt_ext2raw_transformer_v12_2_0.xsl'
Jar Action: Destination File "/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar" does not exists or is not writeable
'oracle.assistants.server, 12.2.0.1.0': Cannot update file '/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar' with '/oracle/assistants/dbua/resource/commandline_arguments.xml'
Jar Action: Destination File "/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar" does not exists or is not writeable
'oracle.assistants.server, 12.2.0.1.0': Cannot update file '/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar' with '/oracle/assistants/dbua/bean/UpgradeDBSettings.class'
Jar Action: Destination File "/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar" does not exists or is not writeable
'oracle.assistants.server, 12.2.0.1.0': Cannot update file '/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar' with '/oracle/assistants/dbua/bean/UpgradeSettings.class'
Jar Action: Destination File "/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar" does not exists or is not writeable
'oracle.assistants.server, 12.2.0.1.0': Cannot update file '/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar' with '/oracle/assistants/dbua/util/loaders/UpgradeDBSettingsBeanLoader.class'
Jar Action: Destination File "/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar" does not exists or is not writeable
'oracle.assistants.server, 12.2.0.1.0': Cannot update file '/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar' with '/oracle/assistants/dbua/backend/HAServicesStep.class'
Jar Action: Destination File "/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar" does not exists or is not writeable
'oracle.assistants.server, 12.2.0.1.0': Cannot update file '/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar' with '/oracle/assistants/dbua/backend/PostMigration.class'
Jar Action: Destination File "/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar" does not exists or is not writeable
'oracle.assistants.server, 12.2.0.1.0': Cannot update file '/opt/oracle/product/12.2.0.1/dbhome_1/assistants/dbua/jlib/dbua.jar' with '/oracle/assistants/dbua/util/helper/DBUADBServicesHelper.class'

UtilSession failed: 
Prerequisite check "CheckApplicable" failed.
Log file location: /opt/oracle/product/12.2.0.1/dbhome_1/cfgtoollogs/opatch/opatch2019-03-11_04-47-45AM_1.log

OPatch failed with error code 73
Removing intermediate container 9f5383833564
The command '/bin/sh -c chmod ug+x $PATCH_INSTALL_DIR/*.sh &&     sync &&     $PATCH_INSTALL_DIR/$PATCH_FILE' returned a non-zero code: 73
There was an error building the image.

Here is the complete log file of the failed image build: buildPatchedDockerImage.log

I was able to fix the issue by commenting out the line to remove the Oracle Database Upgrade Assistant (DBUA) in installDBBinaries.sh before the build of the unpatched database image. Maybe you can add a hint in the README.md for the patch sample. Or does it make more sense not to remove the Oracle Database Upgrade Assistant (DBUA) in installDBBinaries.sh at all?

@matmartin matmartin changed the title Build of a patched Database 12c Release 2 (12.2.0.2) image fails Build of a patched Database 12c Release 2 (12.2.0.1) image fails Mar 11, 2019
@gvenzl
Copy link
Member

gvenzl commented Mar 22, 2019

Thanks a lot @matmartin,

That certainly means that we have to not remove DBUA from the base image.

@gvenzl gvenzl self-assigned this Mar 22, 2019
@tetardv
Copy link

tetardv commented Jul 2, 2019

hello,
You can add in the dockerfile you use a COPY command to pass dbua.jar in the requested path using root user before you patch your image. It did the trick for me.

Regards,
Vincent.

@zh-ellbanner
Copy link

zh-ellbanner commented Sep 13, 2020

@gvenzl A similar error occurs with the latest (JUL2020) RU for 12.2.0.1 except it complains of missing suptools artifacts this time. Similar to the DBUA missing issue with the last few patchsets, commenting the appropriate directory removal from installDBBinaries.sh fixes the issue as the artifacts are then present.

@gvenzl
Copy link
Member

gvenzl commented Mar 10, 2022

Closing this issue as the database and image versions have been superseded and 12.2 is going out of support by the end of this month.
Please open a new ticket if this issue still persists in 19c.

@gvenzl gvenzl closed this as completed Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants