[Spacewalk-list] rhn_check <type 'exceptions.OverflowError'> long int exceeds XML-RPC limits

john miller johnmille1 at gmail.com
Fri Sep 28 19:08:30 UTC 2012


I inserted a print traceback in /usr/share/rhn/up2date_client/rpcServer.py
by adding import traceback to the top of the file
and traceback.print_exc(file=sys.stdout) on line 55.

Traceback (most recent call last):
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 36, in _request1
    ret = self._request(methodname, params)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 377, in
_request
    request = self._req_body(self._strip_characters(params), methodname)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 232, in
_req_body
    return xmlrpclib.dumps(params, methodname, encoding=self._encoding)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1132, in dumps
    data = m.dumps(params)
  File "/usr/lib/python2.6/xmlrpclib.py", line 677, in dumps
    dump(v, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 699, in __dump
    f(self, value, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 759, in dump_array
    dump(v, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 699, in __dump
    f(self, value, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 780, in dump_struct
    dump(v, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 699, in __dump
    f(self, value, write)
  File "/usr/lib/python2.6/xmlrpclib.py", line 725, in dump_long
    raise OverflowError, "long int exceeds XML-RPC limits"

then I inserted  pprint(value) pprint(write) for the dump_long function at
724 and it fails on the following timestamp.

2953759076L
<built-in method append of list object at 0x9c498cc>

It looks like the system clock was wrong when this package was installed

  {'arch': 'i686',
   'epoch': '',
   'installtime': 2953759076L,
   'name': 'cloog-ppl',
   'release': '1.2.el6',
   'version': '0.15.7'},

looks like any packages installed when the clock is past 2036 will cause
this failure.

On Fri, Sep 28, 2012 at 10:07 AM, john miller <johnmille1 at gmail.com> wrote:

> I have a rhel 6.2 system with rhn-check-1.6.47.
>
> When I try to do rhn_check or rhn-profile-sync I get the following error:
>
> Updating package profile
> D: rpcServer: Calling XMLRPC registration.welcome_message
> D: rpcServer: Calling XMLRPC registration.update_packages
> An error occured talking to :
> <type 'exceptions.OverflowError'>
> long int exceeds XML-RPC limits
> Trying the next serverURL: http:///XMLRPC
>
>
> rhnreg_ks fails with
>
> D: rpcServer: Calling XMLRPC registration.add_packages
> An error occured talking to :
> <type 'exceptions.OverflowError'>
> long int exceeds XML-RPC limits
> Trying the next serverURL: http:///XMLRPC
>
> I can not find any server side logs indicating an error associated with
> the client error
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120928/a4ad1d82/attachment.htm>


More information about the Spacewalk-list mailing list