Vagrant up --provision failed with HTTP Error 404 - Not Found

http://vault.centos.org/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

Please help to resolve issue.

Thanks

Full log below:
C:\Udemy3\MongoDbUniversity\m042_new-features\m042-vagrant-env>vagrant up --provision
Bringing machine ‘mongodb-m042’ up with ‘virtualbox’ provider…
==> mongodb-m042: Importing base box ‘centos/7’…
==> mongodb-m042: Matching MAC address for NAT networking…
==> mongodb-m042: Checking if box ‘centos/7’ version ‘1905.1’ is up to date…
==> mongodb-m042: Setting the name of the VM: mongodb-m042
==> mongodb-m042: Clearing any previously set network interfaces…
==> mongodb-m042: Preparing network interfaces based on configuration…
mongodb-m042: Adapter 1: nat
mongodb-m042: Adapter 2: hostonly
==> mongodb-m042: Forwarding ports…
mongodb-m042: 22 (guest) => 2222 (host) (adapter 1)
==> mongodb-m042: Running ‘pre-boot’ VM customizations…
==> mongodb-m042: Booting VM…
==> mongodb-m042: Waiting for machine to boot. This may take a few minutes…
mongodb-m042: SSH address: 127.0.0.1:2222
mongodb-m042: SSH username: vagrant
mongodb-m042: SSH auth method: private key
mongodb-m042:
mongodb-m042: Vagrant insecure key detected. Vagrant will automatically replace
mongodb-m042: this with a newly generated keypair for better security.
mongodb-m042:
mongodb-m042: Inserting generated public key within guest…
mongodb-m042: Removing insecure key from the guest if it’s present…
mongodb-m042: Key inserted! Disconnecting and reconnecting using new SSH key…
==> mongodb-m042: Machine booted and ready!
[mongodb-m042] No Virtualbox Guest Additions installation found.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.san.fastserv.com
  • extras: mirrors.usinternet.com
  • updates: mirror.sesp.northwestern.edu
    Resolving Dependencies
    –> Running transaction check
    —> Package centos-release.x86_64 0:7-6.1810.2.el7.centos will be updated
    —> Package centos-release.x86_64 0:7-8.2003.0.el7.centos will be an update
    –> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size

Updating:
centos-release x86_64 7-8.2003.0.el7.centos base 26 k

Transaction Summary

Upgrade 1 Package

Total download size: 26 k
Downloading packages:
No Presto metadata available for base
Public key for centos-release-7-8.2003.0.el7.centos.x86_64.rpm is not installed
warning: /var/cache/yum/x86_64/7/base/packages/centos-release-7-8.2003.0.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : “CentOS-7 Key (CentOS 7 Official Signing Key) security@centos.org
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-6.1810.2.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : centos-release-7-8.2003.0.el7.centos.x86_64 1/2
Cleanup : centos-release-7-6.1810.2.el7.centos.x86_64 2/2
Verifying : centos-release-7-8.2003.0.el7.centos.x86_64 1/2
Verifying : centos-release-7-6.1810.2.el7.centos.x86_64 2/2

Updated:
centos-release.x86_64 0:7-8.2003.0.el7.centos

Complete!
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

https://wiki.centos.org/yum-errors

If above article doesn’t help to resolve this issue please use https://bugs.centos.org/.

One of the configured repositories failed (CentOS-7.7.1908 - Base),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=C7.7.1908-base ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable C7.7.1908-base
    or
        subscription-manager repos --disable=C7.7.1908-base

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=C7.7.1908-base.skip_if_unavailable=true

failure: repodata/repomd.xml from C7.7.1908-base: [Errno 256] No more mirrors to try.
http://vault.centos.org/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
==> mongodb-m042: Checking for guest additions in VM…
mongodb-m042: No guest additions were detected on the base box for this VM! Guest
mongodb-m042: additions are required for forwarded ports, shared folders, host only
mongodb-m042: networking, and more. If SSH fails on this machine, please install
mongodb-m042: the guest additions and repackage the box to continue.
mongodb-m042:
mongodb-m042: This is not an error message; everything may continue to work properly,
mongodb-m042: in which case you may ignore this message.
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

yum install -y kernel-devel-uname -r --enablerepo=C*-base --enablerepo=C*-updates

Stdout from the command:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

Stderr from the command:

http://vault.centos.org/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn’t help to resolve this issue please use https://bugs.centos.org/.

One of the configured repositories failed (CentOS-7.7.1908 - Base),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=C7.7.1908-base ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable C7.7.1908-base
    or
        subscription-manager repos --disable=C7.7.1908-base

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=C7.7.1908-base.skip_if_unavailable=true

Have a look at this post (NB: don’t run the last command vagrant up infrastructure --provision) and this post.

Otherwise, wait a few days and the CentOS vault will be fixed.

Hi @phat_hoang,

Let me know if you still need help.

Kanika

FYI

The Vault repo has now been fixed (i.e. x86_64/ sub-folder has been created) so vagrant up should work without any additional steps: