[Spacewalk-list] Spacewalk server HTTPS Error 400 - Bad Request

Radovan Drazny rdrazny at redhat.com
Fri Apr 21 13:52:57 UTC 2017


Robin,

this behavior is most likely caused by strict whitespace checking in httpd. 
Try adding "HttpProtocolOptions Unsafe" directive to httpd config on your SW 
server, and restart the httpd daemon. For more info see https://
httpd.apache.org/docs/2.4/mod/core.html#httpprotocoloptions

When an updated version of yum-rhn-plugin from Oracle will be available and 
installed on your clients, you can remove the directive from you httpd config.

Problem is, I'm not sure this config option is available in the httpd version 
shipped with Oracle linux. If httpd fails during the restart, remove the 
"HttpProtocolOption". 

In such case, the easiest workaround is what Avi recommended - you just have 
to obtain previous versions of httpd, httpd-tools and mod_ssl rpms, and do a 
manual downgrade.

Best regards

--
Radovan

On Friday, April 21, 2017 2:49:16 PM CEST Robin Beardsley wrote:
> Avi
> 
> Thanks for the info.  When I try and downgrade, I still get the same 404
> error.
 
> [root at oelsandbox ~]# yum downgrade httpd httpd-tools mod_ssl
> Loaded plugins: langpacks, rhnplugin, versionlock
> This system is receiving updates from Spacewalk server.
> 
> 
> 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 oraclelinux7-x86_64
> error was [Errno 14] HTTPS Error 400 - Bad Request
> 
> My repolist:
> [root at oelsandbox ~]# yum repolist
> Loaded plugins: langpacks, rhnplugin, versionlock
> This system is receiving updates from Spacewalk server.
> repo id                                repo name                            
>                      status
 oraclelinux7-x86_64                    Oracle
> Linux 7 (x86_64)                                    0
> oraclelinux7-x86_64-addons             Addons for Oracle Linux 7 (x86_64)  
>                       0 oraclelinux7-x86_64-optional           Optional
> Packages for Oracle Linux 7 (x86_64)              0
> oraclelinux7-x86_64-scl12              Software Collection Library release
> 1.2 packages for Oracl 0 oraclelinux7-x86_64-spacewalk24-client Spacewalk
> 2.4 Client for Oracle Linux 7 (x86_64)           0
> oraclelinux7-x86_64-spacewalk24-server Spacewalk 2.4 Server for Oracle
> Linux 7 (x86_64)           0 oraclelinux7-x86_64-uek-r3             Latest
> Unbreakable Enterprise Kernel Release 3 for Oracle  0 repolist: 0
> [root at oelsandbox ~]#
> 
> From: spacewalk-list-bounces at redhat.com
> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Avi Miller
 Sent:
> Thursday, April 20, 2017 4:09 PM
> To: spacewalk-list at redhat.com
> Subject: Re: [Spacewalk-list] Spacewalk server HTTPS Error 400 - Bad
> Request
 
> Hi,
> 
> 
> > On 21 Apr 2017, at 1:23 am, Robin Beardsley
> > <RBeardsley at nedelta.com<mailto:RBeardsley at nedelta.com>> wrote:
>
> >
> >
> > I’m hoping someone can help me. Today I tried to update my one of my
> > clients from my Spacewalker server and got this error.
> 
> You need to downgrade httpd on your Spacewalk server and wait for updated
> yum-rhn-plugin packages from Oracle. We’re pushing them out ASAP. Once
> we’ve released the new yum-rhn-plugin RPMs and you’ve upgraded all your
> clients, you can upgrade httpd on your server again.
 
> To downgrade, run:
> 
> # yum downgrade httpd httpd-tools mod_ssl
> 
> On your Spacewalk server. That should restore functionality.
> 
> Cheers,
> Avi
> 
> --
> Oracle <http://www.oracle.com<http://www.oracle.com>>
> Avi Miller | Product Management Director | +61 (3) 8616 3496
> Oracle Linux and Virtualization
> 417 St Kilda Road, Melbourne, Victoria 3004 Australia
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
> https://www.redhat.com/mailman/listinfo/spacewalk-list<https://www.redhat.co
> m/mailman/listinfo/spacewalk-list>






More information about the Spacewalk-list mailing list