question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image renderer plugin 3.4.2 appears to be incompatible with Grafana 9.0.3 Alpine Docker image

See original GitHub issue

What happened: Grafana 9.0.3 in Alpine Docker image fails to start when Grafana Image Renderer is enabled. The latest version of the plugin right now is 3.4.2.

9.0.2 works. Ubuntu Docker image works. Alpine image is 3.15.4 in case of both 9.0.2 and 9.0.3.

How to reproduce it (as minimally and precisely as possible):

cd $(mktemp -d)
wget https://raw.githubusercontent.com/grafana/grafana/acf54905eeeb92cd692b006c1819fc3ecd623361/packaging/docker/custom/Dockerfile
docker build --build-arg GF_INSTALL_IMAGE_RENDERER_PLUGIN=true -t grafana-image .
docker run --rm  -e GF_LOG_LEVEL=debug grafana-image

Anything else we need to know?:

Logs:

logger=plugin.grafana-image-renderer t=2022-07-16T14:19:12.035711493Z level=debug msg="Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64)"
logger=plugin.grafana-image-renderer t=2022-07-16T14:19:12.039483486Z level=debug msg="Error relocating /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64: gnu_get_libc_version: symbol not found"
logger=plugin.grafana-image-renderer t=2022-07-16T14:19:12.039670258Z level=debug msg="Error relocating /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64: __register_atfork: symbol not found"
logger=plugin.grafana-image-renderer t=2022-07-16T14:19:12.039767921Z level=debug msg="Error relocating /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64: __strdup: symbol not found"
logger=plugin.grafana-image-renderer t=2022-07-16T14:19:12.039943081Z level=debug msg="Error relocating /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64: setcontext: symbol not found"
logger=plugin.grafana-image-renderer t=2022-07-16T14:19:12.040066454Z level=debug msg="Error relocating /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64: makecontext: symbol not found"
logger=plugin.grafana-image-renderer t=2022-07-16T14:19:12.040506122Z level=debug msg="Error relocating /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64: backtrace: symbol not found"
logger=plugin.grafana-image-renderer t=2022-07-16T14:19:12.040525338Z level=debug msg="Error relocating /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64: getcontext: symbol not found"
logger=plugin.grafana-image-renderer t=2022-07-16T14:19:12.040530167Z level=debug msg="Error relocating /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64: __libc_stack_end: symbol not found"
logger=server t=2022-07-16T14:19:12.040532281Z level=error msg="Stopped background service" service=*rendering.RenderingService reason="Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol."
logger=secrets t=2022-07-16T14:19:12.040560965Z level=debug msg="Grafana is shutting down; stopping..."

...
*rendering.RenderingService run error: Unrecognized remote plugin message:

This usually means that the plugin is either invalid or simply
needs to be recompiled to support the latest protocol.
logger=server t=2022-07-16T14:19:12.15968329Z level=debug msg="Stopped background service" service=*updatechecker.PluginsService reason="context canceled"
logger=server t=2022-07-16T14:19:12.159732342Z level=error msg="Server shutdown" error="*rendering.RenderingService run error: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol."

The ld-linux-x86-64.so.2 and the symbol not found errors also appear in 9.0.2 and the plugin works, so I guess those are red herrings and we need a new plugin release?

Environment:

  • Grafana Image Renderer version: 3.4.2
  • Grafana version: 9.0.3
  • Installed plugin or remote renderer service: Plugin
  • OS Grafana Image Renderer is installed on: Ubuntu 22.04

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
joao1996fcommented, Aug 10, 2022

With grafana 9.0.7 and renderer 3.5.0 I don’t have this issue anymore.

4reactions
joao1996fcommented, Aug 2, 2022

With grafana 9.0.6 and renderer 3.5.0 I have the same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Grafana Image Renderer plugin for Grafana | Grafana Labs
Grafana Backend Image Renderer that uses headless chrome to capture images. ... This plugin is not compatible with the current Grafana Docker image...
Read more >
Issues · grafana/grafana-image-renderer - GitHub
A Grafana backend plugin that handles rendering of panels & dashboards to PNGs ... Image renderer plugin 3.4.2 appears to be incompatible with...
Read more >
Grafana Docker image
The official Grafana docker container. ... #20196, @aknuds1; Build and use musl-based binaries in alpine images to resolve glibc incompatibility issues.
Read more >
Package List — Spack 0.20.0.dev0 documentation
ANTs is popularly considered a state-of-the-art medical image registration and segmentation toolkit. ANTs depends on the Insight ToolKit (ITK), ...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found