Closed debsahu closed 2 years ago
Please provide version information
I'm on latest release v7.2.0 of grafana-addon
same here ! it says that image renderer plugin is not available on arm7 architecture
same here ! it says that image renderer plugin is not available on arm7 architecture
That doesn't sound the same, as indeed this will never work on the arm7 architecture... That is not a bug, but a known limitation of the architecture in combination with Grafana
@debsahu
Could you add some system information with that? e.g., the output of ha info
?
@debsahu
Could you add some system information with that? e.g., the output of
ha info
?
version | core-2021.9.7 |
---|---|
installation_type | Home Assistant Supervised |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.9.7 |
os_name | Linux |
os_version | 5.10.0-0.bpo.7-amd64 |
arch | x86_64 |
timezone | America/Detroit |
Would any of these resources help? https://github.com/grafana/grafana-image-renderer/issues/159
I just moved Grafana from Windows server 2019 to HassOS running in Virtualbox and have the same issue.
Is it possible that there are dependencies missing in the docker container?
Looks like it failed on loading shared library 'libxshmfence.so.1'
t=2021-11-06T16:44:13+0100 lvl=eror msg="Failed to get browser version" logger=plugins.backend pluginId=grafana-image-renderer err=map[]
t=2021-11-06T16:51:52+0100 lvl=info msg=Rendering logger=rendering renderer=plugin path="d-solo/BDVAECK7z/stromer-kilometers?orgId=1&from=1633618308479&to=1636213908479&panelId=2&width=1000&height=500&tz=Europe/Amsterdam" t=2021-11-06T16:51:52+0100 lvl=eror msg="Render request failed" logger=plugins.backend pluginId=grafana-image-renderer url="http://localhost:3000/d-solo/BDVAECK7z/stromer-kilometers?orgId=1&from=1633618308479&to=1636213908479&panelId=2&width=1000&height=500&tz=Europe/Amsterdam&render=1" error="Error: Failed to launch the browser process!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n"
t=2021-11-06T16:51:52+0100 lvl=eror msg="Rendering failed." logger=context userId=1 orgId=1 uname=admin error="rendering failed: Error: Failed to launch the browser process!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n"
t=2021-11-06T16:51:52+0100 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/render/d-solo/BDVAECK7z/stromer-kilometers status=500 remote_addr="[REMOVED]" time_ms=78 size=769 referer=
version | core-2021.11.1 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.9.7 |
os_name | Linux |
os_version | 5.10.75 |
arch | x86_64 |
timezone | Europe/Amsterdam |
I've released a new version of the add-on. I've tested the image rendering on a similar setup, which now work. Could you check again?
Same issue persists v.7.3.0
t=2021-11-11T13:39:12-0500 lvl=eror msg="Render request failed" logger=plugins.backend pluginId=grafana-image-renderer url="http://localhost:3000/d-solo/IPOUl8lZk/rtlamr?orgId=1&refresh=30m&from=1636569550111&to=1636655950111&panelId=6&width=1000&height=500&tz=America/New_York&render=1" error="Error: Failed to launch the browser process!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n"
t=2021-11-11T13:39:12-0500 lvl=eror msg="Rendering failed." logger=context userId=1 orgId=1 uname=admin error="rendering failed: Error: Failed to launch the browser process!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n"
t=2021-11-11T13:39:12-0500 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/render/d-solo/IPOUl8lZk/rtlamr status=500 remote_addr="104.191.245.15, 104.191.245.15, 172.30.33.10, 172.30.32.1" time_ms=8 size=676 referer=
hi @frenck thanks for the update, but as debsahu mentioned the issue persists and I get the same error message as I posted earlier.
I tested this as well and couldn't duplicate, although I must say I'm not a huge Grafana user, so may be something to do with how you use the renderer??
However, yeah the library reports as missing:
root@a0d7b954-grafana:/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux# ldd chrome | grep not
libxshmfence.so.1 => not found
Looks like we need to add libxshmfence1, will do a PR when I have a few minutes.
I use it with camera component
camera:
- platform: generic
name: Grafana_2_water_consumption
still_image_url: http://a0d7b954-grafana/api/hassio_ingress/XXXXXXXXXXXX/render/d-solo/IPOUl8lZk/rtlamr?orgId=1&panelId=6&width=600&height=300&tz=America%2FNew_York
username: !secret grafana_user
password: !secret grafana_pass
verify_ssl: false
Thanks, this fixed it.
Problem/Motivation
Expected behavior
Actual behavior
logs
Steps to reproduce
Proposed changes