Login | Register
My pages Projects Community openCollabNet

Discussions > users > RE: FW: Fault: <Fault 1000: u'Function login called with wrong arg count'> after patching RPM.py

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

RE: FW: Fault: &lt;Fault 1000: u'Function login called with wrong arg count'&gt; after patching RPM.py

Reply

Author pjgeev
Full name Patrick Geever
Date 2005-01-06 14:59:09 PST
Message Jack,


Output from checking the anaconda-9.1.3-3.RHEL.i386.rpm file:

root@moe /local/rhel3 # rpm -K anaconda-9.1.3-3.RHEL.i386.rpm
anaconda-9.1.3-3.RHEL.i386.rpm: (sha1) dsa sha1 md5 gpg OK
root@moe /local/rhel3 #


Output from scan channel after removing the anaconda-9.1.3-3.RHEL.i386.rpm
file:

root@moe /root # cadmin scan_channel -l rhel3
https://moe.genscape.com/XMLRPC
Traceback (most recent call last):
  File "/usr/sbin/cadmin", line 125, in ?
    main()
  File "/usr/sbin/cadmin", line 118, in main
    scan_channels(sys.argv[2:])
  File "/usr/sbin/cadmin", line 55, in scan_channels
    result = rpcServer.doCall(ser​ver.cadmin.scanChann​els, chan)
  File "rpcServer.py", line 304, in doCall
  File "/usr/lib/python2.2/​xmlrpclib.py", line 821, in __call__
    return self.__send(self.__name, args)
  File "rpcServer.py", line 51, in _request1
  File "/usr/lib/python2.2/​site-packages/rhn/rp​clib.py", line 302, in _request
    verbose=self._verbose
  File "/usr/lib/python2.2/​site-packages/rhn/tr​ansports.py", line 208, in reques
t
    return self.parse_response(fd)
  File "/usr/lib/python2.2/​site-packages/rhn/tr​ansports.py", line 232, in parse_
response
    return u.close()
  File "/usr/lib/python2.2/​xmlrpclib.py", line 571, in close
    raise apply(Fault, (), self._stack[0])
xmlrpclib.Fault: <Fault 1000: 'Function scanChannels called with wrong arg count
'>




The current.log file after removing the anaconda-9.1.3-3.RHEL.i386.rpm
file:

Jan 06 17:52:56 Current v1.5.9 starting up
Jan 06 17:52:56 (/usr/share/current/​db/postgres/postgres​.py, getConnection(), 24): Obtaining connection
Jan 06 17:52:56 (/usr/share/current/​db/postgres/postgres​.py, getConnection(), 33): Connected via user/password
Jan 06 17:52:56 Inside Current main hander
Jan 06 17:52:56 Requesting: cadmin.scanChannels
Jan 06 17:52:56 with params = [{'channels': ['rhel3']}]
Jan 06 17:52:56 method = cadmin.scanChannels
Jan 06 17:52:56 module = cadmin
Jan 06 17:52:56 function = scanChannels
Jan 06 17:52:56 (/usr/share/current/​current_apache.py, callAPIMethod(), 273): params = [{'channels': ['rhel3']}]
Jan 06 17:52:56 Dispatching: cadmin.scanChannels
Jan 06 17:52:56 /usr/share/current/a​pi/cadmin.py:scanCha​nnels({'chanlist': {'channels': ['rhel3']}, 'result': {}})
Jan 06 17:52:56 /usr/share/current/d​b/currentdb.py:updat​eChannel({'channel':​ 'rhel3'})
Jan 06 17:52:57 /usr/share/current/d​b/currentdb.py:_addR​pms({'add_set': Set(['/local/rhel3/a​croread-plugin-5.08-​2.i386.rpm', '/local/rhel3/at-3.1​.8-48.ent.i386.rpm',​ '
/local/rhel3/anacond​a-runtime-9.1.3-3.RH​EL.i386.rpm', '/local/rhel3/arptab​les_jf-0.0.7-0.3E.i3​86.rpm', '/local/rhel3/autofs​-4.1.3-12.i386.rpm',​ '/local/rhel3/anaconda-
images-9.1-3.RHEL.noarch.rpm', '/local/rhel3/ant-li​bs-1.5.2-23.i386.rpm​', '/local/rhel3/ant-1.​5.2-23.i386.rpm', '/local/rhel3/acrore​ad-5.08-2.i386.rpm']​), 'channel': '
rhel3'})
Jan 06 17:52:57 Adding /local/rhel3/acrorea​d-plugin-5.08-2.i386​.rpm to channel rhel3
Jan 06 17:52:57 Query SOURCEPACKAGE on (acroread-plugin, i386)
Jan 06 17:52:57 Return of type = <type 'NoneType'>
Jan 06 17:52:57 Value of return = None
Jan 06 17:52:57 ERROR: Recognized function cadmin.scanChannels called with wrong arg count or other TypeError exception occured
Jan 06 17:5257 : EXCEPTION in /usr/share/current/c​urrent_apache.py, callAPIMethod(), 284 [logException()]
Traceback (most recent call last):
  File "/usr/share/current/​current_apache.py", line 278, in callAPIMethod
    result = apply(func, params)
  File "/usr/share/current/​api/cadmin.py", line 39, in scanChannels
    result[chan] = db.db.updateChannel(chan)
  File "/usr/share/current/​db/currentdb.py", line 156, in updateChannel
    result['addedrpms'] = self._addRpms(channel, added_rpms)
  File "/usr/share/current/​db/currentdb.py", line 318, in _addRpms
    pkg_id = self._insertPackageT​able(header)
  File "/usr/share/current/​db/currentdb.py", line 393, in _insertPackageTable
    header[RPM.SOURCEPACKAGE])
  File "/usr/share/current/RPM.py", line 72, in __getitem__
    return meth()
  File "/usr/share/current/RPM.py", line 87, in _get_SOURCEPACKAGE
    return int(self.is_source)
TypeError: int() argument must be a string or a number
Jan 06 17:52:57 params were: [{'channels': ['rhel3']}]
Jan 06 17:52:57 API Result = <Fault 1000: u'Function scanChannels called with wrong arg count'>
Jan 06 17:52:57 Fault: <Fault 1000: u'Function scanChannels called with wrong arg count'>
Jan 06 17:52:57 (/usr/share/current/​current_apache.py, sendClientResult(), 226): Data sent.
Jan 06 17:52:57 sendClientResult() finished


Hope that helps.

Thanks.

Patrick




-----Original Message-----
From: Jack Neely [mailto:jjneely at gmail dot com]
Sent: Thu 1/6/2005 5:45 PM
To: Patrick Geever
Cc: users at current dot tigris dot org
Subject: Re: FW: Fault: <Fault 1000: u'Function login called with wrong arg count'> after patching RPM.py
 
Patrick,

What was the product you are running. RHEL AS3? What rpm version?

Check anaconda-9.1.3-3.RHEL.i386.rpm and see if its valid (rpm -K).
Does the same error happen when you remove that rpm?

Patch comming...just want to check on the above.

Jack

On Thu, 6 Jan 2005 14:43:49 -0500, Jack Neely <jjneely at gmail dot com> wrote:
> Patrick,
>
> Okay, I think I see what's happening...or at least how to work around
> it. I'll write you another patch when I get home tonight.
>
> Jack
>
Attachments

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

RE: FW: Fault: &lt;Fault 1000: u'Function login called with wrong arg count'&gt; after patching RPM.py pjgeev Patrick Geever 2005-01-06 14:59:09 PST
Messages per page: