Grafana upgrade from 7.7.0 to 8.2.1 fails

I went through the upgrade steps documented on the grafana website, including the service restart and the command line plugin update/upgrade. The service itself installs just fine but restarting it gives me this in /var/log/syslog

Oct 12 11:35:31 infra-01 systemd[1]: grafana-server.service: Main process exited, code=exited, status=1/FAILURE
Oct 12 11:35:31 infra-01 systemd[1]: grafana-server.service: Failed with result 'exit-code'.
Oct 12 11:35:31 infra-01 systemd[1]: grafana-server.service: Service RestartSec=100ms expired, scheduling restart.
Oct 12 11:35:31 infra-01 systemd[1]: grafana-server.service: Scheduled restart job, restart counter is at 4.
Oct 12 11:35:31 infra-01 systemd[1]: Stopped Grafana instance.
Oct 12 11:35:31 infra-01 systemd[1]: Started Grafana instance.
Oct 12 11:35:31 infra-01 kernel: [19259967.779600] [UFW BLOCK] IN=ens192 OUT= MAC=01:00:5e:00:00:01:00:c1:64:c7:1e:00:08:00 SRC=128.2.12.2 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=35929 PROTO=2 
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=warn msg="falling back to legacy setting of 'min_interval_seconds'; please use the configuration option in the `unified_alerting` section if Grafana 8 alerts are enabled." logger=settings
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=warn msg="falling back to legacy setting of 'min_interval_seconds'; please use the configuration option in the `unified_alerting` section if Grafana 8 alerts are enabled." logger=settings
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Config loaded from" logger=settings file=/usr/share/grafana/conf/defaults.ini
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Config loaded from" logger=settings file=/etc/grafana/grafana.ini
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.data=/var/lib/grafana"
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.logs=/var/log/grafana"
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.plugins=/var/lib/grafana/plugins"
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.provisioning=/etc/grafana/provisioning"
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Path Home" logger=settings path=/usr/share/grafana
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Path Data" logger=settings path=/var/lib/grafana
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Path Logs" logger=settings path=/var/log/grafana
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Path Plugins" logger=settings path=/var/lib/grafana/plugins
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Path Provisioning" logger=settings path=/etc/grafana/provisioning
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="App mode production" logger=settings
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=sqlite3
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Starting DB migrations" logger=migrator
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="migrations completed" logger=migrator performed=0 skipped=431 duration=677.878”s
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Validated license token" logger=licensing appURL=http://grafana.staged-by-discourse.com/ source=disk status=NotFound
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=info msg="Starting plugin search" logger=plugins
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=warn msg="Skipping plugin as it's a duplicate" logger=plugins id=stackdriver
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=warn msg="Some plugin scanning errors were found" logger=plugins errors="plugin with ID 'stackdriver' already exists in '/usr/share/grafana/public/app/plugins/datasource/stackdriver'"
Oct 12 11:35:31 infra-01 grafana-server[23508]: t=2021-10-12T11:35:31-0400 lvl=warn msg="The following files were not included in the signature" logger=plugins plugin=input files=[LICENSE]
Oct 12 11:35:31 infra-01 grafana-server[23508]: Failed to start grafana. error: failed to scan bundled plugins directory '/usr/share/grafana/plugins-bundled': unknown plugin type "transform"
Oct 12 11:35:31 infra-01 grafana-server[23508]: failed to scan bundled plugins directory '/usr/share/grafana/plugins-bundled': unknown plugin type "transform"

When I investigated the /usr/share/grafana/plugins-bundled directory I noticed that it had not been touched by the upgrade. I tried:

sudo grafana-cli plugins update-all

And:

sudo grafana-cli plugins upgrade-all

Same result when I try to restart the service

Hi, I get the same issue moving from 7.3.4 to 8.2.1 on Windows.

←[33mWARN←[0m[10-12|17:08:17] The following files were not included in the signature ←[33mlogger←[0m=plugins ←[33mplugin←[0m=input ←[33mfiles←[0m=[LICENSE]
Failed to start grafana. error: failed to scan bundled plugins directory 'D:\Program Files\GrafanaLabs\grafana\plugins-bundled': unknown plugin type "transform"
failed to scan bundled plugins directory 'D:\Program Files\GrafanaLabs\grafana\plugins-bundled': unknown plugin type "transform"

Just go into the C:\Program Files\GrafanaLabs\grafana\plugins-bundled Folder and delete the Folder called "gel-0.6.0".
Mentioned here:
https://github.com/grafana/grafana/issues/31061

1 Like