Graphite installation Error

Hello i want install graphite on my debian 11 server, but i get the following error after i set up everything:

[Wed Dec 14 14:50:08.625129 2022] [wsgi:error] [pid 1445] [remote 172.21.15.158:56405] mod_wsgi (pid=1445): Failed to exec Python script file '/opt/graphite/conf/graphite.wsgi'.
[Wed Dec 14 14:50:08.625234 2022] [wsgi:error] [pid 1445] [remote 172.21.15.158:56405] mod_wsgi (pid=1445): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Wed Dec 14 14:50:08.625398 2022] [wsgi:error] [pid 1445] [remote 172.21.15.158:56405] Traceback (most recent call last):
[Wed Dec 14 14:50:08.625427 2022] [wsgi:error] [pid 1445] [remote 172.21.15.158:56405]   File "/opt/graphite/conf/graphite.wsgi", line 7, in <module>
[Wed Dec 14 14:50:08.625433 2022] [wsgi:error] [pid 1445] [remote 172.21.15.158:56405]     from graphite.wsgi import application
[Wed Dec 14 14:50:08.625451 2022] [wsgi:error] [pid 1445] [remote 172.21.15.158:56405]   File "/usr/local/lib/python3.9/dist-packages/graphite/__init__.py", line 202
[Wed Dec 14 14:50:08.625461 2022] [wsgi:error] [pid 1445] [remote 172.21.15.158:56405]     \t\t\t\traise TypeError, "Data passed to Dataset constructor is of unknown dimensions."
[Wed Dec 14 14:50:08.625480 2022] [wsgi:error] [pid 1445] [remote 172.21.15.158:56405]     \t\t\t\t               ^
[Wed Dec 14 14:50:08.625488 2022] [wsgi:error] [pid 1445] [remote 172.21.15.158:56405] SyntaxError: invalid syntax
[Wed Dec 14 14:50:08.665154 2022] [wsgi:error] [pid 1444] [remote 172.21.15.158:56406] mod_wsgi (pid=1444): Failed to exec Python script file '/opt/graphite/conf/graphite.wsgi'.
[Wed Dec 14 14:50:08.665253 2022] [wsgi:error] [pid 1444] [remote 172.21.15.158:56406] mod_wsgi (pid=1444): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Wed Dec 14 14:50:08.665369 2022] [wsgi:error] [pid 1444] [remote 172.21.15.158:56406] Traceback (most recent call last):
[Wed Dec 14 14:50:08.665395 2022] [wsgi:error] [pid 1444] [remote 172.21.15.158:56406]   File "/opt/graphite/conf/graphite.wsgi", line 7, in <module>
[Wed Dec 14 14:50:08.665412 2022] [wsgi:error] [pid 1444] [remote 172.21.15.158:56406]     from graphite.wsgi import application
[Wed Dec 14 14:50:08.665430 2022] [wsgi:error] [pid 1444] [remote 172.21.15.158:56406]   File "/usr/local/lib/python3.9/dist-packages/graphite/__init__.py", line 202
[Wed Dec 14 14:50:08.665450 2022] [wsgi:error] [pid 1444] [remote 172.21.15.158:56406]     \t\t\t\traise TypeError, "Data passed to Dataset constructor is of unknown dimensions."
[Wed Dec 14 14:50:08.665473 2022] [wsgi:error] [pid 1444] [remote 172.21.15.158:56406]     \t\t\t\t               ^
[Wed Dec 14 14:50:08.665488 2022] [wsgi:error] [pid 1444] [remote 172.21.15.158:56406] SyntaxError: invalid syntax

Hope somebody can help or explain the error.

Thanks in advance

Is noone able to help here?

Never had that error in any of the setups with Graphite I have running.
No idea what it means or where it comes from, tbh.

I primarily used this guide to setup graphite, maybe try it out and see if that makes it work for you :slight_smile:
A distro agnostic guide to Graphite with venv (examples: RHEL8, Debian10, Ubuntu18) - Tutorials and Guides - Icinga Community

thanks for the eply, but i set up the server again from scratch and there it worked :slight_smile:

Unfortunately, there is now also a Graphite problem after the reinstallation.

I followed the guide below and the installations did not work with pip. Instead I downloaded graphite-web, carbon and whisper on git and ran setup.py.

on the graphite webpage it says “No data”

my carbon.conf is untouched.
and my storage-schema.conf looks the following

[carbon]
pattern = ^carbon\.
retentions = 60:90d

[icinga_default]
pattern = ^icinga\.
retentions = 1m:2d,5m:10d,30m:90d,360m:4y

[default]
pattern = .*
retentions = 60s:1d,5m:30d,1h:3y

Can somebody tell me where to look for config issues or how to detect wether data is sent or not ?

Kind regards
Pascal

Did you enable the graphite feature on the icinga master?
Are the whisper files being created? I think the default location is /var/lib/grahpite/whisper/icinga2, might be elsewhere. With find / -name '*.wsp' you should be able to find them.

Yes graphite was enabled and the whisper files were created.
Didnt change anything, but after 2 hours the graphs started building.

Sorry for annoying you and thank you very much for your support :slight_smile: