Unable to Connect Grafana to Graphite
-
I am encountering an issue when trying to connect Grafana to Graphite on Cloudron. The error appears in the Graphite logs and prevents the proper connection of the services. Below is the relevant log output:
2025-02-16T22:59:05Z 16/02/2025 22:59:05 :: [listener] invalid line received from client 172.18.18.235:59060, ignoring []
2025-02-16T22:59:35Z 16/02/2025 22:59:35 :: [listener] MetricLineReceiver connection with 172.18.18.235:59060 closed cleanly
2025-02-16T22:59:54Z 16/02/2025 22:59:54 :: [listener] MetricLineReceiver connection with 172.18.18.148:33670 established
2025-02-16T23:00:00Z 16/02/2025 23:00:00 :: [console] Unhandled Error
2025-02-16T23:00:00Z Traceback (most recent call last):
2025-02-16T23:00:00Z File "/usr/lib/python3/dist-packages/twisted/python/log.py", line 96, in callWithLogger
2025-02-16T23:00:00Z return callWithContext({"system": lp}, func, *args, **kw)
2025-02-16T23:00:00Z File "/usr/lib/python3/dist-packages/twisted/python/log.py", line 80, in callWithContext
2025-02-16T23:00:00Z return context.call({ILogContext: newCtx}, func, *args, **kw)
2025-02-16T23:00:00Z File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 117, in callWithContext
2025-02-16T23:00:00Z return self.currentContext().callWithContext(ctx, func, *args, **kw)
2025-02-16T23:00:00Z File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 82, in callWithContext
2025-02-16T23:00:00Z return func(*args, **kw)
2025-02-16T23:00:00Z --- <exception caught here> ---
2025-02-16T23:00:00Z File "/usr/lib/python3/dist-packages/twisted/internet/posixbase.py", line 683, in _doReadOrWrite
2025-02-16T23:00:00Z why = selectable.doRead()
2025-02-16T23:00:00Z File "/usr/lib/python3/dist-packages/twisted/internet/tcp.py", line 247, in doRead
2025-02-16T23:00:00Z return self._dataReceived(data)
2025-02-16T23:00:00Z File "/usr/lib/python3/dist-packages/twisted/internet/tcp.py", line 252, in _dataReceived
2025-02-16T23:00:00Z rval = self.protocol.dataReceived(data)
2025-02-16T23:00:00Z File "/usr/lib/python3/dist-packages/twisted/protocols/basic.py", line 440, in dataReceived
2025-02-16T23:00:00Z self.lineReceived(line)
2025-02-16T23:00:00Z File "/usr/lib/python3/dist-packages/carbon/protocols.py", line 192, in lineReceived
2025-02-16T23:00:00Z line = line.decode('utf-8')
2025-02-16T23:00:00Z builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
2025-02-16T23:00:00Z 16/02/2025 23:00:00 :: [listener] MetricLineReceiver connection with 172.18.18.148:33670 lost: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
2025-02-16T23:00:57Z 16/02/2025 23:00:57 :: [listener] MetricLineReceiver connection with 172.18.18.235:54148 establishedThe key error appears to be:
builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Are there any known issues with encoding mismatches between Grafana and Graphite on Cloudron?
Any guidance or troubleshooting steps would be greatly appreciated!