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/wiki.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/wiki.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', ...}, start_response = <function start_response> |
/srv/wiki.ubuntu.com/moin.fcgi in script_name_fixer(env={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/wiki.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/wiki.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', ...}, start=<function start_response>) |
56 def script_name_fixer(env, start):
|
57 env['SCRIPT_NAME'] = fix_script_name
|
=> 58 return app(env, start)
|
59 application = script_name_fixer
|
60
|
global app = <MoinMoin.wsgiapp.Application object>, env = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/srv/wiki.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/wiki.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', ...}, start = <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/wiki.ubuntu.com/moin.fcgi/', 'CONTEXT_PREFIX': '/', 'DOCUMENT_ROOT': '/srv/wiki.ubuntu.com/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTPS': 'on', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'br,gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5', 'HTTP_CONNECTION': 'close', ...}, 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 6765 bytes [200 OK]>, context=<AllContext ['AllContext']>, action_name=u'info') |
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'ArizonaTeam/Meetings/November 18, 2018 Meeting', action_name = u'info' |
/usr/lib/python2.7/dist-packages/MoinMoin/action/info.py in execute(pagename=u'ArizonaTeam/Meetings/November 18, 2018 Meeting', request=<AllContext ['AllContext']>) |
369 if show_hitcounts:
|
370 from MoinMoin.stats import hitcounts
|
=> 371 request.write(hitcounts.linkto(pagename, request, 'page=' + wikiutil.url_quote(pagename)))
|
372 elif show_general:
|
373 general(page, pagename, request)
|
request = <AllContext ['AllContext']>, request.write = <bound method AllContext.write of <AllContext ['AllContext']>>, hitcounts = <module 'MoinMoin.stats.hitcounts' from '/usr/li...n2.7/dist-packages/MoinMoin/stats/hitcounts.pyc'>, hitcounts.linkto = <function linkto>, pagename = u'ArizonaTeam/Meetings/November 18, 2018 Meeting', global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.pyc'>, wikiutil.url_quote = <function url_quote> |
/usr/lib/python2.7/dist-packages/MoinMoin/stats/hitcounts.py in text(pagename=u'ArizonaTeam/Meetings/November 18, 2018 Meeting', request=<AllContext ['AllContext']>, params='page=ArizonaTeam/Meetings/November%2018%2C%202018%20Meeting') |
152 filterpage = request.values['page']
|
153
|
=> 154 days, views, edits = get_data(pagename, request, filterpage)
|
155
|
156 hits = TupleDataset()
|
days undefined, views undefined, edits undefined, global get_data = <function get_data>, pagename = u'ArizonaTeam/Meetings/November 18, 2018 Meeting', request = <AllContext ['AllContext']>, filterpage = u'ArizonaTeam/Meetings/November 18, 2018 Meeting' |
/usr/lib/python2.7/dist-packages/MoinMoin/stats/hitcounts.py in get_data(pagename=u'ArizonaTeam/Meetings/November 18, 2018 Meeting', request=<AllContext ['AllContext']>, filterpage=u'ArizonaTeam/Meetings/November 18, 2018 Meeting') |
86 log.set_filter(['VIEWPAGE', 'SAVEPAGE'])
|
87 latest = None
|
=> 88 for event in log.reverse():
|
89 # don't use event_log.date()
|
90 if latest is None:
|
event = (1659273017622716L, u'VIEWPAGE', MultiDict([('pagename', u'Security/ExecutableBit...DDR', u'2406:7400:73:91b2:7ed4:6b45:efc3:87f7')])), log = <MoinMoin.logfile.eventlog.EventLog instance>, log.reverse = <bound method EventLog.reverse of <MoinMoin.logfile.eventlog.EventLog instance>> |
/usr/lib/python2.7/dist-packages/MoinMoin/logfile/__init__.py in reverse(self=<MoinMoin.logfile.eventlog.EventLog instance>) |
114 try:
|
115 logging.log(self.loglevel, "LogFile.reverse %s" % self.__filename)
|
=> 116 result = self.previous()
|
117 except StopIteration:
|
118 return
|
result = (1659273017622716L, u'VIEWPAGE', MultiDict([('pagename', u'Security/ExecutableBit...DDR', u'2406:7400:73:91b2:7ed4:6b45:efc3:87f7')])), self = <MoinMoin.logfile.eventlog.EventLog instance>, self.previous = <bound method EventLog.previous of <MoinMoin.logfile.eventlog.EventLog instance>> |
/usr/lib/python2.7/dist-packages/MoinMoin/logfile/eventlog.py in parser(self=<MoinMoin.logfile.eventlog.EventLog instance>, line=u'1659273015990558\tVIEWPAGE\tpagename=LTS&HTTP_USER...%2F%2Fwiki.ubuntu.com%2F&REMOTE_ADDR=185.9.19.107') |
65 # badly formatted line in file, skip it
|
66 return None
|
=> 67 return long(time_usecs), eventtype, wikiutil.parseQueryString(kvpairs)
|
68
|
69 def set_filter(self, event_types=None):
|
builtin long = <type 'long'>, time_usecs = u'1659273015990558', eventtype = u'VIEWPAGE', global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.pyc'>, wikiutil.parseQueryString = <function parseQueryString>, kvpairs = u'pagename=LTS&HTTP_USER_AGENT=Mozilla%2F5.0+%28Ma...%2F%2Fwiki.ubuntu.com%2F&REMOTE_ADDR=185.9.19.107' |
/usr/lib/python2.7/dist-packages/MoinMoin/wikiutil.py in parseQueryString(qstr=u'pagename=LTS&HTTP_USER_AGENT=Mozilla%2F5.0+%28Ma...%2F%2Fwiki.ubuntu.com%2F&REMOTE_ADDR=185.9.19.107', want_unicode=None) |
130 log.exception("call with deprecated want_unicode param, please fix caller")
|
131 return werkzeug.url_decode(qstr, charset=config.charset, errors='fallback:iso-8859-1',
|
=> 132 decode_keys=False, include_empty=False)
|
133
|
134 def makeQueryString(qstr=None, want_unicode=None, **kw):
|
decode_keys undefined, builtin False = False, include_empty undefined |
/usr/lib/python2.7/dist-packages/werkzeug/urls.py in url_decode(s=u'pagename=LTS&HTTP_USER_AGENT=Mozilla%2F5.0+%28Ma...%2F%2Fwiki.ubuntu.com%2F&REMOTE_ADDR=185.9.19.107', charset='utf-8', decode_keys=False, include_empty=False, errors='fallback:iso-8859-1', separator=u'&', cls=<class 'werkzeug.datastructures.MultiDict'>) |
732 separator = separator.encode(charset or 'ascii')
|
733 return cls(_url_decode_impl(s.split(separator), charset, decode_keys,
|
=> 734 include_empty, errors))
|
735
|
736
|
include_empty = False, errors = 'fallback:iso-8859-1' |
/usr/lib/python2.7/dist-packages/werkzeug/urls.py in _url_decode_impl(pair_iter=[u'pagename=LTS', u'HTTP_USER_AGENT=Mozilla%2F5.0+%28Macintosh%3B+In...+like+Gecko%29+Version%2F12.1.1+Safari%2F605.1.15', u'HTTP_REFERER=https%3A%2F%2Fwiki.ubuntu.com%2F', u'REMOTE_ADDR=185.9.19.107'], charset='utf-8', decode_keys=False, include_empty=False, errors='fallback:iso-8859-1') |
791 if charset is not None and PY2 and not decode_keys:
|
792 key = try_coerce_native(key)
|
=> 793 yield key, url_unquote_plus(value, charset, errors)
|
794
|
795
|
key = 'HTTP_USER_AGENT', global url_unquote_plus = <function url_unquote_plus>, value = u'Mozilla%2F5.0+%28Macintosh%3B+Intel+Mac+OS+X+10_...+like+Gecko%29+Version%2F12.1.1+Safari%2F605.1.15', charset = 'utf-8', errors = 'fallback:iso-8859-1' |
/usr/lib/python2.7/dist-packages/werkzeug/urls.py in url_unquote(string=u'Mozilla%2F5.0 %28Macintosh%3B Intel Mac OS X 10_... like Gecko%29 Version%2F12.1.1 Safari%2F605.1.15', charset='utf-8', errors='fallback:iso-8859-1', unsafe='') |
533 rv = _unquote_to_bytes(string, unsafe)
|
534 if charset is not None:
|
=> 535 rv = rv.decode(charset, errors)
|
536 return rv
|
537
|
rv = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5 (...KHTML, like Gecko) Version/12.1.1 Safari/605.1.15', rv.decode = <built-in method decode of str object>, charset = 'utf-8', errors = 'fallback:iso-8859-1' |
/usr/lib/python2.7/encodings/utf_8.py in decode(input='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5 (...KHTML, like Gecko) Version/12.1.1 Safari/605.1.15', errors='fallback:iso-8859-1') |
14
|
15 def decode(input, errors='strict'):
|
=> 16 return codecs.utf_8_decode(input, errors, True)
|
17
|
18 class IncrementalEncoder(codecs.IncrementalEncoder):
|
global codecs = <module 'codecs' from '/usr/lib/python2.7/codecs.pyc'>, codecs.utf_8_decode = <built-in function utf_8_decode>, input = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5 (...KHTML, like Gecko) Version/12.1.1 Safari/605.1.15', errors = 'fallback:iso-8859-1', builtin True = True |