[Grafana7]: Image rendering plugin failed to install

Thanks for the amazing tool, and we love Grafana. We have recently upgraded our Grafana to 7.0.3. After the upgrade, we have observed that the old image rendering plugin was replaced with grafana-image-renderer. We have our Grafana hosted in Kubernetes. While reading through the documentation, found that we are missing that plug-in Grafana Image Renderer plugin for Grafana | Grafana Labs and tried to install it. During the installation, we found that the plug-in is failed to launch with the following error message

t=2020-06-29T18:52:54+0000 lvl=dbug msg=“waiting for RPC address” logger=plugins.backend pluginId=grafana-image-renderer path=/var/lib/grafana/plugins/grafana-image-renderer/plugin_start_linux_amd64
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“/var/lib/grafana/plugins/grafana-image-renderer/plugin_start_linux_amd64: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory” logger=plugins.backend pluginId=grafana-image-renderer
t=2020-06-29T18:52:54+0000 lvl=eror msg=“Stopped RenderingService” logger=server reason=“Failed to start renderer plugin: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol.”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“plugin process exited” logger=plugins.backend pluginId=grafana-image-renderer path=/var/lib/grafana/plugins/grafana-image-renderer/plugin_start_linux_amd64 pid=178 error=“exit status 127”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped Report” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped NotificationService” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“got exit signal, shutting down gracefully…” logger=analytics.summaries timeout=3s
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopping plugin” logger=plugins.backend pluginId=grafana-image-renderer
t=2020-06-29T18:52:54+0000 lvl=warn msg=“plugin failed to exit gracefully” logger=plugins.backend pluginId=grafana-image-renderer
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Plugin stopped” logger=plugins.backend pluginId=grafana-image-renderer
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“shut down gracefully.” logger=analytics.summaries
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stop polling for dashboard changes” logger=provisioning
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped provisioningServiceImpl” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped InternalMetricsService” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped BackendPluginManager” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped RemoteCache” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped CleanUpService” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped AlertEngine” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Initializing Stream Manager”
t=2020-06-29T18:52:54+0000 lvl=info msg=“Stopped Stream Manager”
t=2020-06-29T18:52:54+0000 lvl=info msg=“HTTP Server Listen” logger=http.server address=[::]:3000 protocol=http subUrl= socket=
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“server was shutdown gracefully” logger=http.server
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped UserAuthTokenService” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Checking for updates” logger=plugins
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“skipping rollup job” logger=analytics.summaries reason=“has been executed recently”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped UsageStatsService” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=dbug msg=“Stopped PluginManager” logger=server reason=“context canceled”
t=2020-06-29T18:52:54+0000 lvl=eror msg=“A service failed” logger=server err=“Failed to start renderer plugin: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol.”
t=2020-06-29T18:52:54+0000 lvl=eror msg=“Server shutdown” logger=server reason=“Failed to start renderer plugin: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol.”

I’ve looked into the troubleshooting guide, but I did find any steps on how to move forward on this. Can someone from the team help us fix this issue? This is breaking our alerts to slack-channel with png images.

Thanks

Perhaps you need to install some libraries:

sudo apt install gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
sudo apt install chromium

Regards,
Fadjar Tandabawana

The recommended way of doing this is when running grafana in a container is to run another container that does the image rendering.
This article should give you a good idea about it: