Resolve 404 error while running bootstrap script in OPDK - thirdparty repo not found

If you face a similar issue to the following while running bootstrap to upgrade in OPDK, refer to the bottom section for possible resolution.

--------------------------------------

This is the error message upon running bootstrap_4.19.01.sh.

$> sudo bash /tmp/bootstrap_4.19.01.sh apigeeuser=********** apigeepassword=***********

Apigee bootstrap 1.0-19 (OPDK_1901, 2018.11.16,21:20)

=== Obtaining creds for software.apigee.com:

=== Begin work ...

=== Checking for presence of misc commands:

=== Checking distro:

=== Checking architecture:

=== Checking OS:

=== Checking SELinux status

=== Configuring package manager:

+ rpm -qa apigee*

+ rpm -e apigee-repo

warning: file /etc/yum/vars/apigeestage: remove failed: No such file or directory

warning: file /etc/yum/vars/apigeerepohost: remove failed: No such file or directory

warning: file /etc/yum/vars/apigeerepobasepath: remove failed: No such file or directory

warning: file /etc/yum/vars/apigeereleasever: remove failed: No such file or directory

warning: file /etc/yum/vars/apigeeprotocol: remove failed: No such file or directory

warning: file /etc/yum/vars/apigeepriority: remove failed: No such file or directory

warning: file /etc/yum/vars/apigeeexclude: remove failed: No such file or directory

warning: file /etc/yum/vars/apigeecredentialswithat: remove failed: No such file or directory

+ rpm -e apigeeprio-repo

error: package apigeeprio-repo is not installed

(error can be ignored)

+ yum install -y https://:***@software.apigee.com//apigee-repo.rpm

Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos,

: subscription-manager

This system is receiving updates from

=== Installing apigee-service:

+ yum install -y apigee-service

Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos,

: subscription-manager

This system is receiving updates from RHN Classic or Red Hat Satellite. https://{org_user_name}@software.apigee.com/thirdparty/7.4-18.el7/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

Trying other mirror.

To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

One of the configured repositories failed (Apigee Thirdparty Repo), 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=apigee-thirdparty ...

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 apigee-thirdparty

or

subscription-manager repos --disable=apigee-thirdparty

5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the 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=apigee-thirdparty.skip_if_unavailable=true

failure: repodata/repomd.xml from apigee-thirdparty: [Errno 256] No more mirrors to try. https://{org_user_name}:xxxxxxxxx@software.apigee.com/thirdparty/7.4-18.el7/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

------ end of error -----------

Rootcause

This error is because the yum repository thirdparty directory does not have a 7.4-18.el7 directory. We list the repo followed the main release as 7.

Steps to resolve the 404 thirdparty repo issue

1. Confirm that there is Internet connection from the server. If not, proceed to Install Edge offline [1].

2. Comment out the `distroverpkg` line in /etc/yum.conf (Idea inspired from this thread)

3. Changed `gpgcheck` to 0 in /etc/yum.repos.d/apigee.repo

4. Hardcode `$releasever` to 7 in /etc/yum.repos.d/apigee.repo

ie. change the line:

baseurl = "$apigeeprotocol$apigeecredentialswithat$apigeerepohost$apigeerepobasepath/thirdparty/$releasever" 

to:

baseurl = "$apigeeprotocol$apigeecredentialswithat$apigeerepohost$apigeerepobasepath/thirdparty/7" 

[1] https://docs.apigee.com/private-cloud/v4.19.01/offline-install-ops-manager

Comments
FelipeAvilis
Bronze 3
Bronze 3

I'm having the same issue while bootstrapping release 4.51 on a RHEL 8.2.
https://www.googlecloudcommunity.com/gc/Apigee/Cannot-download-repodata-repomd-xml/td-p/168557

I've tried to replace the $releasever variable in apigee.repo, like you did, but bootstraping script replaces it and the variable returns.

Version history
Last update:
‎05-15-2019 08:15 PM
Updated by: