graphite-web 1.0.2+debian-2~bpo9+1 affected by 878208
Hi,
graphite-web from stretch backports is affeced by #878208:
TypeError: context must be a dict rather than Context.
The fix described there also works (see below):
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878208
...
Removing the Context from around the dict corrects the issue.
graphite-web runs via wsgi through apache, after fixing the TypeError
the initial problem is visible:
...
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 899, in execute_sql
raise original_exception
OperationalError: no such table: auth_user
which was fixed by running the migrations.
Stefan
PS:
--- /usr/lib/python2.7/dist-packages/graphite/views.py 2019-01-13 19:01:00.556615794 +0100
+++ /tmp/views.py 2019-01-13 19:00:47.341018247 +0100
@@ -5,7 +5,7 @@
def server_error(request, template_name='500.html'):
template = loader.get_template(template_name)
- context = {
+ context = Context({
'stacktrace' : traceback.format_exc()
- }
+ })
return HttpResponseServerError( template.render(context) )
Reply to: