"502 Proxy Error" when running Satellite API script

Solution Verified - Updated -

Issue

  • API script fails with traceback error like the following:

    Traceback (most recent call last): 
      File "./errata-clone-2023766.py", line 125, in ? 
        main() 
      File "./errata-clone-2023766.py", line 118, in main 
        myserver.cloneErrata(options.dest_channel, aerrata) 
      File "./errata-clone-2023766.py", line 53, in cloneErrata 
        out = self.server.errata.clone(self.rhnSession,dest_chan,errata) 
      File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__ 
        return self.__send(self.__name, args) 
      File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request 
        verbose=self.__verbose 
      File "/usr/lib64/python2.4/xmlrpclib.py", line 1137, in request 
        headers 
    xmlrpclib.ProtocolError: <ProtocolError for localhost/rpc/api: 502 Proxy Error> 
    

Environment

  • Red Hat Network Satellite

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In