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/help.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/community/', 'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'help.ubuntu.com', ...}, start_response = <function start_response> |
| /srv/help.ubuntu.com/moin.fcgi in script_name_fixer(env={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/help.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/community/', 'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'help.ubuntu.com', ...}, 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.wsgi.SharedDataMiddleware object>, env = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/help.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/community/', 'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'help.ubuntu.com', ...}, 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/help.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/community/', 'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'help.ubuntu.com', ...}, 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/help.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/community/', 'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'help.ubuntu.com', ...}, 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/help.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/community/', 'DOCUMENT_ROOT': '/srv/help.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'help.ubuntu.com', ...}, 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 0 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'Bugs', 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}) |
1236 # count hit?
|
1237 if keywords.get('count_hit', 0):
|
=> 1238 eventlog.EventLog(request).add(request, 'VIEWPAGE', {'pagename': self.page_name})
|
1239
|
1240 # load the text
|
| global eventlog = <module 'MoinMoin.logfile.eventlog' from '/usr/l...2.7/dist-packages/MoinMoin/logfile/eventlog.pyc'>, eventlog.EventLog = <class MoinMoin.logfile.eventlog.EventLog>, request = <AllContext ['AllContext']>, ).add undefined, self = <MoinMoin.Page.Page object>, self.page_name = u'Bugs' |
| /usr/lib/python2.7/dist-packages/MoinMoin/logfile/eventlog.py in add(self=<MoinMoin.logfile.eventlog.EventLog instance>, request=<AllContext ['AllContext']>, eventtype='VIEWPAGE', values='pagename=Bugs&HTTP_USER_AGENT=Mozilla%2F5.0+Appl...bot%40anthropic.com%29&REMOTE_ADDR=216.73.216.119', add_http_info=1, mtime_usecs=1770539448372937L) |
56 # Encode values in a query string TODO: use more readable format
|
57 values = wikiutil.makeQueryString(values)
|
=> 58 self._add(u"%d\t%s\t%s\n" % (mtime_usecs, eventtype, values))
|
59
|
60 def parser(self, line):
|
| self = <MoinMoin.logfile.eventlog.EventLog instance>, self._add = <bound method EventLog._add of <MoinMoin.logfile.eventlog.EventLog instance>>, mtime_usecs = 1770539448372937L, eventtype = 'VIEWPAGE', values = 'pagename=Bugs&HTTP_USER_AGENT=Mozilla%2F5.0+Appl...bot%40anthropic.com%29&REMOTE_ADDR=216.73.216.119' |
| /usr/lib/python2.7/dist-packages/MoinMoin/logfile/__init__.py in _add(self=<MoinMoin.logfile.eventlog.EventLog instance>, line=u'1770539448372937\tVIEWPAGE\tpagename=Bugs&HTTP_USE...ot%40anthropic.com%29&REMOTE_ADDR=216.73.216.119\n') |
458 if line[-1] != '\n':
|
459 line += '\n'
|
=> 460 self._output.write(line)
|
461 self._output.close() # does this maybe help against the sporadic fedora wikis 160 \0 bytes in the edit-log?
|
462 del self._output # re-open the output file automagically
|
| self = <MoinMoin.logfile.eventlog.EventLog instance>, self._output = <open file '/srv/help.ubuntu.com/community/data/event-log', mode 'ab'>, self._output.write = <bound method StreamReaderWriter.write of <open ...ubuntu.com/community/data/event-log', mode 'ab'>>, line = u'1770539448372937\tVIEWPAGE\tpagename=Bugs&HTTP_USE...ot%40anthropic.com%29&REMOTE_ADDR=216.73.216.119\n' |
| /usr/lib/python2.7/codecs.py in write(self=<open file '/srv/help.ubuntu.com/community/data/event-log', mode 'ab'>, data=u'1770539448372937\tVIEWPAGE\tpagename=Bugs&HTTP_USE...ot%40anthropic.com%29&REMOTE_ADDR=216.73.216.119\n') |
706 def write(self, data):
|
707
|
=> 708 return self.writer.write(data)
|
709
|
710 def writelines(self, list):
|
| self = <open file '/srv/help.ubuntu.com/community/data/event-log', mode 'ab'>, self.writer = <open file '/srv/help.ubuntu.com/community/data/event-log', mode 'ab'>, self.writer.write = <bound method StreamWriter.write of <open file '...ubuntu.com/community/data/event-log', mode 'ab'>>, data = u'1770539448372937\tVIEWPAGE\tpagename=Bugs&HTTP_USE...ot%40anthropic.com%29&REMOTE_ADDR=216.73.216.119\n' |
| /usr/lib/python2.7/codecs.py in write(self=<open file '/srv/help.ubuntu.com/community/data/event-log', mode 'ab'>, object=u'1770539448372937\tVIEWPAGE\tpagename=Bugs&HTTP_USE...ot%40anthropic.com%29&REMOTE_ADDR=216.73.216.119\n') |
368 """
|
369 data, consumed = self.encode(object, self.errors)
|
=> 370 self.stream.write(data)
|
371
|
372 def writelines(self, list):
|
| self = <open file '/srv/help.ubuntu.com/community/data/event-log', mode 'ab'>, self.stream = <open file '/srv/help.ubuntu.com/community/data/event-log', mode 'ab'>, self.stream.write = <built-in method write of file object>, data = '1770539448372937\tVIEWPAGE\tpagename=Bugs&HTTP_USE...ot%40anthropic.com%29&REMOTE_ADDR=216.73.216.119\n' |