Grafana-image-renderer error "Failed to get browser version" err=map[]

Hi. I installed grafana-image-renderer plugin. The following error was recorded in /var/log/grafana/grafana.log when I restarted grafana-server.

lvl=eror msg="Failed to get browser version" logger=plugins.backend pluginId=grafana-image-renderer err=map[]

Some libraries for chrome wasn’t installed. So I installed the libraries and I was able to display chrome version.

sudo dnf install -y atk at-spi2-atk cups-libs libdrm libxcb libX11 libXcomposite libXdamage libXfixes libXrandr mesa-libgbm pango cairo alsa-lib

sudo /usr/local/grafana/plugins/grafana-image-renderer/chrome-linux/chrome --version
Chromium 100.0.4889.0

But The following error was still recorded in /var/log/grafana/grafana.log when I restarted grafana-server.
lvl=eror msg="Failed to get browser version" logger=plugins.backend pluginId=grafana-image-renderer err=map[]

Could you please tell me what is the problem?
Thanks for any help or pointers.

What Grafana version and what operating system are you using?
grafana-server 7.5.11 on Oracle Linux Server 8.6

What are you trying to achieve?
An error isn’t recorded in /var/log/grafana/grafana.log when I restart grafana-server.

How are you trying to achieve it?
I installed Some libraries for chrome.
I restarted grafana-server.

What happened?
The following error was still recorded in /var/log/grafana/grafana.log

lvl=eror msg="Failed to get browser version" logger=plugins.backend pluginId=grafana-image-renderer err=map[]

What did you expect to happen?
The error isn’t recorded in /var/log/grafana/grafana.log

Can you copy/paste the configuration(s) that you are having problems with?
No

Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

lvl=eror msg="Failed to get browser version" logger=plugins.backend pluginId=grafana-image-renderer err=map[]

Did you follow any online instructions? If so, what is the URL?
No

/var/log/grafana/grafana.log

t=2022-xx-xxT21:31:13+0900 lvl=dbug msg="plugin started" logger=plugins.backend pluginId=grafana-image-renderer path=/usr/local/grafana/plugins/grafana-image-
renderer/plugin_start_linux_amd64 pid=3707981
t=2022-xx-xxT21:31:13+0900 lvl=dbug msg="waiting for RPC address" logger=plugins.backend pluginId=grafana-image-renderer path=/usr/local/grafana/plugins/grafa
na-image-renderer/plugin_start_linux_amd64
t=2022-xx-xxT21:31:13+0900 lvl=dbug msg="Browser initialized" logger=plugins.backend pluginId=grafana-image-renderer config="map[args:[--no-sandbox --disable-
gpu] chromeBin:/usr/local/grafana/plugins/grafana-image-renderer/chrome-linux/chrome clustering:map[maxConcurrency:5 mode:browser monitor:false timeout:30] de
viceScaleFactor:1 dumpio:false emulateNetworkConditions:false headed:false height:500 ignoresHttpsErrors:false maxDeviceScaleFactor:4 maxHeight:3000 maxWidth:
3000 mode:default timingMetrics:false verboseLogging:false width:1000]"
t=2022-xx-xxT21:31:14+0900 lvl=dbug msg="Scheduling update" logger=alerting.scheduler ruleCount=0
t=2022-xx-xxT21:31:15+0900 lvl=eror msg="Failed to get browser version" logger=plugins.backend pluginId=grafana-image-renderer err=map[]

Did you take a look at this doc?

https://grafana.com/grafana/plugins/grafana-image-renderer/\on docker

Thank you for your advice.
I installed the libraries on the following page. Then “Failed to get browser version” error didn’t occur.

But next the following error occured when I rendered a panel image by Panel > Share > Link tab > Direct lik rendered image.

t=2022-xx-xxTxx:xx:xx+xxxx lvl=info msg=Rendering logger=rendering renderer=plugin path="d-solo/QlXg2Iq7k/alert-test? orgId=1&from=1655850120706&to=1655871720707&panelId=2&width=1000&height=500&tz=xxxx%2Fxxxx" t=2022-xx-xxTxx:xx:xx+xxxx lvl=eror msg="Request error" logger=context userId=1 orgId=1 uname=admin error="runtime error: invalid memory address or nil pointer reference" stack="/usr/lib/golang/src/runtime/panic.go:212 (0x561d90d875bc) /usr/lib/golang/src/runtime/signal_unix.go:734 (0x561d90da1424) /builddir/build/BUILD/src/github.com/grafana/grafana/pkg/services/rendering/rendering.go:189 (0x561d91c9d58e) /builddir/build/BUILD/src/github.com/grafana/grafana/pkg/services/rendering/rendering.go:139 (0x561d91c9cf17) /builddir/build/BUILD/src/github.com/grafana/grafana/pkg/api/render.go:56 (0x561d924ac099) /usr/lib/golang/src/reflect/value.go:476 (0x561d90df19e6) /usr/lib/golang/src/reflect/value.go:337 (0x561d90df0eb8) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x561d918efcf6) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x561d918ef673) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:125 (0x561d918f205c) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:115 (0x561d91ee2b47) /builddir/build/BUILD/src/github.com/grafana/grafana/pkg/middleware/request_metrics.go:54 (0x561d91ee2b32) /usr/lib/golang/src/reflect/value.go:476 (0x561d90df19e6) /usr/lib/golang/src/reflect/value.go:337 (0x561d90df0eb8) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x561d918efcf6) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x561d918ef673) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:125 (0x561d918f205c) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:115 (0x561d91ee38a9) /builddir/build/BUILD/src/github.com/grafana/grafana/pkg/middleware/request_tracing.go:25 (0x561d91ee389c) /usr/lib/golang/src/reflect/value.go:476 (0x561d90df19e6) /usr/lib/golang/src/reflect/value.go:337 (0x561d90df0eb8) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:177 (0x561d918efcf6) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:137 (0x561d918ef673) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:125 (0x561d918f205c) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:115 (0x561d91ee29c6) /builddir/build/BUILD/src/github.com/grafana/grafana/pkg/middleware/recovery.go:166 (0x561d91ee29b9) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:81 (0x561d918f1ed2) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:157 (0x561d918ef9f1) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/github.com/go-macaron/inject/inject.go:135 (0x561d918ef764) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:125 (0x561d918f205c) /builddir/build/BUILD/src/github.com/grafana/grafana/vendor/gopkg.in/macaron.v1/context.go:115 (0x561d91ee0a51) /builddir/build/BUILD/src/github.com/grafana/grafana/pkg/middleware/logger.go:35 (0x t=2022-xx-xxTxx:xx:xx+0900 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/render/d-solo/QlXg2Iq7k/alert-test status=500 remote_addr=xx.xx.xx.xx time_ms=8 size=1726 referer=

Could you please tell me what is the problem?
Thanks for any help or pointers.

Hi @gont, welcome to the :grafana: community.

My best guess here is that, there might be some dependencies issue which is causing it but cannot pinpoint its root cause.

Maybe go 1 step back (if possible) and try this article ;

So that you can increase the log level to more verbosity only for rendering and then can give you more insights and can try to help you out further.