Login | Register
My pages Projects Community openCollabNet

Discussions > issues > Fault: <Fault 1000: u'Function login called with wrong arg count'>

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

current
Discussion topic

Back to topic list

Fault: &lt;Fault 1000: u'Function login called with wrong arg count'&gt;

Reply

Author pjgeev
Full name Patrick Geever
Date 2004-12-14 08:04:37 PST
Message I am having an issue with deploy of current.

I have installed current 1.5.7 via rpm and applied the 1.5.8 patch for the file: xmlrpc.py.

I have installed it on a rhel3-i386 system using rh-postgresql-server-7.3.4-8, etc. as the database. I seem to have gotten it installed correctly as far as I can tell. The output from the db shows the database objects being created by the cadmin initdb command:


NOTICE: CREATE TABLE / UNIQUE will create implicit index 'package_package_id_key' for table 'package'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'rpm_rpm_id_key' for table 'rpm'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'rpm_filename_key' for table 'rpm'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'channel_rpm_channel​_rpm_id_key' for table 'channel_rpm'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'channel_rpm_active_​active_id_key' for table 'channel_rpm_active'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'rpmprovide_rpmprovide_id_key' for table 'rpmprovide'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'rpmpayload_rpmpayload_id_key' for table 'rpmpayload'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'rpmobsolete_rpmobso​lete_id_key' for table 'rpmobsolete'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'channel_channel_id_key' for table 'channel'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'channel_name_key' for table 'channel'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'channel_label_key' for table 'channel'
NOTICE: CREATE TABLE / UNIQUE will create implicit index 'channel_dir_channel​_dir_id_key' for table 'channel_dir'



I have created a channel, configured apache and installed a new certificate.


Now there seems to be a problem with authentication into the current server.



Here is the output I get in current.log when running: up2date --register

