Package: graphite-web
Version: 1.1.8-2
Severity: important
Tags: patch

The error
  RuntimeError("populate() isn't reentrant")
is logged in the Apache log file when attempting to use the stock
/usr/share/graphite-web/graphite.wsgi file.

https://wiki.rockstable.it/Icinga2 in the section "Graphite troubleshooting"
contains a workaround to fix the problem, namely changing

os.environ.setdefault('GRAPHITE_SETTINGS_MODULE', 'graphite.local_settings')

to

os.environ.setdefault('GRAPHITE_SETTINGS_MODULE', 'local_settings')

After making this change on my system the package works.


-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages graphite-web depends on:
ii  adduser                 3.134
ii  python3                 3.11.2-1+b1
ii  python3-cairo           1.20.1-5+b1
ii  python3-cairocffi       1.4.0-1
ii  python3-django          3:3.2.19-1
ii  python3-django-tagging  1:0.5.0-4
ii  python3-pyparsing       3.0.9-1
ii  python3-simplejson      3.18.3-1
ii  python3-six             1.16.0-4
ii  python3-tz              2022.7.1-4
ii  python3-urllib3         1.26.12-1
ii  python3-whisper         1.1.4-2.2

graphite-web recommends no packages.

Versions of packages graphite-web suggests:
ii  graphite-carbon          1.1.7-1.1
ii  libapache2-mod-wsgi-py3  4.9.4-1+b2
pn  python3-ldap             <none>
pn  python3-memcache         <none>
pn  python3-mysqldb          <none>

-- Configuration Files:
/etc/graphite/local_settings.py changed [not included]

-- no debconf information

Reply via email to