Description

from Internal error 500 - Python script

Steps to reproduce

call site http://wiki.ubuntuusers.de/Upgrade

Example

Component selection

Details

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

    • /srv/www/de/bin/MoinMoin/request.py in init (self=<MoinMoin.request.RequestWSGI object>, env={'DOCUMENT_ROOT': '/htdocs', 'FCGI_ROLE': 'RESPONDER', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'ubuntuusers_data=a%3A2%3A%7Bs%3A11%3A%22autologi...i%3A1174177463%3Bi%3A77764%3Bi%3A1174180302%3B%7D', 'HTTP_HOST': 'wiki.ubuntuusers.de', ...})

      1. 2079
      2. 2080 self._setup_vars_from_std_env(env)
      3. 2081 RequestBase.init(self, {})

      4. 2082
      5. 2083 except Exception, err:
    • /srv/www/de/bin/MoinMoin/request.py in init (self=<MoinMoin.request.RequestWSGI object>, properties={})

      1. 189 self.rootpage = Page(self, rootname, is_rootpage=1)
      2. 190
      3. 191 self.user = self.get_user_from_form()
      4. 192
      5. 193 if not self.query_string.startswith('action=xmlrpc'):
        • self = <MoinMoin.request.RequestWSGI object>

        • self.user undefined
        • self.get_user_from_form = <bound method RequestWSGI.get_user_from_form of <MoinMoin.request.RequestWSGI object>>

    • /srv/www/de/bin/MoinMoin/request.py in get_user_from_form (self=<MoinMoin.request.RequestWSGI object>)

      1. 554 u = self.get_user_default_unknown(name=name, password=password,
      2. 555 login=login, logout=logout,
      3. 556 user_obj=None)
      4. 557 return u
      5. 558
        • user_obj undefined
        • builtin None = None
    • /srv/www/de/bin/MoinMoin/request.py in get_user_default_unknown (self=<MoinMoin.request.RequestWSGI object>, **kw={'login': False, 'logout': False, 'name': None, 'password': None, 'user_obj': None})

      1. 559 def get_user_default_unknown(self, **kw):
      2. 560 """ call do_auth and if it doesnt return a user object, make some "Unknown User" """
      3. 561 user_obj = self.get_user_default_None(**kw)
      4. 562 if user_obj is None:
      5. 563 user_obj = user.User(self, auth_method="request:427")
        • user_obj undefined
        • self = <MoinMoin.request.RequestWSGI object>

        • self.get_user_default_None = <bound method RequestWSGI.get_user_default_None of <MoinMoin.request.RequestWSGI object>>

        • kw = {'login': False, 'logout': False, 'name': None, 'password': None, 'user_obj': None}
    • /srv/www/de/bin/MoinMoin/request.py in get_user_default_None (self=<MoinMoin.request.RequestWSGI object>, **kw={'login': False, 'logout': False, 'name': None, 'password': None, 'user_obj': None})

      1. 573 for auth in self.cfg.auth:
      2. 574 user_obj, continue_flag = auth(self, name=name, password=password,
      3. 575 login=login, logout=logout, user_obj=user_obj)
      4. 576 if not continue_flag:
      5. 577 break
        • login = False
        • logout = False
        • user_obj = None
    • /srv/www/de/wiki/phpBBsession.py in call (self=<phpBBsession.phpBB object>, request=<MoinMoin.request.RequestWSGI object>, **opt={'login': False, 'logout': False, 'name': None, 'password': None, 'user_obj': None})

      1. 124
      2. 125 # Update the session and user table.
      3. 126 self.UpdateUserAndCookieInDB()
      4. 127
      5. 128 # Vorbelegen der Moin-Auth Variablen.
        • self = <phpBBsession.phpBB object>

        • self.UpdateUserAndCookieInDB = <bound method phpBB.UpdateUserAndCookieInDB of <phpBBsession.phpBB object>>

    • /srv/www/de/wiki/phpBBsession.py in UpdateUserAndCookieInDB (self=<phpBBsession.phpBB object>)

      1. 55 cur.execute("set character set 'utf8'")
      2. 56 try:
      3. 57 cur.execute(

      4. 58 UPDATE %(prefix)ssessions s
      5. 59 SET session_time = %i,
        • cur = <MySQLdb.cursors.Cursor object>

        • cur.execute = <bound method Cursor.execute of <MySQLdb.cursors.Cursor object>>

        • self = <phpBBsession.phpBB object>

        • self.config = {'base_url': 'base_url[1', 'cookiedomain2': ".'.$base_ur", 'dbhost': 'sql1.ubuntu-eu.org', 'dbms': 'mysql4', 'dbname': 'ubuntu_de', 'dbpasswd': 'g69gfzf', 'dbuser': 'ubuntu_de', 'forum_login_url': "http://forum.'.$base_url.'/login/", 'forum_logout_url': "http://forum.'.$base_url.'/logout/", 'portal_root_url': "http://'.$base_url.'/", ...}

        • self.session_time = 1174180781.712394
        • self.session_id = '76164059ecbb4a085207700ebbfa2cd7'

TypeError

not enough arguments for format string

System Details

Workaround

Discussion

Plan

  • Priority:
  • Assigned to:
  • Status: not a moin bug, but a bug in a 3rd party auth plugin


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/Python script (last edited 2007-10-29 19:06:42 by localhost)