Spacewalk: While Updating the Clients Getting PYCURL ERROR 22 or HTTP Error 400
(Doc ID 2258220.1)
Last updated on APRIL 03, 2023
Applies to:
Linux OS - Version Oracle Linux 6.0 with Unbreakable Enterprise Kernel [2.6.32] and laterOracle Cloud Infrastructure - Version N/A and later
Linux x86
Linux x86-64
Symptoms
After updating spacewalk server then linux clients are unable to update/install software via yum/rhnplugin and getting belo error OR PYCURL ERROR 22
# 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 [<HOST>-oraclelinux7-x86_64]
Repo '<HOST>-oraclelinux7-x86_64' setting option 'enabled' = '1'
Repo '<HOST>-oraclelinux7-x86_64' setting option 'gpgcheck' = '1'
Repo '<HOST>-oraclelinux7-x86_64' setting option 'timeout' = '120'
Looking for repo options for [<HOST>-ol7_x86_64_oracle]
Repo '<HOST>-ol7_x86_64_oracle' setting option 'enabled' = '1'
Repo '<HOST>-ol7_x86_64_oracle' setting option 'gpgcheck' = '1'
Repo '<HOST>-ol7_x86_64_oracle' setting option 'timeout' = '120'
Looking for repo options for [<HOST>-ol7_x86_64_u2_patch]
Repo '<HOST>-ol7_x86_64_u2_patch' setting option 'enabled' = '1'
Repo '<HOST>-ol7_x86_64_u2_patch' setting option 'gpgcheck' = '1'
Repo '<HOST>-ol7_x86_64_u2_patch' setting option 'timeout' = '120'
Looking for repo options for [<HOST>-oraclelinux7-x86_64-addons]
Repo '<HOST>-oraclelinux7-x86_64-addons' setting option 'enabled' = '1'
Repo '<HOST>-oraclelinux7-x86_64-addons' setting option 'gpgcheck' = '1'
Repo '<HOST>-oraclelinux7-x86_64-addons' setting option 'timeout' = '120'
Looking for repo options for [<HOST>-oraclelinux7-x86_64-optional]
Repo '<HOST>-oraclelinux7-x86_64-optional' setting option 'enabled' = '1'
Repo '<HOST>-oraclelinux7-x86_64-optional' setting option 'gpgcheck' = '1'
Repo '<HOST>-oraclelinux7-x86_64-optional' setting option 'timeout' = '120'
Looking for repo options for [<HOST>-oraclelinux7-x86_64-uek-r3]
Repo '<HOST>-oraclelinux7-x86_64-uek-r3' setting option 'enabled' = '1'
Repo '<HOST>-oraclelinux7-x86_64-uek-r3' setting option 'gpgcheck' = '1'
Repo '<HOST>-oraclelinux7-x86_64-uek-r3' setting option 'timeout' = '120'
Looking for repo options for [<HOST>-oraclelinux7-x86_64-scl12]
Repo '<HOST>-oraclelinux7-x86_64-scl12' setting option 'enabled' = '1'
Repo '<HOST>-oraclelinux7-x86_64-scl12' setting option 'gpgcheck' = '1'
Repo '<HOST>-oraclelinux7-x86_64-scl12' setting option 'timeout' = '120'
Looking for repo options for [<HOST>-oraclelinux7-x86_64-spacewalk24-client]
Repo '<HOST>-oraclelinux7-x86_64-spacewalk24-client' setting option 'enabled' = '1'
Repo '<HOST>-oraclelinux7-x86_64-spacewalk24-client' setting option 'gpgcheck' = '1'
Repo '<HOST>-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
Spacewalk Server upgraded with latest version
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |