Login | Register
My pages Projects Community openCollabNet

Discussions > users > 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

Hide all messages in topic

All messages in topic

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

Reply

Author theslack
Full name Jack Neely
Date 2005-01-06 14:45:33 PST
Message 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
>

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
For additional commands, e-mail: users-help at current dot tigris dot org

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

Reply

Author theslack
Full name Jack Neely
Date 2005-01-06 11:43:49 PST
Message 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

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: users-unsubscribe@cu​rrent.tigris.org
For additional commands, e-mail: users-help at current dot tigris dot org

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 08:34:06 PST
Message Jack,

Here is the output from scan channels after applying the RPM.patch file to RPM.py.


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
'>




Here the current.log file, log_level = 5, after applying the RPM.patch file to RPM.py.

Jan 06 10:22:19 Current v1.5.9 starting up
Jan 06 10:22:19 (/usr/share/current/​db/postgres/postgres​.py, getConnection(), 24): Obtaining connection
Jan 06 10:22:19 (/usr/share/current/​db/postgres/postgres​.py, getConnection(), 33): Connected via user/password
Jan 06 10:22:19 Inside Current main hander
Jan 06 10:22:19 Requesting: cadmin.scanChannels
Jan 06 10:22:19 with params = [{'channels': ['rhel3']}]
Jan 06 10:22:19 method = cadmin.scanChannels
Jan 06 10:22:19 module = cadmin
Jan 06 10:22:19 function = scanChannels
Jan 06 10:22:19 (/usr/share/current/​current_apache.py, callAPIMethod(), 273): params = [{'channels': ['rhel3']}]
Jan 06 10:22:19 Dispatching: cadmin.scanChannels
Jan 06 10:22:19 /usr/share/current/a​pi/cadmin.py:scanCha​nnels({'chanlist': {'channels': ['rhel3']}, 'result': {}})
Jan 06 10:22:19 /usr/share/current/d​b/currentdb.py:updat​eChannel({'channel':​ 'rhel3'})
Jan 06 10:22:19 /usr/share/current/d​b/currentdb.py:_addR​pms({'add_set': Set(['/local/rhel3/a​naconda-9.1.3-3.RHEL​.i386.rpm', '/local/rhel3/acrore​ad-plugin-5.08-2.i38​6.r
pm', '/local/rhel3/at-3.1​.8-48.ent.i386.rpm',​ '/local/rhel3/anacon​da-runtime-9.1.3-3.R​HEL.i386.rpm', '/local/rhel3/arptab​les_jf-0.0.7-0.3E.i3​86.rpm', '/local/rhel3/aut
ofs-4.1.3-12.i386.rpm', '/local/rhel3/anacon​da-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/acroread-5.08-​2.i386.rpm']), 'channel': 'rhel3'})
Jan 06 10:22:19 Adding /local/rhel3/anacond​a-9.1.3-3.RHEL.i386.​rpm to channel rhel3
Jan 06 10:22:19 Query SOURCEPACKAGE on (anaconda, i386)
Jan 06 10:22:19 Return of type = <type 'NoneType'>
Jan 06 10:22:19 Value of return = None
Jan 06 10:22:19 ERROR: Recognized function cadmin.scanChannels called with wrong arg count or other TypeError exception occured
Jan 06 10:2219 : 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 10:22:19 params were: [{'channels': ['rhel3']}]
Jan 06 10:22:19 API Result = <Fault 1000: u'Function scanChannels called with wrong arg count'>
Jan 06 10:22:19 Fault: <Fault 1000: u'Function scanChannels called with wrong arg count'>
Jan 06 10:22:19 (/usr/share/current/​current_apache.py, sendClientResult(), 226): Data sent.
Jan 06 10:22:19 sendClientResult() finished



Thanks again.

Patrick



-----Original Message-----
From: Patrick Geever
Sent: Thu 1/6/2005 10:15 AM
To: Jack Neely; users at current dot tigris dot org
Subject: RE: Fault: <Fault 1000: u'Function login called with wrong arg count'>
 
Jack,

Here is the output from scan channels. I have left just 10 rpm files in the repository directory, "/local/rhel3", just to make the log more readable.

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'>




Here the current.log file, log_level = 5:

Jan 06 09:59:12 Current v1.5.9 starting up
Jan 06 09:59:12 (/usr/share/current/​db/postgres/postgres​.py, getConnection(), 24): Obtaining connection
Jan 06 09:59:12 (/usr/share/current/​db/postgres/postgres​.py, getConnection(), 33): Connected via user/password
Jan 06 09:59:12 Inside Current main hander
Jan 06 09:59:12 Requesting: cadmin.scanChannels
Jan 06 09:59:12 with params = [{'channels': ['rhel3']}]
Jan 06 09:59:12 method = cadmin.scanChannels
Jan 06 09:59:12 module = cadmin
Jan 06 09:59:12 function = scanChannels
Jan 06 09:59:12 (/usr/share/current/​current_apache.py, callAPIMethod(), 273): params = [{'channels': ['rhel3']}]
Jan 06 09:59:12 Dispatching: cadmin.scanChannels
Jan 06 09:59:12 /usr/share/current/a​pi/cadmin.py:scanCha​nnels({'chanlist': {'channels': ['rhel3']}, 'result': {}})
Jan 06 09:59:12 /usr/share/current/d​b/currentdb.py:updat​eChannel({'channel':​ 'rhel3'})
Jan 06 09:59:12 /usr/share/current/d​b/currentdb.py:_addR​pms({'add_set': Set(['/local/rhel3/a​naconda-9.1.3-3.RHEL​.i386.rpm', '/local/rhel3/acrore​ad-plugin-5.08-2.i38​6.r
pm', '/local/rhel3/at-3.1​.8-48.ent.i386.rpm',​ '/local/rhel3/anacon​da-runtime-9.1.3-3.R​HEL.i386.rpm', '/local/rhel3/arptab​les_jf-0.0.7-0.3E.i3​86.rpm', '/local/rhel3/aut
ofs-4.1.3-12.i386.rpm', '/local/rhel3/anacon​da-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/acroread-5.08-​2.i386.rpm']), 'channel': 'rhel3'})
Jan 06 09:59:12 Adding /local/rhel3/anacond​a-9.1.3-3.RHEL.i386.​rpm to channel rhel3
Jan 06 09:59:12 ERROR: Recognized function cadmin.scanChannels called with wrong arg count or other TypeError exception occured
Jan 06 09:5912 : 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 70, in __getitem__
    return meth()
  File "/usr/share/current/RPM.py", line 80, in _get_SOURCEPACKAGE
    return int(self.is_source)
TypeError: int() argument must be a string or a number
Jan 06 09:59:12 params were: [{'channels': ['rhel3']}]
Jan 06 09:59:12 API Result = <Fault 1000: u'Function scanChannels called with wrong arg count'>
Jan 06 09:59:12 Fault: <Fault 1000: u'Function scanChannels called with wrong arg count'>
Jan 06 09:59:12 (/usr/share/current/​current_apache.py, sendClientResult(), 226): Data sent.
Jan 06 09:59:12 sendClientResult() finished


I will apply the patch you sent and send the output in the next message.

Thanks.

Patrick



-----Original Message-----
From: Jack Neely [mailto:jjneely at gmail dot com]
Sent: Wed 1/5/2005 9:21 PM
To: users at current dot tigris dot org
Cc: Patrick Geever
Subject: Fwd: Fault: <Fault 1000: u'Function login called with wrong arg count'>
 
Patrick,

Can you make sure you are running Current 1.5.9 and that the Current
server is still tracebacking during scan channels with this traceback?

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 152, in updateChannel
    result['addedrpms'] = self._addRpms(channel, added_rpms)
  File "/usr/share/current/​db/currentdb.py", line 311, in _addRpms
    pkg_id = self._insertPackageT​able(header)
  File "/usr/share/current/​db/currentdb.py", line 385, in _insertPackageTable
    header[RPM.SOURCEPACKAGE])
  File "/usr/share/current/RPM.py", line 70, in __getitem__
    return meth()
  File "/usr/share/current/RPM.py", line 80, in _get_SOURCEPACKAGE
    return int(self.is_source)
TypeError: int() argument must be a string or a number

If that is still the case I would like you to apply the attached
patch. This doesn't fix the problem but will tell me what is going on
there.

Jack
Attachments
Messages per page: