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.

"Rendering failed: Error: Failed to launch chrome"

See original GitHub issue

What 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
aknuds1commented, Jun 19, 2020

You have to install Puppeteer’s dependencies, as described here.

4reactions
adiii717commented, May 3, 2021

Thanks Arve

Below worked for me.

grafana-cli plugins install grafana-image-renderer
yum install -y  alsa-lib.x86_64 atk.x86_64 cups-libs.x86_64 gtk3.x86_64 ipa-gothic-fonts libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXrandr.x86_64 libXScrnSaver.x86_64 libXtst.x86_64 pango.x86_64 xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-fonts-cyrillic xorg-x11-fonts-misc xorg-x11-fonts-Type1 xorg-x11-utils
yum update nss -y
service grafana-server restart
Read more comments on GitHub >

github_iconTop Results From Across the Web

Grafana image renderer on centos dos not start embedded ...
Hi I tried to install the grafana image renderer 2.0.0 on centos 7 from ... error=“Rendering failed: Error: Failed to launch chrome! spawn ......
Read more >
Failed to launch chrome Razor View to PDF .Net Core
An unhandled exception has occurred while executing the request. jsreport.Local.JsReportBinaryException: Error rendering report: rendering has ...
Read more >
Error: Failed to launch the browser process puppeteer
So I first went into node_modules/puppeteer/.local-chromium/linux-737027/ and found a zip file named chrome-linux.zip containing a folder named ...
Read more >
Why "grafana" with no picture out? - bOredOm
msg="Render request failed" logger=plugins.backend ... process!\n/var/lib/grafana/plugins/grafana-image-renderer/chrome-linux/chrome: error ...
Read more >
Fix Chrome update problems and failed updates
Download Chrome again and try reinstalling. If you keep seeing an error: On Windows, try the standalone installer. On Mac, download Google Software...
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