1829: Viewing the server log from the admin interface fails

Karr*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Sept. 30, 2010
What version are you running?
ReviewBoard 1.5 RC2
Django 1.1.1

What's the URL of the page containing the problem?
https://fedorahosted.org/reviewboard/admin/log/server/

What steps will reproduce the problem?
1. Enable logging in the admin interface
2. Click on "server log" in the admin dashboard

What is the expected output? What do you see instead?
I expect to see the server log. I get a 500 instead.
The traceback below is found in the log on-disk

What operating system are you using? What browser?
Red Hat Enterprise Linux 5 (server)
Fedora 13 (client)
Mozilla Firefox 3.6.10

Please provide any additional information below.
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py", line 33, in _checklogin
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/djblets/log/views.py", line 271, in server_log
    response = render_to_response(template_name, RequestContext(request, {
  File "/usr/lib/python2.4/site-packages/django/shortcuts/__init__.py", line 20, in render_to_response
    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
  File "/usr/lib/python2.4/site-packages/django/template/loader.py", line 103, in render_to_string
    t = get_template(template_name)
  File "/usr/lib/python2.4/site-packages/django/template/loader.py", line 81, in get_template
    source, origin = find_template_source(template_name)
  File "/usr/lib/python2.4/site-packages/django/template/loader.py", line 74, in find_template_source
    raise TemplateDoesNotExist, name
TemplateDoesNotExist: log/log.html
chipx86
#1 chipx86
This looks to perhaps be a packaging or installation problem. Installing Djblets through easy_install does not reproduce this. log.html has been there for a while and is verified to work on several different installs.

Can you check the contents of the package?
  • +NeedInfo
#2 Karr*****@gmai***** (Google Code) (Is this you? Claim this profile.)
/usr/lib/python2.4/site-packages/djblets/log/templates/log
/usr/lib/python2.4/site-packages/djblets/log/templates/log/log.html

These exist, I'm not sure what else would be causing it, unless there's someplace I need to specify its location.
#3 Karr*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Please close this ticket.
It turned out to be a misconfiguration issue: http://groups.google.com/group/reviewboard/browse_thread/thread/84614717302bb01
david
#4 david
Thanks.
  • -NeedInfo
    +SetupIssue