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

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



    • Horizon 2021 - Jun 9 - Jun 23
    • Backlog CM


      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.


        Issue Links



              Bonnie Bonnie Robinson
              agalue Alejandro Galue
              1 Vote for this issue
              4 Start watching this issue