Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Grafana
  3. Unable to Connect Grafana to Graphite

Unable to Connect Grafana to Graphite

Scheduled Pinned Locked Moved Grafana
6 Posts 2 Posters 337 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abset
    wrote on last edited by
    #1

    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 established

    The 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!

    1 Reply Last reply
    1
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      Are you referring to connecting to the internal graphite/graphs container ? I have to say this has not been tested at all. The graphs container is mostly internal and used by the dashboad .

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        Also, where are these logs from?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          abset
          wrote on last edited by
          #4

          Yes, I am attempting to connect to the internal Graphite container, and these logs originate from it. My goal is to retrieve server metrics.

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            I haven't tried to connect graphite to grafana so I don't know much here. Do you know how exactly grafana talks to Graphite? Our dashboard uses the REST API of graphite-web . We don't connect directly to carbon . From the logs it seems the error comes from carbon and not from graphite-web .

            1 Reply Last reply
            0
            • A Offline
              A Offline
              abset
              wrote on last edited by
              #6

              I'm using Grafana's internal plugin to connect to Graphite, so the process should be straightforward. However, I will explore alternative methods to obtain the server metrics.
              Thanks!

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search