docker-images icon indicating copy to clipboard operation
docker-images copied to clipboard

https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2: [Errno 14] HTTPS Error 403 - Forbidden

Open purnima1612 opened this issue 3 years ago • 6 comments

Hi All,

I am trying to run build script to create Oracle database image on my local system using below command.

./buildContainerImage.sh -v 19.3.0 -e

But while running it I am getting following error

#9 0.638 Loaded plugins: ovl
#9 12.70 https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2: [Errno 14] HTTPS Error 403 - Forbidden
#9 12.70 Trying other mirror.
#9 14.07 https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2: [Errno 14] HTTPS Error 403 - Forbidden
#9 14.07 Trying other mirror.
#9 15.34 https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2: [Errno 14] HTTPS Error 403 - Forbidden
#9 15.34 Trying other mirror.
#9 15.34
#9 15.34
#9 15.34  One of the configured repositories failed (Oracle Linux 7Server Latest (x86_64)),
#9 15.34  and yum doesn't have enough cached data to continue. At this point the only
#9 15.34  safe thing yum can do is fail. There are a few ways to work "fix" this:
#9 15.34
#9 15.34      1. Contact the upstream for the repository and get them to fix the problem.
#9 15.34
#9 15.34      2. Reconfigure the baseurl/etc. for the repository, to point to a working
#9 15.34         upstream. This is most often useful if you are using a newer
#9 15.34         distribution release than is supported by the repository (and the
#9 15.34         packages for the previous distribution release still work).
#9 15.34
#9 15.34      3. Run the command with the repository temporarily disabled
#9 15.34             yum --disablerepo=ol7_latest ...
#9 15.34
#9 15.34      4. Disable the repository permanently, so yum won't use it by default. Yum
#9 15.34         will then just ignore the repository until you permanently enable it
#9 15.34         again or use --enablerepo for temporary usage:
#9 15.34
#9 15.34             yum-config-manager --disable ol7_latest
#9 15.34         or
#9 15.34             subscription-manager repos --disable=ol7_latest
#9 15.34
#9 15.34      5. Configure the failing repository to be skipped, if it is unavailable.
#9 15.34         Note that yum will try to contact the repo. when it runs most commands,
#9 15.34         so will have to try and fail each time (and thus. yum will be be much
#9 15.34         slower). If it is a very temporary problem though, this is often a nice
#9 15.34         compromise:
#9 15.34
#9 15.34             yum-config-manager --save --setopt=ol7_latest.skip_if_unavailable=true
#9 15.34
#9 15.34 failure: repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2 from ol7_latest: [Errno 256] No more mirrors to try.
#9 15.34 https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2: [Errno 14] HTTPS Error 403 - Forbidden
#9 ERROR: executor failed running [/bin/sh -c chmod ug+x $INSTALL_DIR/*.sh &&     sync &&     $INSTALL_DIR/$CHECK_SPACE_FILE &&     $INSTALL_DIR/$SETUP_LINUX_FILE &&     rm -rf $INSTALL_DIR]: exit code: 1
------
 > [base 5/5] RUN chmod ug+x /opt/install/*.sh &&     sync &&     /opt/install/checkSpace.sh &&     /opt/install/setupLinuxEnv.sh &&     rm -rf /opt/install:
------
executor failed running [/bin/sh -c chmod ug+x $INSTALL_DIR/*.sh &&     sync &&     $INSTALL_DIR/$CHECK_SPACE_FILE &&     $INSTALL_DIR/$SETUP_LINUX_FILE &&     rm -rf $INSTALL_DIR]: exit code: 1

ERROR: Oracle Database container image was NOT successfully created.
ERROR: Check the output and correct any reported problems with the build operation.

Please help

purnima1612 avatar May 26 '22 20:05 purnima1612

I checked I don't have access to https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata. So what should be workaround for this now ?

purnima1612 avatar May 26 '22 20:05 purnima1612

When I am trying to access https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/ directly I am able to connect it then I am getting this issue while running from Docker.

purnima1612 avatar May 27 '22 17:05 purnima1612

@purnima1612 Are you using any proxy to connect ??

abhisbyk avatar Aug 22 '22 14:08 abhisbyk

I am from Russia and http get of https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/repodata/repomd.xml time outed.

But the same link is opening perfectly from Tor

ORACLE cancelled Russians i think

sre-data-engineer avatar Jan 26 '23 07:01 sre-data-engineer

Hi All,

I am trying to run build script to create Oracle database image on my local system using below command.

./buildContainerImage.sh -v 19.3.0 -e

But while running it I am getting following error

#9 0.638 Loaded plugins: ovl
#9 12.70 https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2: [Errno 14] HTTPS Error 403 - Forbidden
#9 12.70 Trying other mirror.
#9 14.07 https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2: [Errno 14] HTTPS Error 403 - Forbidden
#9 14.07 Trying other mirror.
#9 15.34 https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2: [Errno 14] HTTPS Error 403 - Forbidden
#9 15.34 Trying other mirror.
#9 15.34
#9 15.34
#9 15.34  One of the configured repositories failed (Oracle Linux 7Server Latest (x86_64)),
#9 15.34  and yum doesn't have enough cached data to continue. At this point the only
#9 15.34  safe thing yum can do is fail. There are a few ways to work "fix" this:
#9 15.34
#9 15.34      1. Contact the upstream for the repository and get them to fix the problem.
#9 15.34
#9 15.34      2. Reconfigure the baseurl/etc. for the repository, to point to a working
#9 15.34         upstream. This is most often useful if you are using a newer
#9 15.34         distribution release than is supported by the repository (and the
#9 15.34         packages for the previous distribution release still work).
#9 15.34
#9 15.34      3. Run the command with the repository temporarily disabled
#9 15.34             yum --disablerepo=ol7_latest ...
#9 15.34
#9 15.34      4. Disable the repository permanently, so yum won't use it by default. Yum
#9 15.34         will then just ignore the repository until you permanently enable it
#9 15.34         again or use --enablerepo for temporary usage:
#9 15.34
#9 15.34             yum-config-manager --disable ol7_latest
#9 15.34         or
#9 15.34             subscription-manager repos --disable=ol7_latest
#9 15.34
#9 15.34      5. Configure the failing repository to be skipped, if it is unavailable.
#9 15.34         Note that yum will try to contact the repo. when it runs most commands,
#9 15.34         so will have to try and fail each time (and thus. yum will be be much
#9 15.34         slower). If it is a very temporary problem though, this is often a nice
#9 15.34         compromise:
#9 15.34
#9 15.34             yum-config-manager --save --setopt=ol7_latest.skip_if_unavailable=true
#9 15.34
#9 15.34 failure: repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2 from ol7_latest: [Errno 256] No more mirrors to try.
#9 15.34 https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/180f470efde3c1b8b6734adda054286860c65c82-primary.sqlite.bz2: [Errno 14] HTTPS Error 403 - Forbidden
#9 ERROR: executor failed running [/bin/sh -c chmod ug+x $INSTALL_DIR/*.sh &&     sync &&     $INSTALL_DIR/$CHECK_SPACE_FILE &&     $INSTALL_DIR/$SETUP_LINUX_FILE &&     rm -rf $INSTALL_DIR]: exit code: 1
------
 > [base 5/5] RUN chmod ug+x /opt/install/*.sh &&     sync &&     /opt/install/checkSpace.sh &&     /opt/install/setupLinuxEnv.sh &&     rm -rf /opt/install:
------
executor failed running [/bin/sh -c chmod ug+x $INSTALL_DIR/*.sh &&     sync &&     $INSTALL_DIR/$CHECK_SPACE_FILE &&     $INSTALL_DIR/$SETUP_LINUX_FILE &&     rm -rf $INSTALL_DIR]: exit code: 1

ERROR: Oracle Database container image was NOT successfully created.
ERROR: Check the output and correct any reported problems with the build operation.

Busted AGAIN

Mwilson7583 avatar Jan 26 '23 09:01 Mwilson7583

I was getting the same error.

Tried wget and this also failed with 403 Forbidden: wget https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/repodata/3e4cb05d6414a5805022a675f339641fa070220c-primary.sqlite.bz2

When I accessed that URL in web browser I saw 403 error and that it's being blocked by Zscaler:

Website blocked Not allowed to upload/download unscannable file formats

Reached out to IT and they made some changes for the given URL in proxy. Updated the policy in Zscaler and then I was able to create the database.

jspilinek avatar Sep 15 '23 18:09 jspilinek