Backup keeps failing
-
Hello Cloudron support,
Our Uptime Kuma always fails to backup almost every day.
It has 4.7 GB of data showing in "Storage" tab of the app settings. I checked the app files and I see there is a single
kuma.db
file which is 4.7 GB. It has data since May 2022, which does not seem like too much.Uptime Kuma also has a "Shrink Database" button which seems to deal with the
kuma.db-wal
file which is just 5.48 MB in our case.When we try to backup the app, it always stops progressing at about 1138MB:
2024-08-08T23:00:02.161Z box:taskworker Starting task 12473. Logs are at /home/yellowtent/platformdata/logs/tasks/12473.log 2024-08-08T23:00:02.266Z box:tasks update 12473: {"percent":1,"message":"Backing up uptime.foliovision.net (1/13)"} 2024-08-08T23:00:02.281Z box:tasks update 12473: {"percent":7.25,"message":"Snapshotting app uptime.foliovision.net"} 2024-08-08T23:00:02.302Z box:services backupAddons 2024-08-08T23:00:02.302Z box:services backupAddons: backing up ["localstorage"] 2024-08-08T23:00:02.303Z box:backuptask snapshotApp: uptime.foliovision.net took 0.022 seconds 2024-08-08T23:00:02.304Z box:tasks update 12473: {"percent":7.25,"message":"Uploading app snapshot uptime.foliovision.net"} 2024-08-08T23:00:02.306Z box:shell backup-snapshot/app_096b330c-bd95-44e1-af1b-cafd8e1cbdc2 /usr/bin/sudo -S -E --close-from=4 /home/yellowtent/box/src/scripts/backupupload.js snapshot/app_096b330c-bd95-44e1-af1b-cafd8e1cbdc2 tgz {"localRoot":"/home/yellowtent/appsdata/096b330c-bd95-44e1-af1b-cafd8e1cbdc2","layout":[]} 2024-08-08T23:00:18.007Z box:tasks update 12473: {"percent":7.25,"message":"Uploading backup 28M@3MBps (uptime.foliovision.net)"} 2024-08-08T23:00:28.004Z box:tasks update 12473: {"percent":7.25,"message":"Uploading backup 59M@3MBps (uptime.foliovision.net)"} 2024-08-08T23:00:38.002Z box:tasks update 12473: {"percent":7.25,"message":"Uploading backup 92M@3MBps (uptime.foliovision.net)"} [...] Aug 06 00:43:25 box:tasks update 12446: {"percent":7.25,"message":"Uploading backup 1138M@0MBps (uptime.foliovision.net)"} [...] Aug 06 01:00:00 box:tasks update 12446: {"percent":7.25,"message":"Uploading backup 1138M@0MBps (uptime.foliovision.net)"} [...] 2024-08-09T12:24:20.156Z box:tasks update 12473: {"percent":7.25,"message":"Uploading backup 1146M@0MBps (uptime.foliovision.net)"}
I tried to use the "Resources" tab and increase the memory from 768 MB to 1.5 GB. Then I triggered a manual backup in it's "Backups" tab. Even with that it stopped backing up at 1147M.
It seems it actually did not use more than 245 MB of Memory, even if It look at last 30 days in "Graphs" tab. So it's actually not using all that much memory.
Please let us know how to troubleshoot Uptime Kuma backup issues. 4.7 GB might seem like a lot of data, but it's just 2 years and Uptime Kuma does not seem to run out of memory for backups.
Thanks,
Martin -
-