"Could not find session with id" error when running Satellite API script

Solution Verified - Updated -

Issue

  • API script fails with 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 1147, in request 
        return self._parse_response(h.getfile(), sock) 
      File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response 
        return u.close() 
      File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close 
        raise Fault(**self._stack[0]) 
    xmlrpclib.Fault:
    <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal
    exception: Could not find session with id: 6265'> 
    

Environment

  • Red Hat Network Satellite

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