Dec 14 10:57:57 Current v1.5.7 starting up
Dec 14 10:57:57 Inside Current main hander
Dec 14 10:57:57 Requesting: registration.welcome_message
Dec 14 10:57:57 method = registration.welcome_message
Dec 14 10:57:57 Dispatching: registration.welcome_message
Dec 14 10:57:57 Result is normal data: turn it into an XML chunk
Dec 14 10:57:57 sendClientResult() finished
Dec 14 10:57:57 Current v1.5.7 starting up
Dec 14 10:57:57 Inside Current main hander
Dec 14 10:57:57 Requesting: registration.privacy_statement
Dec 14 10:57:57 method = registration.privacy_statement
Dec 14 10:57:57 Dispatching: registration.privacy_statement
Dec 14 10:57:57 Result is normal data: turn it into an XML chunk
Dec 14 10:57:57 sendClientResult() finished
Dec 14 10:58:02 Current v1.5.7 starting up
Dec 14 10:58:02 Inside Current main hander
Dec 14 10:58:02 Requesting: registration.welcome_message
Dec 14 10:58:02 method = registration.welcome_message
Dec 14 10:58:02 Dispatching: registration.welcome_message
Dec 14 10:58:03 Result is normal data: turn it into an XML chunk
Dec 14 10:58:03 sendClientResult() finished
Dec 14 10:58:16 Current v1.5.7 starting up
Dec 14 10:58:16 Inside Current main hander
Dec 14 10:58:16 Requesting: registration.reserve_user
Dec 14 10:58:16 method = registration.reserve_user
Dec 14 10:58:16 Dispatching: registration.reserve_user
Dec 14 10:58:16 Result is normal data: turn it into an XML chunk
Dec 14 10:58:16 sendClientResult() finished
Dec 14 10:58:31 Current v1.5.7 starting up
Dec 14 10:58:31 Inside Current main hander
Dec 14 10:58:31 Requesting: registration.new_user
Dec 14 10:58:31 method = registration.new_user
Dec 14 10:58:31 Dispatching: registration.new_user
Dec 14 10:58:31 Result is normal data: turn it into an XML chunk
Dec 14 10:58:31 sendClientResult() finished
Dec 14 10:58:31 Current v1.5.7 starting up
Dec 14 10:58:31 Inside Current main hander
Dec 14 10:58:31 Requesting: registration.new_system
Dec 14 10:58:31 method = registration.new_system
Dec 14 10:58:31 Dispatching: registration.new_system
Dec 14 10:58:31 Result is normal data: turn it into an XML chunk
Dec 14 10:58:31 sendClientResult() finished
Dec 14 10:58:31 Current v1.5.7 starting up
Dec 14 10:58:31 Inside Current main hander
Dec 14 10:58:31 Requesting: registration.register_product
Dec 14 10:58:31 method = registration.register_product
Dec 14 10:58:31 Dispatching: registration.register_product
Dec 14 10:58:31 Result is normal data: turn it into an XML chunk
Dec 14 10:58:31 sendClientResult() finished
Dec 14 10:58:32 Current v1.5.7 starting up
Dec 14 10:58:32 Inside Current main hander
Dec 14 10:58:32 Requesting: registration.add_hw_profile
Dec 14 10:58:32 method = registration.add_hw_profile
Dec 14 10:58:32 Dispatching: registration.add_hw_profile
Dec 14 10:58:32 Result is normal data: turn it into an XML chunk
Dec 14 10:58:32 sendClientResult() finished
Dec 14 10:58:32 Inside Current main hander
Dec 14 10:58:33 Requesting: registration.add_packages
Dec 14 10:58:33 method = registration.add_packages
Dec 14 10:58:33 Dispatching: registration.add_packages
Dec 14 10:58:33 Result is normal data: turn it into an XML chunk
Dec 14 10:58:33 sendClientResult() finished
Dec 14 10:58:33 Inside Current main hander
Dec 14 10:58:33 Requesting: up2date.login
Dec 14 10:58:33 method = up2date.login
Dec 14 10:58:33 Dispatching: up2date.login
Dec 14 10:58:33 ERROR: Recognized function up2date.login called with wrong arg c
ount or other TypeError exception occured
Dec 14 10:5833 : EXCEPTION in /usr/share/current/c​urrent_apache.py, callAPIMetho
d(), 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/up2date.py", line 72, in login
    hi.setChecksum()
  File "/usr/share/current/auth.py", line 235, in setChecksum
    self.data['X-RHN-Auth'] = self._calcChecksum()
  File "/usr/share/current/auth.py", line 226, in _calcChecksum
    str = str + chan[0] + ':' + chan[1]
TypeError: cannot concatenate 'str' and 'NoneType' objects
Dec 14 10:58:33 Fault: <Fault 1000: u'Function login called with wrong arg count
'>
Dec 14 10:58:33 sendClientResult() finished






Here is the output I get in current.log when running: up2date

Dec 14 11:00:51 Inside Current main hander
Dec 14 11:00:51 Requesting: up2date.login
Dec 14 11:00:51 method = up2date.login
Dec 14 11:00:51 Dispatching: up2date.login
Dec 14 11:00:51 ERROR: Recognized function up2date.login called with wrong arg count or other TypeError exception occured
Dec 14 11:0051 : 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/up2date.py", line 72, in login
    hi.setChecksum()
  File "/usr/share/current/auth.py", line 235, in setChecksum
    self.data['X-RHN-Auth'] = self._calcChecksum()
  File "/usr/share/current/auth.py", line 226, in _calcChecksum
    str = str + chan[0] + ':' + chan[1]
TypeError: cannot concatenate 'str' and 'NoneType' objects
Dec 14 11:00:51 Fault: <Fault 1000: u'Function login called with wrong arg count'>
Dec 14 11:00:51 sendClientResult() finished






Any ideas as to what could be wrong here? Please let me know if there is any further logging I need to do etc.

Thanks.

Patrick Geever
Database Administrator
Genscape, Inc.
301 East Main Street, Suite 200
Louisville, KY 40202
(W) 502-583-2298
(C) 502-432-4073
patrick dot geever at genscape dot com
Attachments

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

Messages

Show all messages in topic

Fault: &lt;Fault 1000: u'Function login called with wrong arg count'&gt; pjgeev Patrick Geever 2004-12-14 08:04:37 PST
Messages per page: