When upgrading/installing packages receiving the following message "[Errno 14] HTTP Error 500: Internal Server Error"

Solution Verified - Updated -

Issue

  • When upgrading/installing packages the clients receive a 500 error:

    openais-0.80.6-16.el5_5.1.x86_64: failed to retrieve getPackage/openais-0.80.6-16.el5_5.1.x86_64.rpm from rhel-x86_64-server-5 
    error was [Errno 14] HTTP Error 500: Internal Server Error  
    
  • Systems are behind RHN proxy and it also sends out a mail on following error

     Exception Handler Information
    Traceback (most recent call last):
     File "/usr/share/rhn/proxy/apacheServer.py", line 66, in __call__
       ret = f(req)
      File "/usr/share/rhn/proxy/apacheHandler.py", line 348, in handler
        ret = handlerObj.handler()
      File "/usr/share/rhn/proxy/redirect/rhnRedirect.py", line 93, in handler
        status = self._serverCommo(self.req.read())      # part 2
      File "/usr/share/rhn/proxy/rhnShared.py", line 217, in _serverCommo
        return self._handleServerResponse(status)
      File "/usr/share/rhn/proxy/redirect/rhnRedirect.py", line 165, in _handleServerResponse
        redirectStatus = self.__redirectFailover()
      File "/usr/share/rhn/proxy/redirect/rhnRedirect.py", line 413, in __redirectFailover
        self._connectToParent()
      File "/usr/share/rhn/proxy/rhnShared.py", line 102, in _connectToParent
        self.responseContext.setConnection(self._create_connection())
      File "/usr/share/rhn/proxy/responseContext.py", line 62, in setConnection
        self._getCurrentContext()[CXT_CONNECTION] = connection
      File "/usr/share/rhn/proxy/responseContext.py", line 101, in _getCurrentContext
        return self._contextStack[-1]
    IndexError: list index out of range
    
  • RHN Proxy trying to fetch packages from behind a HTTP proxy, client gets errors like

libexif-0.6.20.1.el5_7.1.x86_64: failed to retrieve getPackage/libexif-0.6.20-1.el5_7.1.x86_64.rpm from rhel-x86_64-server-5 error was [Errno 14] HTTP Error 500: Internal Server Error

squid proxy sees errors like

127.0.0.1 TCP_MISS/500 GET http://127.0.0.1/XMLRPC/GET-REQ/rhel-x86_64-server-5-repodata/<longstring>-primaru.xml.gz - DIRECT/127.0.0.1 text-html
127.0.0.1 TCP_NEGATIVE_HIT/500 http://127.0.0.1/XMLRPC/GET-REQ/rhel-x86_64-server-5/getPackage/whatever.el6.x86_64.rpm - DIRECT/127.0.0.1 text-html
  • Yum was throwing following error while updating via RHN proxy:
# yum update
Loaded plugins: rhnplugin
Error: failed to retrieve repodata/e7c6c5aaa65cca1cca463e055368e27165518044-primary.xml.gz from rhel-i386-server-5
error was [Errno 14] HTTP Error 500: Internal Server Error
  • On RHN Proxy we see below error
[error] OSError: [Errno 13] Permission denied: '/var/spool/rhn-proxy/list'

Environment

  • Red Hat Network Proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content