Description
I'm trying to patch 21.5 on 21.3 base image.
I have placed patching files as shown below:
root@user-test-1:/home/user3/docker-images/OracleDatabase/SingleInstance/extensions/patching/patches/release_update# ls -lrth
total 681M
-rwxrwxrwx 1 root root 681M Feb 12 06:49 p33516412_210000_Linux-x86-64.zip
root@user-test-1:/home/user3/docker-images/OracleDatabase/SingleInstance/extensions/patching/patches/release_update# cd ../one_offs/
root@user-test-1:/home/user3/docker-images/OracleDatabase/SingleInstance/extensions/patching/patches/one_offs# ls -lrth
total 4.0K
-rwxrwxrwx 1 root root 168 Mar 6 07:41 p6880880_210000_Linux-x86-64.zip
Below is the command I'm using to patch the image with full output.
root@user-test-1:/home/user3/docker-images/OracleDatabase/SingleInstance/extensions# ./buildExtensions.sh -x patching -b oracle_database:21.3.0.0.0 -t 21.5 -v 21.3.0
Checking Docker version.
Dockerfile
Ignored MD5 checksum.
Container runtime info:
Client:
Version: 26.1.3
Context: default
Debug Mode: false
Server:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 63
Server Version: 26.1.3
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version:
runc version:
init version:
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.8.0-1021-gcp
Operating System: Ubuntu 22.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 29.37GiB
Name: user-test-1
ID: e5f102d4-e3c8-4963-b80d-d9d273f61647
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
==========================
Building base stage image 'oracle_database:21.3.0.0.0-base' ...
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 3.201GB
Step 1/9 : FROM oraclelinux:7-slim as base
---> 05211a081d59
Step 2/9 : LABEL "provider"="Oracle" "issues"="https://github.com/oracle/docker-images/issues" "volume.data"="/opt/oracle/oradata" "volume.setup.location1"="/opt/oracle/scripts/setup" "volume.setup.location2"="/docker-entrypoint-initdb.d/setup" "volume.startup.location1"="/opt/oracle/scripts/startup" "volume.startup.location2"="/docker-entrypoint-initdb.d/startup" "port.listener"="1521" "port.oemexpress"="5500"
---> Using cache
---> 6337f14b437f
Step 3/9 : ARG SLIMMING=true
---> Using cache
---> a76bb99658e2
Step 4/9 : ARG INSTALL_FILE_1="LINUX.X64_213000_db_home.zip"
---> Using cache
---> ba985d936253
Step 5/9 : ENV ORACLE_BASE=/opt/oracle ORACLE_HOME=/opt/oracle/product/21c/dbhome_1 ORACLE_BASE_HOME=/opt/oracle/homes/OraDB21Home1 INSTALL_DIR=/opt/install INSTALL_FILE_1=$INSTALL_FILE_1 INSTALL_RSP="db_inst.rsp" CONFIG_RSP="dbca.rsp.tmpl" PWD_FILE="setPassword.sh" RUN_FILE="runOracle.sh" START_FILE="startDB.sh" CREATE_DB_FILE="createDB.sh" CREATE_OBSERVER_FILE="createObserver.sh" SETUP_LINUX_FILE="setupLinuxEnv.sh" CHECK_SPACE_FILE="checkSpace.sh" CHECK_DB_FILE="checkDBStatus.sh" USER_SCRIPTS_FILE="runUserScripts.sh" INSTALL_DB_BINARIES_FILE="installDBBinaries.sh" RELINK_BINARY_FILE="relinkOracleBinary.sh" CONFIG_TCPS_FILE="configTcps.sh" SLIMMING=$SLIMMING ENABLE_ARCHIVELOG=false ARCHIVELOG_DIR_NAME=archive_logs CLONE_DB=false STANDBY_DB=false PRIMARY_DB_CONN_STR="" DG_OBSERVER_ONLY=false DG_OBSERVER_NAME="" CHECKPOINT_FILE_EXTN=".created" WALLET_DIR=""
---> Using cache
---> 6877d61bcd9e
Step 6/9 : ENV PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch/:/usr/sbin:$PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
---> Using cache
---> 6dbb2c15910f
Step 7/9 : COPY $SETUP_LINUX_FILE $CHECK_SPACE_FILE $INSTALL_DIR/
---> Using cache
---> 2ba4022fdd1b
Step 8/9 : COPY $RUN_FILE $START_FILE $CREATE_DB_FILE $CREATE_OBSERVER_FILE $CONFIG_RSP $PWD_FILE $CHECK_DB_FILE $USER_SCRIPTS_FILE $RELINK_BINARY_FILE $CONFIG_TCPS_FILE $ORACLE_BASE/
---> Using cache
---> e2153d7eaf62
Step 9/9 : RUN chmod ug+x $INSTALL_DIR/*.sh && sync && $INSTALL_DIR/$CHECK_SPACE_FILE && $INSTALL_DIR/$SETUP_LINUX_FILE && rm -rf $INSTALL_DIR
---> Using cache
---> 8772689478b4
Successfully built 8772689478b4
Successfully tagged oracle_database:21.3.0.0.0-base
Building extension patching...
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 713.1MB
Step 1/19 : ARG BASE_IMAGE=oracle/database:19.3.0-ee
Step 2/19 : FROM ${BASE_IMAGE} as patching
---> f6c29d9c8331
Step 3/19 : ENV HOST_PATCH_DIR="patches" PATCH_DIR=/opt/install/patches PATCH_DB_BINARIES_FILE="patchDBBinaries.sh"
---> Running in a5ac2e6aadd1
---> Removed intermediate container a5ac2e6aadd1
---> a40d13760d20
Step 4/19 : COPY --chown=oracle:dba $HOST_PATCH_DIR $PATCH_DB_BINARIES_FILE $PATCH_DIR/
---> ed7c8a1faa6d
Step 5/19 : RUN chmod ug+x $PATCH_DIR/.sh && sync && $PATCH_DIR/$PATCH_DB_BINARIES_FILE && rm -rf $PATCH_DIR/ $ORACLE_HOME/.patch_storage $ORACLE_HOME/.opatchauto_storage
---> Running in 16ac507a3127
Unzipping /opt/install/patches/release_update/p33516412_210000_Linux-x86-64.zip
/opt/install/patches/one_offs/p6880880_210000_Linux-x86-64.zip
Removing directory /opt/oracle/product/21c/dbhome_1/OPatch
Unzipping OPatch archive /opt/install/patches/one_offs/p6880880_210000_Linux-x86-64.zip to /opt/oracle/product/21c/dbhome_1
Applying Release Update: 33516412
Running: /opt/oracle/product/21c/dbhome_1/OPatch/opatchauto apply -binary -oh /opt/oracle/product/21c/dbhome_1 /opt/install/patches/33516412 -target_type rac_database
/opt/install/patches/patchDBBinaries.sh: line 56: /opt/oracle/product/21c/dbhome_1/OPatch/opatchauto: No such file or directory
RU application failed for patchset: 33516412
---> Removed intermediate container 16ac507a3127
The command '/bin/sh -c chmod ug+x $PATCH_DIR/.sh && sync && $PATCH_DIR/$PATCH_DB_BINARIES_FILE && rm -rf $PATCH_DIR/ $ORACLE_HOME/.patch_storage $ORACLE_HOME/.opatchauto_storage' returned a non-zero code: 1
ERROR: Oracle Database Container Image was NOT successfully created.
ERROR: Check the output and correct any reported problems with the container build operation.