[Bug 2030807] [NEW] graphite-web fails to start after bionic ESM upgrade

Launchpad Bug Tracker 2030807 at bugs.launchpad.net
Wed Aug 9 12:20:05 UTC 2023


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

graphite-web fails to render any page with the following non-useful
traceback:

 [2023-08-08 19:51:21 +0000] [10628] [ERROR] Error handling request /graphite/render
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 135, in handle
     self.handle_request(listener, req, client, addr)
   File "/usr/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 176, in handle_request
     respiter = self.wsgi(environ, resp.start_response)
   File "/usr/lib/python2.7/dist-packages/whitenoise/base.py", line 66, in __call__
     return self.application(environ, start_response)
   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 157, in __call__
     response = self.get_response(request)
   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 124, in get_response
     response = self._middleware_chain(request)
   File "/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 43, in inner
     response = response_for_exception(request, exc)
   File "/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 93, in response_for_exception
     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
   File "/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 135, in handle_uncaught_exception
     extra={'status_code': 500, 'request': request},
   File "/usr/lib/python2.7/logging/__init__.py", line 1200, in error
     self._log(ERROR, msg, args, **kwargs)
   File "/usr/lib/python2.7/logging/__init__.py", line 1293, in _log
     self.handle(record)
   File "/usr/lib/python2.7/logging/__init__.py", line 1303, in handle
     self.callHandlers(record)
   File "/usr/lib/python2.7/logging/__init__.py", line 1343, in callHandlers
     hdlr.handle(record)
   File "/usr/lib/python2.7/logging/__init__.py", line 766, in handle
     self.emit(record)
   File "/usr/lib/python2.7/dist-packages/django/utils/log.py", line 119, in emit
     message = "%s\n\n%s" % (self.format(no_exc_record), reporter.get_traceback_text())
   File "/usr/lib/python2.7/dist-packages/django/views/debug.py", line 334, in get_traceback_text
     return t.render(c)
   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 207, in render
     return self._render(context)
   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 199, in _render
     return self.nodelist.render(context)
   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 990, in render
     bit = node.render_annotated(context)
   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 957, in render_annotated
     return self.render(context)
   File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py", line 219, in render
     nodelist.append(node.render_annotated(context))
   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 957, in render_annotated
     return self.render(context)
   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 1040, in render
     output = self.filter_expression.resolve(context)
   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 736, in resolve
     new_obj = func(obj, *arg_vals)
   File "/usr/lib/python2.7/dist-packages/django/template/defaultfilters.py", line 255, in stringformat
     return ("%" + six.text_type(arg)) % value
   File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 79, in __repr__
     return repr(self.__cast())
   File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 131, in __cast
     return self.__text_cast()
   File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 119, in __text_cast
     return func(*self.__args, **self.__kw)
   File "/usr/lib/python2.7/dist-packages/django/urls/base.py", line 91, in reverse
     return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
   File "/usr/lib/python2.7/dist-packages/django/urls/resolvers.py", line 440, in _reverse_with_prefix
     possibilities = self.reverse_dict.getlist(lookup_view)
   File "/usr/lib/python2.7/dist-packages/django/urls/resolvers.py", line 337, in reverse_dict
     return self._reverse_dict[language_code]
 KeyError: 'en-us'

Reverting graphite-web to 1.0.2+debian-2 fixes the issue.

python-django:
  Installed: 1:1.11.11-1ubuntu1.21+esm1
  Candidate: 1:1.11.11-1ubuntu1.21+esm1

python-django-common:
  Installed: 1:1.11.11-1ubuntu1.21+esm1
  Candidate: 1:1.11.11-1ubuntu1.21+esm1

graphite-web:
  Installed: 1.0.2+debian-2
  Candidate: 1.0.2+debian-2ubuntu0.1~esm1

** Affects: graphite-web (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: patch
-- 
graphite-web fails to start after bionic ESM upgrade
https://bugs.launchpad.net/bugs/2030807
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list