A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /usr/lib/pymodules/python2.7/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>) |
556 """Runs the handler, flushes the streams, and ends the request."""
|
557 try:
|
=> 558 protocolStatus, appStatus = self.server.handler(self)
|
559 except:
|
560 traceback.print_exc(file=self.stderr)
|
| protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>> |
| /usr/lib/pymodules/python2.7/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>) |
1116 try:
|
1117 try:
|
=> 1118 result = self.application(environ, start_response)
|
1119 try:
|
1120 for data in result:
|
| result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <function script_name_fixer>, environ = {'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'MOIN_SESSION_80_ROOT_community=7f23d53f52e7a390909603963f57905f85e42140', 'HTTP_HOST': 'help.ubuntu.com', 'HTTP_REFERER': 'https://irclogs.ubuntu.com/2010/04/10/%23ubuntu-mozillateam.html', 'HTTP_SURROGATE_CAPABILITY': 'yangmei.canonical.com="Surrogate/1.0 ESI/1.0"', ...}, start_response = <function start_response> |
| /srv/help.ubuntu.com/moin.fcgi in script_name_fixer(env={'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'MOIN_SESSION_80_ROOT_community=7f23d53f52e7a390909603963f57905f85e42140', 'HTTP_HOST': 'help.ubuntu.com', 'HTTP_REFERER': 'https://irclogs.ubuntu.com/2010/04/10/%23ubuntu-mozillateam.html', 'HTTP_SURROGATE_CAPABILITY': 'yangmei.canonical.com="Surrogate/1.0 ESI/1.0"', ...}, start=<function start_response>) |
64 def script_name_fixer(env, start):
|
65 env['SCRIPT_NAME'] = fix_script_name
|
=> 66 return app(env, start)
|
67 application = script_name_fixer
|
68
|
| global app = <werkzeug.utils.SharedDataMiddleware object>, env = {'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'MOIN_SESSION_80_ROOT_community=7f23d53f52e7a390909603963f57905f85e42140', 'HTTP_HOST': 'help.ubuntu.com', 'HTTP_REFERER': 'https://irclogs.ubuntu.com/2010/04/10/%23ubuntu-mozillateam.html', 'HTTP_SURROGATE_CAPABILITY': 'yangmei.canonical.com="Surrogate/1.0 ESI/1.0"', ...}, start = <function start_response> |
| /usr/lib/python2.7/dist-packages/MoinMoin/support/werkzeug/utils.py in __call__(self=<werkzeug.utils.SharedDataMiddleware object>, environ={'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'MOIN_SESSION_80_ROOT_community=7f23d53f52e7a390909603963f57905f85e42140', 'HTTP_HOST': 'help.ubuntu.com', 'HTTP_REFERER': 'https://irclogs.ubuntu.com/2010/04/10/%23ubuntu-mozillateam.html', 'HTTP_SURROGATE_CAPABILITY': 'yangmei.canonical.com="Surrogate/1.0 ESI/1.0"', ...}, start_response=<function start_response>) |
246 break
|
247 if file_loader is None or not self.is_allowed(real_filename):
|
=> 248 return self.app(environ, start_response)
|
249
|
250 guessed_type = mimetypes.guess_type(real_filename)
|
| self = <werkzeug.utils.SharedDataMiddleware object>, self.app = <MoinMoin.wsgiapp.Application object>, environ = {'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'MOIN_SESSION_80_ROOT_community=7f23d53f52e7a390909603963f57905f85e42140', 'HTTP_HOST': 'help.ubuntu.com', 'HTTP_REFERER': 'https://irclogs.ubuntu.com/2010/04/10/%23ubuntu-mozillateam.html', 'HTTP_SURROGATE_CAPABILITY': 'yangmei.canonical.com="Surrogate/1.0 ESI/1.0"', ...}, start_response = <function start_response> |
| /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in __call__(self=<MoinMoin.wsgiapp.Application object>, environ={'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=259200', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'MOIN_SESSION_80_ROOT_community=7f23d53f52e7a390909603963f57905f85e42140', 'HTTP_HOST': 'help.ubuntu.com', 'HTTP_REFERER': 'https://irclogs.ubuntu.com/2010/04/10/%23ubuntu-mozillateam.html', 'HTTP_SURROGATE_CAPABILITY': 'yangmei.canonical.com="Surrogate/1.0 ESI/1.0"', ...}, start_response=<function start_response>) |
279 request = None
|
280 request = self.Request(environ)
|
=> 281 context = init(request)
|
282 response = run(context)
|
283 context.clock.stop('total')
|
| context undefined, global init = <function init>, request = <MoinMoin.wsgiapp.AppRequest object> |
| /usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in setup_user(context=<AllContext ['AllContext']>, session=<MoinSession 7f23d53f52e7a390909603963f57905f85e...ros/AR9285', u'WeeChat'], 'expires': 1515303360}>) |
216 'stage': form.get('stage')
|
217 }
|
=> 218 userobj = auth.handle_login(context, userobj, **params)
|
219 elif 'logout' in form:
|
220 userobj = auth.handle_logout(context, userobj)
|
| userobj = None, global auth = <module 'MoinMoin.auth' from '/usr/lib/python2.7/dist-packages/MoinMoin/auth/__init__.pyc'>, auth.handle_login = <function handle_login>, context = <AllContext ['AllContext']>, params = {'attended': True, 'openid_identifier': None, 'password': None, 'stage': u'openid', 'username': None} |
| /usr/lib/python2.7/dist-packages/MoinMoin/auth/__init__.py in handle_login(request=<AllContext ['AllContext']>, userobj=None, username=None, password=None, attended=True, openid_identifier=None, stage=u'openid') |
394 if stage and authmethod.name != stage:
|
395 continue
|
=> 396 ret = authmethod.login(request, userobj, **params)
|
397
|
398 userobj = ret.user_obj
|
| ret undefined, authmethod = <MoinMoin.auth.openidrp.OpenIDAuth instance>, authmethod.login = <bound method OpenIDAuth.login of <MoinMoin.auth.openidrp.OpenIDAuth instance>>, request = <AllContext ['AllContext']>, userobj = None, params = {'attended': True, 'multistage': True, 'openid_identifier': None, 'password': None, 'username': None} |
| /usr/lib/python2.7/dist-packages/MoinMoin/auth/openidrp.py in login(self=<MoinMoin.auth.openidrp.OpenIDAuth instance>, request=<AllContext ['AllContext']>, user_obj=None, **kw={'attended': True, 'multistage': True, 'openid_identifier': None, 'password': None, 'username': None}) |
261
|
262 if continuation:
|
=> 263 return self._handle_continuation(request)
|
264
|
265 # openid is designed to work together with other auths
|
| self = <MoinMoin.auth.openidrp.OpenIDAuth instance>, self._handle_continuation = <bound method OpenIDAuth._handle_continuation of <MoinMoin.auth.openidrp.OpenIDAuth instance>>, request = <AllContext ['AllContext']> |
| /usr/lib/python2.7/dist-packages/MoinMoin/auth/openidrp.py in _handle_verify_continuation(self=<MoinMoin.auth.openidrp.OpenIDAuth instance>, request=<AllContext ['AllContext']>) |
148 current_url = get_multistage_continuation_url(request, self.name,
|
149 {'oidstage': '1'})
|
=> 150 info = oidconsumer.complete(query, current_url)
|
151 if info.status == consumer.FAILURE:
|
152 logging.debug(_("OpenID error: %s.") % info.message)
|
| info undefined, oidconsumer = <openid.consumer.consumer.Consumer object>, oidconsumer.complete = <bound method Consumer.complete of <openid.consumer.consumer.Consumer object>>, query = {'action': u'login', 'janrain_nonce': u'2010-04-10T13:23:05Z8j5OFE', 'login': u'1', 'oidstage': u'1', 'openid.assoc_handle': u'{HMAC-SHA1}{4bbc8574}{9rjPUw==}', 'openid.claimed_id': u'https://login.launchpad.net/+id/FQEWncc', 'openid.identity': u'https://login.launchpad.net/+id/FQEWncc', 'openid.mode': u'id_res', 'openid.ns': u'http://specs.openid.ne', 'stage': u'openid'}, current_url = 'http://help.ubuntu.com/community/?action=login&login=1&oidstage=1&stage=openid' |
| /usr/lib/python2.7/dist-packages/openid/consumer/consumer.py in complete(self=<openid.consumer.consumer.Consumer object>, query={'action': u'login', 'janrain_nonce': u'2010-04-10T13:23:05Z8j5OFE', 'login': u'1', 'oidstage': u'1', 'openid.assoc_handle': u'{HMAC-SHA1}{4bbc8574}{9rjPUw==}', 'openid.claimed_id': u'https://login.launchpad.net/+id/FQEWncc', 'openid.identity': u'https://login.launchpad.net/+id/FQEWncc', 'openid.mode': u'id_res', 'openid.ns': u'http://specs.openid.ne', 'stage': u'openid'}, current_url='http://help.ubuntu.com/community/?action=login&login=1&oidstage=1&stage=openid') |
411 endpoint = self.session.get(self._token_key)
|
412
|
=> 413 message = Message.fromPostArgs(query)
|
414 response = self.consumer.complete(message, endpoint, current_url)
|
415
|
| message undefined, global Message = <class 'openid.message.Message'>, Message.fromPostArgs = <bound method type.fromPostArgs of <class 'openid.message.Message'>>, query = {'action': u'login', 'janrain_nonce': u'2010-04-10T13:23:05Z8j5OFE', 'login': u'1', 'oidstage': u'1', 'openid.assoc_handle': u'{HMAC-SHA1}{4bbc8574}{9rjPUw==}', 'openid.claimed_id': u'https://login.launchpad.net/+id/FQEWncc', 'openid.identity': u'https://login.launchpad.net/+id/FQEWncc', 'openid.mode': u'id_res', 'openid.ns': u'http://specs.openid.ne', 'stage': u'openid'} |
| /usr/lib/python2.7/dist-packages/openid/message.py in fromPostArgs(cls=<class 'openid.message.Message'>, args={'action': u'login', 'janrain_nonce': u'2010-04-10T13:23:05Z8j5OFE', 'login': u'1', 'oidstage': u'1', 'openid.assoc_handle': u'{HMAC-SHA1}{4bbc8574}{9rjPUw==}', 'openid.claimed_id': u'https://login.launchpad.net/+id/FQEWncc', 'openid.identity': u'https://login.launchpad.net/+id/FQEWncc', 'openid.mode': u'id_res', 'openid.ns': u'http://specs.openid.ne', 'stage': u'openid'}) |
165 openid_args[rest] = value
|
166
|
=> 167 self._fromOpenIDArgs(openid_args)
|
168
|
169 return self
|
| self = <openid.message.Message {(<Symbol Bare namespace...d', (<Symbol Bare namespace>, 'oidstage'): u'1'}>, self._fromOpenIDArgs = <bound method Message._fromOpenIDArgs of <openid...', (<Symbol Bare namespace>, 'oidstage'): u'1'}>>, openid_args = {'assoc_handle': u'{HMAC-SHA1}{4bbc8574}{9rjPUw==}', 'claimed_id': u'https://login.launchpad.net/+id/FQEWncc', 'identity': u'https://login.launchpad.net/+id/FQEWncc', 'mode': u'id_res', 'ns': u'http://specs.openid.ne'} |
| /usr/lib/python2.7/dist-packages/openid/message.py in _fromOpenIDArgs(self=<openid.message.Message {(<Symbol Bare namespace...d', (<Symbol Bare namespace>, 'oidstage'): u'1'}>, openid_args={'assoc_handle': u'{HMAC-SHA1}{4bbc8574}{9rjPUw==}', 'claimed_id': u'https://login.launchpad.net/+id/FQEWncc', 'identity': u'https://login.launchpad.net/+id/FQEWncc', 'mode': u'id_res', 'ns': u'http://specs.openid.ne'}) |
198 elif ns_alias == NULL_NAMESPACE and ns_key == 'ns':
|
199 # null namespace
|
=> 200 self.setOpenIDNamespace(value, False)
|
201 else:
|
202 ns_args.append((ns_alias, ns_key, value))
|
| self = <openid.message.Message {(<Symbol Bare namespace...d', (<Symbol Bare namespace>, 'oidstage'): u'1'}>, self.setOpenIDNamespace = <bound method Message.setOpenIDNamespace of <ope...', (<Symbol Bare namespace>, 'oidstage'): u'1'}>>, value = u'http://specs.openid.ne', builtin False = False |
| /usr/lib/python2.7/dist-packages/openid/message.py in setOpenIDNamespace(self=<openid.message.Message {(<Symbol Bare namespace...d', (<Symbol Bare namespace>, 'oidstage'): u'1'}>, openid_ns_uri=u'http://specs.openid.ne', implicit=False) |
238 """
|
239 if openid_ns_uri not in self.allowed_openid_namespaces:
|
=> 240 raise InvalidOpenIDNamespace(openid_ns_uri)
|
241
|
242 self.namespaces.addAlias(openid_ns_uri, NULL_NAMESPACE, implicit)
|
| global InvalidOpenIDNamespace = <class 'openid.message.InvalidOpenIDNamespace'>, openid_ns_uri = u'http://specs.openid.ne' |