Public bug reported: Querying data from a graphite-web instance results in 500 Internal Server Error caused by incompatible changes in Django framework, see error output below. It seems that the mimetype argument was renamed to content_type in Django HttpResponse.
Applying the attached patch seems to fix the mentioned issue. TypeError at /metrics/index.json __init__() got an unexpected keyword argument 'mimetype' Request Method: GET Request URL: https://XXXX/metrics/index.json Django Version: 1.7.6 Exception Type: TypeError Exception Value: __init__() got an unexpected keyword argument 'mimetype' Exception Location: /usr/lib/python2.7/dist-packages/django/http/response.py in __init__, line 318 Python Executable: /usr/bin/uwsgi-core Python Version: 2.7.6 Python Path: ['/usr/lib/python2.7/dist-packages', '/etc/graphite/', '.', '', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7', '/etc/graphite', '/usr/lib/python2.7/dist-packages/graphite/thirdparty'] Server time: Mon, 1 Jun 2015 08:53:19 -0500 ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: graphite-web 0.9.12+debian-3 ProcVersionSignature: Ubuntu 3.13.0-53.89-generic 3.13.11-ckt19 Uname: Linux 3.13.0-53-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.11 Architecture: amd64 Date: Mon Jun 1 17:34:20 2015 PackageArchitecture: all SourcePackage: graphite-web UpgradeStatus: No upgrade log present (probably fresh install) mtime.conffile..etc.graphite.local.settings.py: 2015-05-28T22:24:55.024571 ** Affects: graphite-web (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug third-party-packages trusty ** Patch added: "A patch to fix the issue" https://bugs.launchpad.net/bugs/1460709/+attachment/4408070/+files/graphite_django18.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1460709 Title: graphite-web returns Internal Server Error due to incompatible changes in Django To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/graphite-web/+bug/1460709/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs