# Grafana update error

**URL:** <https://dietpi.com/forum/t/grafana-update-error/25352>\
**Category:** General Discussion\
**Created:** [22 July 2026 21:35 UTC](https://dietpi.com/forum/t/grafana-update-error/25352 "2026-07-22T21:35:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcw](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@jcw](https://dietpi.com/forum/u/jcw)\
**Post date:** [22 July 2026 21:35 UTC](https://dietpi.com/forum/t/grafana-update-error/25352/1 "2026-07-22T21:35:52Z")

</div>

in the latest `dietpi-update`, this error comes up:

```auto
Get:1 https://apt.grafana.com stable/main arm64 grafana arm64 13.1.1 [282 MB]
Fetched 282 MB in 49s (5,710 kB/s)
(Reading database ... 63686 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: inter-device move failed: '/usr/share/grafana/data/plugins-bundled' to '/var/lib/grafana/plugins-bundled'; unable to remove target: 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

```

This is DietPi v10.5.2. I saw that the `/var/lib/grafana/plugins-bundled/` was owned by root and changed it (recursively) to `grafana:grafana` to match the other folders in that area, but that didn’t fix it - the same error re-appears on the next `dietpi-update` run.

The previous install is still working fine, so it’s no big deal. Just wanted to report this …

-jcw

PS. `/mnt/dietpi_userdata` is mounted on a different partition, perhaps that’s the issue here.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [22 July 2026 22:01 UTC](https://dietpi.com/forum/t/grafana-update-error/25352/2 "2026-07-22T22:01:18Z")

</div>

This has literally nothing to do with DietPi. Grafana is installed from its own package repository. This is out of our control as we don’t manage nor maintain Grafana. There might be an issue with the package released by Grafana

There you go [Debian postinst script : upgrading is broken · Issue #128983 · grafana/grafana · GitHub](https://github.com/grafana/grafana/issues/128983)

It will be fixed in Grafana 13.1.2

A workaround has been provided by on of the Grafana maintainer

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

```

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [22 July 2026 22:22 UTC](https://dietpi.com/forum/t/grafana-update-error/25352/3 "2026-07-22T22:22:04Z")

</div>

See also here, in the PR which introduced the bug: [Build: Move plugins-bundled to writeable directory in rpm, deb by njvrzm · Pull Request #125080 · grafana/grafana · GitHub](https://github.com/grafana/grafana/pull/125080#issuecomment-5043356641)

Good to see a PR up to solve it. But uff, this is an ugly hack to `mv` away packaged files. A true/cleaner solution, that would be accepted as well by distros (unlike #128983), was suggested already, but it requires a bit more work.

---

<div class="post-metadata">

**Author:** ![jcw](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@jcw](https://dietpi.com/forum/u/jcw)\
**Post date:** [23 July 2026 08:30 UTC](https://dietpi.com/forum/t/grafana-update-error/25352/4 "2026-07-23T08:30:55Z")

</div>

Thanks! I should have realized that `apt-upgrade` issues are beyond what dietpi is about. Thanks anyway for all the pointers. Much appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [21 October 2026 08:31 UTC](https://dietpi.com/forum/t/grafana-update-error/25352/5 "2026-10-21T08:31:25Z")

</div>

Closed on 21 October 2026 08:31 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
