Open jonathanaylward opened 2 years ago
Hello! The image renderer plugin does not currently work if it is installed in a Grafana Docker image. You need to build a custom Docker image, you'll find more documentation on that here: https://grafana.com/docs/grafana/latest/installation/docker/#build-with-grafana-image-renderer-plugin-pre-installed.
However, I would strongly recommend running the image renderer as a remote service in k8s instead (see "Remote rendering service installation" section here: https://grafana.com/grafana/plugins/grafana-image-renderer)
What happened: While trying to install the plugin: "grafana-image-renderer" I received the following error logs. They appear to be related to this issue and those linked to it. [https://github.com/grafana/grafana-image-renderer/issues/292] Is this still the only solution or has a fix been released and I'm experiencing the same problem for another reason?
2021-11-09 13:41:45.533 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins" Info 2021-11-09 13:41:45.533 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning" Info 2021-11-09 13:41:45.533 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_USER=admin" Info 2021-11-09 13:41:45.534 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_PASSWORD=*********" Info 2021-11-09 13:41:45.534 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Path Home" logger=settings path=/usr/share/grafana Info 2021-11-09 13:41:45.534 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Path Data" logger=settings path=/var/lib/grafana/ Info 2021-11-09 13:41:45.534 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Path Logs" logger=settings path=/var/log/grafana Info 2021-11-09 13:41:45.534 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Path Plugins" logger=settings path=/var/lib/grafana/plugins Info 2021-11-09 13:41:45.534 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Path Provisioning" logger=settings path=/etc/grafana/provisioning Info 2021-11-09 13:41:45.534 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="App mode production" logger=settings Info 2021-11-09 13:41:45.534 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=postgres Info 2021-11-09 13:41:45.562 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Starting DB migrations" logger=migrator Info 2021-11-09 13:41:45.574 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="migrations completed" logger=migrator performed=0 skipped=346 duration=845.463µs Info 2021-11-09 13:41:45.577 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Starting plugin search" logger=plugins Info 2021-11-09 13:41:45.619 PST grafana t=2021-11-09T21:41:45+0000 lvl=info msg="Registering plugin" logger=plugins id=input Info 2021-11-09 13:41:47.421 PST grafana t=2021-11-09T21:41:47+0000 lvl=info msg="Registering plugin" logger=plugins id=grafana-image-renderer Info 2021-11-09 13:41:47.421 PST grafana t=2021-11-09T21:41:47+0000 lvl=info msg="Registering plugin" logger=plugins id=grafana-polystat-panel Info 2021-11-09 13:41:47.421 PST grafana t=2021-11-09T21:41:47+0000 lvl=info msg="Registering plugin" logger=plugins id=grafana-simple-json-datasource Info 2021-11-09 13:41:47.426 PST grafana t=2021-11-09T21:41:47+0000 lvl=info msg="Live Push Gateway initialization" logger=live.push_http Info 2021-11-09 13:41:47.519 PST grafana t=2021-11-09T21:41:47+0000 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl=/grafana socket= Info 2021-11-09 13:41:47.520 PST grafana t=2021-11-09T21:41:47+0000 lvl=info msg="warming cache for startup" logger=ngalert Info 2021-11-09 13:41:47.521 PST grafana t=2021-11-09T21:41:47+0000 lvl=eror msg="Stopped background service *rendering.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." Info 2021-11-09 13:41:47.521 PST grafana t=2021-11-09T21:41:47+0000 lvl=warn msg="plugin failed to exit gracefully" logger=plugins.backend pluginId=grafana-image-renderer Info 2021-11-09 13:41:47.522 PST grafana t=2021-11-09T21:41:47+0000 lvl=eror msg="failed to lock and execute cleanup of expired auth token" logger=auth error="Rolling back transaction due to error failed: driver: bad connection: context canceled" Info 2021-11-09 13:41:47.552 PST grafana t=2021-11-09T21:41:47+0000 lvl=info msg="starting MultiOrg Alertmanager" logger=ngalert.multiorg.alertmanager Info 2021-11-09 13:41:47.573 PST grafana t=2021-11-09T21:41:47+0000 lvl=eror msg="Failed to get last sent time" logger=infra.usagestats error="context canceled" Info 2021-11-09 13:41:47.643 PST grafana t=2021-11-09T21:41:47+0000 lvl=eror msg="Server shutdown" logger=server error="*rendering.RenderingService run error: 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." Error 2021-11-09 13:41:47.643 PST grafana *rendering.RenderingService run error: Failed to start renderer plugin: Unrecognized remote plugin message: Error 2021-11-09 13:41:47.644 PST grafana {} Error 2021-11-09 13:41:47.644 PST grafana This usually means that the plugin is either invalid or simply Error 2021-11-09 13:41:47.644 PST grafana needs to be recompiled to support the latest protocol.
What you expected to happen: I expected the plugin to install successfully as the comment here suggests that a fix may have been released in 8.2.1 [https://github.com/grafana/grafana-image-renderer/issues/292#issuecomment-939744311]
How to reproduce it (as minimally and precisely as possible): Attempt to install grafana-image-renderer via a helm chart on a grafana (8.2.3) instance running in kubernetes
Environment: