"Rendering failed: Error: Failed to launch chrome"
See original GitHub issueWhat happened:
Alert telegram messages don’t have picture. Test message have at the telegram notification channel settings page (there is a button to send test alert message).
I set log level to debug and when alert telegram message has been sent I see below messages in the log. I have installed renderer plugin with this command then restarted grafana server: grafana-cli plugins install grafana-image-renderer
te to=alerting
t=2020-06-18T22:11:40+0200 lvl=info msg=Rendering logger=rendering renderer=plugin path="d-solo/edqnwtliz/network?orgId=1&panelId=7"
t=2020-06-18T22:11:40+0200 lvl=dbug msg="Calling renderer plugin" logger=rendering renderer=plugin req="url:\"http://127.0.0.1:3000/d-solo/edqnwtliz/network?orgId=1&panelId=7&render=1\" width:1000 height:500 deviceScaleFactor:1 filePath:\"/var/lib/grafana/png/MNIkNy6hl1U74VVVJsga.png\" renderKey:\"pechLdekIdmeJQQR9SA9HHRSadEICDY7\" domain:\"127.0.0.1\" timeout:15 "
t=2020-06-18T22:11:40+0200 lvl=eror msg="Render request failed" logger=plugins.backend pluginId=grafana-image-renderer url="http://127.0.0.1:3000/d-solo/edqnwtliz/network?orgId=1&panelId=7&render=1" error="Error: Failed to launch chrome!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md\n"
t=2020-06-18T22:11:41+0200 lvl=eror msg="Failed to render and upload alert panel image." logger=alerting.notifier ruleId=17 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-xcb.so.1: cannot open shared object file: No such file or directory\n\n\nTROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md\n"
t=2020-06-18T22:11:41+0200 lvl=eror msg="Could not generate Telegram message with inline image." logger=alerting.notifier.telegram err="open : no such file or directory"
What you expected to happen: I expected to have a graph in my telegram message grafana sent to me via telegram.
How to reproduce it (as minimally and precisely as possible): apt install -y software-properties-common add-apt-repository “deb https://packages.grafana.com/oss/deb stable main” wget -q -O - https://packages.grafana.com/gpg.key | apt-key add - apt update apt install grafana -y grafana-cli plugins install grafana-image-renderer /etc/init.d/grafana-server restart Now set telegram plugin (bot ID), a graph and an alert for it.
Anything else we need to know?: nothing
Environment:
- Grafana Image Renderer version: 2.0.0
- Grafana version: v7.0.3 (00ee734baf)
- Installed plugin or remote renderer service: local renderer
- OS Grafana Image Renderer is installed on: Ubuntu 18.04.4 LTS
- User OS & Browser: Firefox 77.0.1 64bit
- Others:
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)

Top Related StackOverflow Question
You have to install Puppeteer’s dependencies, as described here.
Thanks Arve
Below worked for me.