martinrusev/amon — Issue #45: processes on dashboard causes crash for webserver
Author: emil0r
Created: 2012-01-10 08:52:35+00:00
State: open

HTTPRequest(protocol='http', host='127.0.0.1:2464', method='GET', uri='/', version='HTTP/1.0', remote_ip='127.0.0.1', body='', headers={'Host': '127.0.0.1:2464', 'Connection': 'Keep-Alive', 'Accept': '*/*', 'User-Agent': 'Wget/1.12 (linux-gnu)'})
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/tornado-2.1.1-py2.6.egg/tornado/web.py", line 954, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/tornado-2.1.1-py2.6.egg/tornado/web.py", line 1667, in wrapper
return method(self, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/amon-0.7.0-py2.6.egg/amon/web/views/app.py", line 46, in get
process_check_first=process_check_first,
File "/usr/local/lib/python2.6/dist-packages/amon-0.7.0-py2.6.egg/amon/web/views/base.py", line 114, in render
rendered_template = jinja_render(template, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/amon-0.7.0-py2.6.egg/amon/web/template.py", line 324, in render
return template.render(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/Jinja2-2.6-py2.6.egg/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python2.6/dist-packages/amon-0.7.0-py2.6.egg/amon/web/templates/dashboard.html", line 1, in top-level template code
{% extends "base.html" %}
File "/usr/local/lib/python2.6/dist-packages/amon-0.7.0-py2.6.egg/amon/web/templates/base.html", line 32, in top-level template code
{% block content %}
File "/usr/local/lib/python2.6/dist-packages/amon-0.7.0-py2.6.egg/amon/web/templates/dashboard.html", line 84, in block "content"

File "/usr/local/lib/python2.6/dist-packages/Jinja2-2.6-py2.6.egg/jinja2/environment.py", line 372, in getattr
return getattr(obj, attribute)
UndefinedError: dict object has no element False
ERROR:root:500 GET / (127.0.0.1) 114.53ms

If i remove Processes in dashboard.html the server serves the request without errors.