2223: ERROR (EXTERNAL IP): Internal Server Error: /dashboard/

degrand********@gmai***** (Google Code) (Is this you? Claim this profile.)
Oct. 8, 2011
What version are you running?

1.6RC2

We frequently receive the following traceback. I don't know how to reproduce, since that's sent by mail, so I don't know what the user was doing when the error was catched.



Traceback (most recent call last):

  File "/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.9-py2.6.egg/djblets/auth/util.py", line 46, in _checklogin
    return view_func(request, *args, **kwargs)

  File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6rc2-py2.6.egg/reviewboard/accounts/decorators.py", line 41, in _check_valid_prefs
    return view_func(request, *args, **kwargs)

  File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.6rc2-py2.6.egg/reviewboard/reviews/views.py", line 586, in dashboard
    return grid.render_to_response(template_name)

  File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.9-py2.6.egg/djblets/datagrid/grids.py", line 703, in render_to_response
    self.load_state()

  File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.9-py2.6.egg/djblets/datagrid/grids.py", line 538, in load_state
    self.precompute_objects()

  File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.9-py2.6.egg/djblets/datagrid/grids.py", line 640, in precompute_objects
    for obj in object_list if obj is not None

  File "/usr/local/lib/python2.6/dist-packages/Djblets-0.6.9-py2.6.egg/djblets/datagrid/grids.py", line 244, in render_cell
    mark_safe(self.datagrid.cell_template_obj.render(ctx))

AttributeError: 'NoneType' object has no attribute 'render'


<WSGIRequest
GET:<QueryDict: {u'view': [u'outgoing']}>,
POST:<QueryDict: {}>,
COOKIES:{'collapsediffs': 'True', 'rbsessionid': '5cc2b37f564e1850356c0fa5f63fdc18'},
META:{'DOCUMENT_ROOT': '/home/freedroid/rb/htdocs',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'rbsessionid=5cc2b37f564e1850356c0fa5f63fdc18; collapsediffs=True',
 'HTTP_HOST': 'rb.freedroid.org',
 'HTTP_REFERER': 'http://rb.freedroid.org/dashboard/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.107 Safari/535.1',
 'PATH_INFO': u'/dashboard/',
 'PATH_TRANSLATED': '/home/freedroid/rb/htdocs/reviewboard.wsgi/dashboard/',
 'QUERY_STRING': 'view=outgoing',
 'REMOTE_ADDR': 'xxxxxxx',
 'REMOTE_PORT': '63295',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/dashboard/?view=outgoing',
 'SCRIPT_FILENAME': '/home/freedroid/rb/htdocs/reviewboard.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '140.211.15.124',
 'SERVER_ADMIN': '[no address given]',
 'SERVER_NAME': 'rb.freedroid.org',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.16 (Debian) Server at rb.freedroid.org Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.16 (Debian)',
 'mod_wsgi.application_group': 'rb.freedroid.org|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.handler_script': '',
 'mod_wsgi.input_chunked': '0',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '80',
 'mod_wsgi.process_group': 'rb.freedroid.org',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 3),
 'wsgi.errors': <mod_wsgi.Log object at 0x7f8069ed19f0>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f80444cc378>,
 'wsgi.input': <mod_wsgi.Input object at 0x7f8069ed1e30>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 1)}>
#1 degrand********@gmai***** (Google Code) (Is this you? Claim this profile.)
Here is an other request, with the same tracebak:

<WSGIRequest
GET:<QueryDict: {u'sort': [u'-last_updated_since,time_added']}>,
POST:<QueryDict: {}>,
COOKIES:{'collapsediffs': 'True', 'rbsessionid': '5cc2b37f564e1850356c0fa5f63fdc18'},
META:{'DOCUMENT_ROOT': '/home/freedroid/rb/htdocs',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'rbsessionid=5cc2b37f564e1850356c0fa5f63fdc18; collapsediffs=True',
 'HTTP_HOST': 'rb.freedroid.org',
 'HTTP_REFERER': 'http://rb.freedroid.org/r/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.107 Safari/535.1',
 'PATH_INFO': u'/r/',
 'PATH_TRANSLATED': '/home/freedroid/rb/htdocs/reviewboard.wsgi/r/',
 'QUERY_STRING': 'sort=-last_updated_since,time_added',
 'REMOTE_ADDR': 'xxxxx',
 'REMOTE_PORT': '63051',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/r/?sort=-last_updated_since,time_added',
 'SCRIPT_FILENAME': '/home/freedroid/rb/htdocs/reviewboard.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '140.211.15.124',
 'SERVER_ADMIN': '[no address given]',
 'SERVER_NAME': 'rb.freedroid.org',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.16 (Debian) Server at rb.freedroid.org Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.16 (Debian)',
 'mod_wsgi.application_group': 'rb.freedroid.org|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.handler_script': '',
 'mod_wsgi.input_chunked': '0',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '80',
 'mod_wsgi.process_group': 'rb.freedroid.org',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 3),
 'wsgi.errors': <mod_wsgi.Log object at 0x7f806dd14270>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f806d75be40>,
 'wsgi.input': <mod_wsgi.Input object at 0x7f806dd142f0>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 1)}>
#2 leifa*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Encountered this same error today
chipx86
#3 chipx86
This is indicating that it's unable to find the template file for the cell. Did you restart your wsgi process/web server since upgrading? And how long has this been happening?

I'm doing a Djblets release tonight. I can add logging when this fails, but I don't believe there's really a problem to fix per se. This looks like an installation issue.
#4 degrand********@gmai***** (Google Code) (Is this you? Claim this profile.)
Yes, the server was restarted.

We were before using 1.5.5 with mod_python and sqlite.

I transferred the database on a new server (with RB 1.5.5), using postgresql. I used django dump/load for the transfer, and then updated to 1.6RC2. I got that bug since then.

If it's a template file missing, how can I find which one ?
david
#5 david
I haven't seen this error in quite some time with 1.6.x releases.
  • +Fixed
#6 thom.******@gmai***** (Google Code) (Is this you? Claim this profile.)
I still see this issue sporadically: approximately once a day out of aprox 3000 GET requests to /dashboard/ with Python 2.6.6, Django 1.3.1, ReviewBoard==1.6.6, Djblets==0.6.16.

The logging chip added never ends up in the log files, which is baffling because I don't see any way the code would get to the render call without the logging being triggered.
#8 Chris******@actia***** (Google Code) (Is this you? Claim this profile.)
I'm seeing this with the RB version 1.6.11, a few times a week. Appears to be the same as issue 2720.