Bug #2496
500 error on Viewer index.py
Status: | Closed | Start date: | 11/16/2013 | |
---|---|---|---|---|
Priority: | Urgent | Due date: | ||
Assignee: | harlo | % Done: | 0% | |
Category: | - | |||
Target version: | InformaCam - SERVER v2 | |||
Component: |
Description
(precise)n8fr8@localhost:~/dev/repos/UnveillanceViewer$ python index.py
ERROR:tornado.application:Uncaught exception GET / (::1)
HTTPRequest(protocol='http', host='localhost:8888', method='GET', uri='/', version='HTTP/1.1', remote_ip='::1', headers={'Accept-Language': 'en-US,en;q=0.8', 'Accept-Encoding': 'gzip,deflate,sdch', 'Host': 'localhost:8888', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36', 'Dnt': '1', 'Connection': 'keep-alive', 'Cache-Control': 'max-age=0'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado-3.2.dev2-py2.7-linux-x86_64.egg/tornado/web.py", line 1210, in when_complete
callback()
File "/usr/local/lib/python2.7/dist-packages/tornado-3.2.dev2-py2.7-linux-x86_64.egg/tornado/web.py", line 1231, in _execute_method
self._when_complete(method(self.path_args, **self.path_kwargs),
File "index.py", line 189, in get
data=''
File "/usr/local/lib/python2.7/dist-packages/Mako-0.9.1dev-py2.7.egg/mako/template.py", line 443, in render
return runtime._render(self, self.callable, args, data)
File "/usr/local/lib/python2.7/dist-packages/Mako-0.9.1dev-py2.7.egg/mako/runtime.py", line 807, in render
*_kwargs_for_callable(callable, data))
File "/usr/local/lib/python2.7/dist-packages/Mako-0.9.1dev-py2.7.egg/mako/runtime.py", line 839, in render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/local/lib/python2.7/dist-packages/Mako-0.9.1dev-py2.7.egg/mako/runtime.py", line 865, in _exec_template
callable(context, *args, **kwargs)
File "web_index_html", line 28, in render_body
File "/usr/local/lib/python2.7/dist-packages/Mako-0.9.1dev-py2.7.egg/mako/runtime.py", line 226, in str
raise NameError("Undefined")
NameError: Undefined
ERROR:tornado.access:500 GET / (::1) 10.19ms
History
#1 Updated by harlo about 4 years ago
- Status changed from New to Resolved
#2 Updated by n8fr8 about 4 years ago
Great. Now I am getting the "you must log in" message, which is good. However, what do I need to set in my "conf.py" file to disable that and/or how do I set a user/passwd?
We need a conf.py.example file for this project.
#3 Updated by harlo about 4 years ago
The viewer code has been updated to create admin on first use, and the readme better documented: https://github.com/harlo/UnveillanceViewer/blob/master/README.md
Let me know if this makes things better!
#4 Updated by bryanesque about 4 years ago
- Status changed from Resolved to Closed