Uploaded image for project: 'Helm'
  1. Helm
  2. HELM-265

Cannot use grafana-image-renderer with Helm's Docker image

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 7.1.1
    • Component/s: Docs
    • Labels:
    • Sprint:
      Horizon 2021 - Jun 9 - Jun 23
    • HB Backlog Status:
      Backlog CM

      Description

      There have been multiple issues with making Helm happy with Grafana 7, and the following affects the reports functionality in OpenNMS.

      OpenNMS has a feature to generate PDF reports from Grafana Dashboards. With the current state of the Docker images for Helm 5.0.3 (based on Grafana 6.7.x), the reports are generated without issues.

      However, with Grafana 7.x and Helm 6.x, the reports are not rendered if I use the Docker image. The Grafana log says I have to install the image renderer plugin, but if I do that I get the following error and some unexpected HTML exceptions in the generated PDF report:

      t=2020-12-23T16:04:36+0000 lvl=eror msg="Rendering failed." logger=context userId=0 orgId=1 uname= error="Rendering failed: Error: Failed to launch chrome!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md\n"
      

      Clearly, there is a missing library not available in the Docker Image for Grafana (which we use as the base image for Helm in its Dockerfile) that must be installed to use the Image Renderer.

      For now, the workaround is to avoid Docker, but as there are still other rendering issues, it is recommended to stay with Grafana 6.7.2 and Helm 5.0.3 for now.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Bonnie Bonnie Robinson
              Reporter:
              agalue Alejandro Galue
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration