Package: graphite-web
Version: 1.1.4-5
Severity: grave
Justification: renders package unusable

Hi,

When initially setting up graphite-web I ran the following (per
/usr/share/doc/graphite-carbon/README.Debian):

# su -s /bin/bash _graphite -c 'graphite-manage migrate --run-syncdb'
/usr/lib/python3/dist-packages/graphite/settings.py:334: UserWarning: 
SECRET_KEY is set to an unsafe default. This should be set in local_settings.py 
for better security
  warn('SECRET_KEY is set to an unsafe default. This should be set in 
local_settings.py for better security')
Traceback (most recent call last):
  (...52 lines of stack trace removed...)
  File "/usr/lib/python3/dist-packages/graphite/render/urls.py", line 16, in 
<module>
    from . import views
  File "/usr/lib/python3/dist-packages/graphite/render/views.py", line 23, in 
<module>
    from cgi import parse_qs
ImportError: cannot import name 'parse_qs' from 'cgi' 
(/usr/lib/python3.8/cgi.py)

This also happens when connecting to the dashboard via HTTP: I installed
libapache2-mod-wsgi-py3, configured the VirtualHost and when connecting I get a
500 on the browser and a similar stack trace on the error log. I didn't check
it all but the last 2 entries are same as above.

When looking into this I found what seems to be a dependency issue. The release
notes for graphite 1.1.6 [1] state "Python 3.8 and Django 2.x support". That
makes me speculate that graphite 1.1.4 doesn't support python 3.8, and is thus
broken on debian testing/sid.

I believe we'd need graphite-web 1.1.6 on debian.

[1] https://graphite.readthedocs.io/en/latest/releases/1_1_6.html


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages graphite-web depends on:
ii  adduser                 3.118
ii  python3                 3.8.2-3
ii  python3-cairo           1.16.2-3
ii  python3-cairocffi       0.9.0-4
ii  python3-django          2:2.2.13-1
ii  python3-django-tagging  1:0.4.5-3
ii  python3-pyparsing       2.4.7-1
ii  python3-simplejson      3.17.0-1
ii  python3-six             1.15.0-1
ii  python3-tz              2020.1-1
ii  python3-urllib3         1.25.9-1
ii  python3-whisper         1.1.4-2

graphite-web recommends no packages.

Versions of packages graphite-web suggests:
ii  graphite-carbon          1.1.4-2
ii  libapache2-mod-wsgi-py3  4.6.8-1+b1
pn  python3-ldap             <none>
pn  python3-memcache         <none>
pn  python3-mysqldb          <none>

-- no debconf information

Reply via email to