From 23eebca05ab3f1230dbdbe2d5510bc03bd9c2000 Mon Sep 17 00:00:00 2001 From: Viyurz Date: Sat, 16 Mar 2024 18:58:40 +0100 Subject: [PATCH] Uptime Kuma: Fix db backup file causing app to not start. --- roles/uptime-kuma/tasks/backup.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/uptime-kuma/tasks/backup.yml b/roles/uptime-kuma/tasks/backup.yml index 613881a..a809363 100644 --- a/roles/uptime-kuma/tasks/backup.yml +++ b/roles/uptime-kuma/tasks/backup.yml @@ -18,6 +18,13 @@ environment: BORG_PASSCOMMAND: "cat {{ borg_passphrase_file }}" + # The kuma-backup.db file is owned by root which causes + # users['uptime_kuma'] to try to take ownership when it cannot. + - name: Delete temporary backup file + file: + path: "{{ volumes['uptime_kuma_datadir'] }}/kuma-backup.db" + state: absent + - name: Prune borg repository command: cmd: |