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/python2.7/dist-packages/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 = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/storm.canonical.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/storm.canonical.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'HSESSIONID=02d7a9e7-9292-4f1a-8133-f42f7155f1b2;...fikker-61vm-nk2N=MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E', ...}, start_response = <function start_response> |
/srv/storm.canonical.com/moin.fcgi in script_name_fixer(env={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/storm.canonical.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/storm.canonical.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'HSESSIONID=02d7a9e7-9292-4f1a-8133-f42f7155f1b2;...fikker-61vm-nk2N=MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E', ...}, start=<function start_response>) |
66 def script_name_fixer(env, start):
|
67 env['SCRIPT_NAME'] = fix_script_name
|
=> 68 return app(env, start)
|
69 application = script_name_fixer
|
70
|
global app = <werkzeug.wsgi.SharedDataMiddleware object>, env = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/storm.canonical.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/storm.canonical.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'HSESSIONID=02d7a9e7-9292-4f1a-8133-f42f7155f1b2;...fikker-61vm-nk2N=MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E', ...}, start = <function start_response> |
/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py in __call__(self=<werkzeug.wsgi.SharedDataMiddleware object>, environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/storm.canonical.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/storm.canonical.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'HSESSIONID=02d7a9e7-9292-4f1a-8133-f42f7155f1b2;...fikker-61vm-nk2N=MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E', ...}, start_response=<function start_response>) |
764 break
|
765 if file_loader is None or not self.is_allowed(real_filename):
|
=> 766 return self.app(environ, start_response)
|
767
|
768 guessed_type = mimetypes.guess_type(real_filename)
|
self = <werkzeug.wsgi.SharedDataMiddleware object>, self.app = <MoinMoin.wsgiapp.Application object>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/storm.canonical.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/storm.canonical.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'HSESSIONID=02d7a9e7-9292-4f1a-8133-f42f7155f1b2;...fikker-61vm-nk2N=MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E', ...}, start_response = <function start_response> |
/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in __call__(self=<MoinMoin.wsgiapp.Application object>, environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/storm.canonical.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/storm.canonical.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'HSESSIONID=02d7a9e7-9292-4f1a-8133-f42f7155f1b2;...fikker-61vm-nk2N=MgPGRI6oXLV7DSLWJk4y6wNi63F1ZE0E', ...}, start_response=<function start_response>) |
262 context = init(request)
|
263 try:
|
=> 264 response = run(context)
|
265 finally:
|
266 context.clock.stop('total')
|
response undefined, global run = <function run>, context = <AllContext ['AllContext']> |
/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py in dispatch(request=<AppRequest 6168 bytes [200 OK]>, context=<AllContext ['AllContext']>, action_name='show') |
135 # 2. handle action
|
136 else:
|
=> 137 response = handle_action(context, pagename, action_name)
|
138 if isinstance(response, Context):
|
139 response = response.request
|
response undefined, global handle_action = <function handle_action>, context = <AllContext ['AllContext']>, pagename = u'CategoryTemplate', action_name = 'show' |
/usr/lib/python2.7/dist-packages/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page object>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0}) |
1430 format_args=pi['formatargs'],
|
1431 do_cache=do_cache,
|
=> 1432 start_line=pi['lines'])
|
1433
|
1434 # check for pending footnotes
|
start_line undefined, pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': u'wiki', 'formatargs': u'', 'language': u'en', 'lines': 4} |
/usr/lib/python2.7/dist-packages/MoinMoin/Page.py in send_page_content(self=<MoinMoin.Page.Page object>, request=<AllContext ['AllContext']>, body=u'\nDescribe the pages in this category... \n\nTo add...Cached(category:@PAGE@)>>\n\n----\nCategoryCategory\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 4}) |
1529 raise
|
1530 try:
|
=> 1531 code = self.makeCache(request, parser)
|
1532 self.execute(request, parser, code)
|
1533 except Exception, e:
|
code = <code object <module> at 0x7fc8cbb154b0, file "CategoryTemplate", line 2>, self = <MoinMoin.Page.Page object>, self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page object>>, request = <AllContext ['AllContext']>, parser = <MoinMoin.parser.text_moin_wiki.Parser instance> |
/usr/lib/python2.7/dist-packages/MoinMoin/Page.py in makeCache(self=<MoinMoin.Page.Page object>, request=<AllContext ['AllContext']>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>) |
1589 saved_current_lang = request.current_lang
|
1590 try:
|
=> 1591 text = request.redirectedOutput(parser.format, formatter)
|
1592 finally:
|
1593 request.current_lang = saved_current_lang
|
text undefined, request = <AllContext ['AllContext']>, request.redirectedOutput = <bound method AllContext.redirectedOutput of <AllContext ['AllContext']>>, parser = <MoinMoin.parser.text_moin_wiki.Parser instance>, parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>, formatter = <MoinMoin.formatter.text_python.Formatter instance> |
/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py in format(self=<MoinMoin.parser.text_moin_wiki.Parser instance>, formatter=<MoinMoin.formatter.text_python.Formatter instance>, inhibit_p=False, **kw={}) |
1552
|
1553 # Scan line, format and write
|
=> 1554 formatted_line = self.scan(line, inhibit_p=inhibit_p)
|
1555 self.request.write(formatted_line)
|
1556
|
formatted_line = u'<p class="line867"><strong>List of pages in this category:</strong> ', self = <MoinMoin.parser.text_moin_wiki.Parser instance>, self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance>>, line = u'<<FullSearchCached(category:@PAGE@)>> ', inhibit_p = False |
/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py in scan(self=<MoinMoin.parser.text_moin_wiki.Parser instance>, line=u'<<FullSearchCached(category:@PAGE@)>> ', inhibit_p=False) |
1362 self.in_table or self.in_list):
|
1363 result.append(self.formatter.paragraph(1, css_class="line867"))
|
=> 1364 result.append(self.replace(match, inhibit_p))
|
1365 end = match.end()
|
1366 lastpos = end
|
result = ['<p class="line867">'], result.append = <built-in method append of list object>, self = <MoinMoin.parser.text_moin_wiki.Parser instance>, self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance>>, match = <_sre.SRE_Match object>, inhibit_p = False |
/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py in replace(self=<MoinMoin.parser.text_moin_wiki.Parser instance>, match=<_sre.SRE_Match object>, inhibit_p=False) |
1406 # Get replace method and replace hit
|
1407 replace_func = getattr(self, '_%s_repl' % type)
|
=> 1408 result.append(replace_func(hit, match.groupdict()))
|
1409 return ''.join(result)
|
1410 else:
|
result = [], result.append = <built-in method append of list object>, replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance>>, hit = u'category:@PAGE@', match = <_sre.SRE_Match object>, match.groupdict = <built-in method groupdict of _sre.SRE_Match object> |
/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl(self=<MoinMoin.parser.text_moin_wiki.Parser instance>, word=u'category:@PAGE@', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}) |
1329 if self.macro is None:
|
1330 self.macro = macro.Macro(self)
|
=> 1331 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
|
1332 _macro_name_repl = _macro_repl
|
1333 _macro_args_repl = _macro_repl
|
self = <MoinMoin.parser.text_moin_wiki.Parser instance>, self.formatter = <MoinMoin.formatter.text_python.Formatter instance>, self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_python.Formatter instance>>, self.macro = <MoinMoin.macro.Macro instance>, macro_name = u'FullSearchCached', macro_args = u'category:@PAGE@', markup undefined, groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}, groups.get = <built-in method get of dict object> |
/usr/lib/python2.7/dist-packages/MoinMoin/formatter/text_python.py in macro(self=<MoinMoin.formatter.text_python.Formatter instance>, macro_obj=<MoinMoin.macro.Macro instance>, name=u'FullSearchCached', args=u'category:@PAGE@', markup=u'<<FullSearchCached(category:@PAGE@)>>') |
190 # XXX: why is this necessary??
|
191 macro_obj.formatter = self
|
=> 192 return macro_obj.execute(name, args)
|
193 else:
|
194 return self.__insert_code(
|
macro_obj = <MoinMoin.macro.Macro instance>, macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance>>, name = u'FullSearchCached', args = u'category:@PAGE@' |