Spacewalk: While Updating the Clients Getting PYCURL ERROR 22 or HTTP Error 400 (Doc ID 2258220.1)

Last updated on JULY 10, 2017

Applies to:

Linux OS - Version Oracle Linux 6.0 with Unbreakable Enterprise Kernel [2.6.32] and later
Information in this document applies to any platform.

Symptoms


After updating linux clients are unable to update/install software via yum/rhnplugin and getting belo error OR PYCURL ERROR 22

yum.repos.d]# yum repolist -v
Loading "rhnplugin" plugin
Loading "langpacks" plugin
Adding en_US.UTF-8 to language list
Config time: 0.057
This system is receiving updates from Spacewalk server.
Looking for repo options for [main]
Looking for repo options for [sfdc-oraclelinux7-x86_64]
Repo 'sfdc-oraclelinux7-x86_64' setting option 'enabled' = '1'
Repo 'sfdc-oraclelinux7-x86_64' setting option 'gpgcheck' = '1'
Repo 'sfdc-oraclelinux7-x86_64' setting option 'timeout' = '120'
Looking for repo options for [sfdc-ol7_x86_64_oracle]
Repo 'sfdc-ol7_x86_64_oracle' setting option 'enabled' = '1'
Repo 'sfdc-ol7_x86_64_oracle' setting option 'gpgcheck' = '1'
Repo 'sfdc-ol7_x86_64_oracle' setting option 'timeout' = '120'
Looking for repo options for [sfdc-ol7_x86_64_u2_patch]
Repo 'sfdc-ol7_x86_64_u2_patch' setting option 'enabled' = '1'
Repo 'sfdc-ol7_x86_64_u2_patch' setting option 'gpgcheck' = '1'
Repo 'sfdc-ol7_x86_64_u2_patch' setting option 'timeout' = '120'
Looking for repo options for [sfdc-oraclelinux7-x86_64-addons]
Repo 'sfdc-oraclelinux7-x86_64-addons' setting option 'enabled' = '1'
Repo 'sfdc-oraclelinux7-x86_64-addons' setting option 'gpgcheck' = '1'
Repo 'sfdc-oraclelinux7-x86_64-addons' setting option 'timeout' = '120'
Looking for repo options for [sfdc-oraclelinux7-x86_64-optional]
Repo 'sfdc-oraclelinux7-x86_64-optional' setting option 'enabled' = '1'
Repo 'sfdc-oraclelinux7-x86_64-optional' setting option 'gpgcheck' = '1'
Repo 'sfdc-oraclelinux7-x86_64-optional' setting option 'timeout' = '120'
Looking for repo options for [sfdc-oraclelinux7-x86_64-uek-r3]
Repo 'sfdc-oraclelinux7-x86_64-uek-r3' setting option 'enabled' = '1'
Repo 'sfdc-oraclelinux7-x86_64-uek-r3' setting option 'gpgcheck' = '1'
Repo 'sfdc-oraclelinux7-x86_64-uek-r3' setting option 'timeout' = '120'
Looking for repo options for [sfdc-oraclelinux7-x86_64-scl12]
Repo 'sfdc-oraclelinux7-x86_64-scl12' setting option 'enabled' = '1'
Repo 'sfdc-oraclelinux7-x86_64-scl12' setting option 'gpgcheck' = '1'
Repo 'sfdc-oraclelinux7-x86_64-scl12' setting option 'timeout' = '120'
Looking for repo options for [sfdc-oraclelinux7-x86_64-spacewalk24-client]
Repo 'sfdc-oraclelinux7-x86_64-spacewalk24-client' setting option 'enabled' = '1'
Repo 'sfdc-oraclelinux7-x86_64-spacewalk24-client' setting option 'gpgcheck' = '1'
Repo 'sfdc-oraclelinux7-x86_64-spacewalk24-client' setting option 'timeout' = '120'
Yum version: 3.4.3

One of the configured repositories failed (Unknown),
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=<repoid> ...

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 <repoid>
or
subscription-manager repos --disable=<repoid>

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=<repoid>.skip_if_unavailable=true

failed to retrieve repodata/repomd.xml from sfdc-ol7_x86_64_oracle
error was [Errno 14] HTTP Error 400 - Bad Request <<<<<===========

Changes

 System upgraded with latest version

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms