Upgrade to Grafana 13.1.1 had errors

OS: Debian GNU/Linux 13 (trixie)
Grafana: 13.1.1 from 13.1.0

Error from upgrade:
1 package can be upgraded. Run ‘apt list --upgradable’ to see it.
Upgrading:
grafana

Summary:
Upgrading: 1, Installing: 0, Removing: 0, Not Upgrading: 0
Download size: 282 MB
Space needed: 1,286 kB / 1,801 GB available

Continue? [Y/n] y
Get:1 https://apt.grafana.com stable/main arm64 grafana arm64 13.1.1 [282 MB]
Fetched 282 MB in 23s (12.0 MB/s)
Reading changelogs… Done
(Reading database … 162416 files and directories currently installed.)
Preparing to unpack …/grafana_13.1.1_arm64.deb …
Unpacking grafana (13.1.1) over (13.1.0) …
Setting up grafana (13.1.1) …
mv: cannot overwrite ‘/var/lib/grafana/plugins-bundled’: Directory not empty
dpkg: error processing package grafana (–configure):
installed grafana package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
grafana
Error: Sub-process /usr/bin/dpkg returned an error code (1)

Contents of directory from error:
i@raspberry05:~ $ ls -ltr /var/lib/grafana/plugins-bundled/
total 8
drwxrwxr-x 4 grafana grafana 4096 Jun 23 09:45 zipkin
drwxrwxr-x 3 grafana grafana 4096 Jun 23 09:45 elasticsearch

Any suggestions or should I just ignore ?

I made a backup of the ‘plugins-bundled’ directory, and then created a new empty ‘plugins-bundled’ directory. I ran apt upgrade again, and it worked. The ‘plugins-bundled’ directory that I created was no longer empty; it had the same file names in it.

Thanks,
I was leaning that direction but, was looking for some reinforcement.
Followed your clue, same results. Upgrade with no errors.

The log shows the post-installation script failed after mv reported:

mv: cannot overwrite '/var/lib/grafana/plugins-bundled': Directory not empty

Since recreating an empty plugins-bundled directory allowed the upgrade to complete successfully, this doesn’t appear to be the intended upgrade behavior. I’d recommend filing a GitHub issue with the log and the workaround so the Grafana team can investigate.

For anyone else coming along, an issue was created.

It was mentioned that “It’ll be fixed in the next release in ~2 weeks.”

The guidance provided is to:

sudo rm -rf /var/lib/grafana/plugins-bundled
sudo dpkg --configure -a

They made the docker stacker containers. Why I’m still looking into. I could share work on this with you. Showing we are even trying to reconnect the server per my personal preference.

(attachments)



Thanks for the update. :upside_down_face:

Thanks so much for understanding