graphite on Debian 12
Hi all,
I have updated some system from Debian 10 recently. That system mainly
hosts a graphite instance used to store some metrics collected from
several sources.
Set up originally with Debian 10, and not optimized for anything at all,
it got an update first to Debian 10, following the usual boring process
(modify apt sources to new distro, apt update, apt upgrade
--without-new-pkgs, apt dull-upgrade, reboot, check what fails).
After upgrading to Debian 11 I noticed graphite was no longer accessible
in the web browser. A quick investigation revealed that graphite-web for
tha version was not available as package. I didn't notice anything in
the release notes, but I've not been very careful reading them. So, as I
also found the package to be available for Debian 12, I just proceeded
with another upgrade.
Same process, this time adding apt install graphite-web manually
afterwards, and -- now I get a server error when pointing the web
browser at the graphite host.
Web server log shows a clear error code of 500 whan a client request is
processed.
The error log gives me "mod_wsgi (pid=1480): Failed to exec Python
script file '/usr/share/graphite-web/graphite.wsgi'." and a python stack
trace.
Searching for the error messages in combination with debian and python
search terms didn't lead me anywhere meaningful.
So, does anybody have an idea how to fix
[Fri Sep 05 12:20:36.105472 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] Traceback (most recent call last):
[Fri Sep 05 12:20:36.106212 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] File "/usr/share/graphite-web/graphite.wsgi",
line 15, in <module>
[Fri Sep 05 12:20:36.106255 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] application = get_wsgi_application()
[Fri Sep 05 12:20:36.106269 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] ^^^^^^^^^^^^^^^^^^^^^^
[Fri Sep 05 12:20:36.106311 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] File
"/usr/lib/python3/dist-packages/django/core/wsgi.py", line 12, in
get_wsgi_application
[Fri Sep 05 12:20:36.106326 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] django.setup(set_prefix=False)
[Fri Sep 05 12:20:36.106358 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] File
"/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
[Fri Sep 05 12:20:36.106374 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] apps.populate(settings.INSTALLED_APPS)
[Fri Sep 05 12:20:36.106405 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] File
"/usr/lib/python3/dist-packages/django/apps/registry.py", line 83, in
populate
[Fri Sep 05 12:20:36.106423 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] raise RuntimeError("populate() isn't
reentrant")
[Fri Sep 05 12:20:36.106482 2025] [wsgi:error] [pid 1480:tid 1542]
[remote 127.0.0.1:46174] RuntimeError: populate() isn't reentrant
Graphite or django communities might be helpful, I guess, but seeing
this is a mostly unmodified Debian package installation, I wouldn't be
surprised to find useful help here, too.
Thanks,
Arno
--
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
Reply to: