The entire Pali AN 2.1 - 250 is inaccessible

throws an error


Details (only available in development environment, add query argument ‘traceback’ to url to get in production)
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File “/home/sc-staging/.pyenv/versions/suttacentral/lib/python3.5/site-packages/cherrypy/”, line 670, in respond
response.body = self.handler()
File “/home/sc-staging/.pyenv/versions/suttacentral/lib/python3.5/site-packages/cherrypy/lib/”, line 217, in call
self.body = self.oldhandler(*args, **kwargs)
File “/home/sc-staging/.pyenv/versions/suttacentral/lib/python3.5/site-packages/cherrypy/”, line 61, in call
return self.callable(*self.args, **self.kwargs)
File “/home/sc-staging/.pyenv/versions/suttacentral/lib/python3.5/site-packages/newrelic-”, line 70, in handler_wrapper
return wrapped(*args, **kwargs)
File “/home/sc-staging/suttacentral/sc/”, line 64, in default
return show.default(*args, **kwargs)
File “/home/sc-staging/suttacentral/sc/”, line 186, in default
return TextView(uid, lang_code, canonical).render()
File “/home/sc-staging/suttacentral/sc/”, line 249, in render
string = template.render(dict(context))
File “/home/sc-staging/.pyenv/versions/suttacentral/lib/python3.5/site-packages/newrelic-”, line 98, in dynamic_wrapper
return wrapped(*args, **kwargs)
File “/home/sc-staging/.pyenv/versions/suttacentral/lib/python3.5/site-packages/jinja2/”, line 989, in render
return self.environment.handle_exception(exc_info, True)
File “/home/sc-staging/.pyenv/versions/suttacentral/lib/python3.5/site-packages/jinja2/”, line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File “/home/sc-staging/.pyenv/versions/suttacentral/lib/python3.5/site-packages/jinja2/”, line 37, in reraise
raise value.with_traceback(tb)
File “/home/sc-staging/suttacentral/templates/text.html”, line 1, in top-level template code
{% extends “base.html” -%}
File “/home/sc-staging/suttacentral/templates/base.html”, line 59, in top-level template code
{% block content %}{% endblock %}
File “/home/sc-staging/suttacentral/templates/text.html”, line 17, in block “content”
{% include “sidebar.html” with context %}
File “/home/sc-staging/suttacentral/templates/sidebar.html”, line 87, in top-level template code
{% set classes = ([‘offsite’] if offsite else [])
File “/home/sc-staging/.pyenv/versions/suttacentral/lib/python3.5/site-packages/jinja2/”, line 408, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: ‘None’ has no attribute ‘collection’

browser returns


unreachable code after return statement core-f704ccdc.js:149
unreachable code after return statement core-f704ccdc.js:284
unreachable code after return statement core-f704ccdc.js:457:166
unreachable code after return statement core-f704ccdc.js:493
Hiding dropdowns core-f704ccdc.js:116:34
Panel Data : 11645 core-f704ccdc.js:452:130

1 Like

This is staging, I believe? If staging worked, it would be the main site! It’s incomplete and unstable, use at your own risk.

The whole staging server was down when I tried so I restarted it and it works again.
There is far more than an2 that does not work but I cannot immediately see what is going on. It seems to have to do with url’s with a range in it, like AN 2.141-150

The staging server uses the same data as the main server and that one works fine. @blake, can you see what is going on? Does it have anything to do with the changes you made to the newdata branch?

Thanks @blake! That works again.

1 Like