Backups before retention policy not being deleted. Bug?
-
I've been having the same issue with S3, switched to DO Spaces now because it's easier to monitor. I had terabytes of data in my S3 bucket and only noticed it once I got my bill. With DO Spaces it's now the same issue, there's still backups from three days in there despite a 2 day retention policy.
-
R rosano referenced this topic on
-
We finally got down to this issue. Problem was that particular instance had a lot of backups in the db and we only took the first 1k backups into account for purging. Fix is coming with next release. If you hit this issue, send us a mail to support@cloudron.io so we can apply a temporary fix.
-
N nebulon has marked this topic as solved on
-
We finally got down to this issue. Problem was that particular instance had a lot of backups in the db and we only took the first 1k backups into account for purging. Fix is coming with next release. If you hit this issue, send us a mail to support@cloudron.io so we can apply a temporary fix.
@nebulon said in Backups before retention policy not being deleted. Bug?:
Fix is coming with next release. If you hit this issue, send us a mail to support@cloudron.io so we can apply a temporary fix.
I found out yesterday that the temporary fix had gotten overwritten by the next release (v8.3.2). And i found it now because i just got hit with a nice bill for S3 overage of 15TB of backups data (just because the obsolete backups didn't get deleted as per the retention policy).
Additionally, even after reapplying the fix, the Cleanup Backups tasks are now failing, every time.
-
@nebulon said in Backups before retention policy not being deleted. Bug?:
Fix is coming with next release. If you hit this issue, send us a mail to support@cloudron.io so we can apply a temporary fix.
I found out yesterday that the temporary fix had gotten overwritten by the next release (v8.3.2). And i found it now because i just got hit with a nice bill for S3 overage of 15TB of backups data (just because the obsolete backups didn't get deleted as per the retention policy).
Additionally, even after reapplying the fix, the Cleanup Backups tasks are now failing, every time.
@shrey said in Backups before retention policy not being deleted. Bug?:
Additionally, even after reapplying the fix, the Cleanup Backups tasks are now failing, every time.
is there any more info on this? I guess the patch only patched the querying of what to clean up but didn't fix anything related to clean up logic itself .
-
@shrey said in Backups before retention policy not being deleted. Bug?:
Additionally, even after reapplying the fix, the Cleanup Backups tasks are now failing, every time.
is there any more info on this? I guess the patch only patched the querying of what to clean up but didn't fix anything related to clean up logic itself .
@joseph
As per this advise received by support:
you could try to set that 1000 in /home/yellowtent/box/src/backupcleaner.js on your server to something like 20000 for a start. Then run "systemctl restart box" and trigger the backup cleaner task.
i had changed the1000
into a higher value,100000
, which worked at the time, until the next Cloudron release, v8.3.2, overwrote it back to1000
. -
@joseph
As per this advise received by support:
you could try to set that 1000 in /home/yellowtent/box/src/backupcleaner.js on your server to something like 20000 for a start. Then run "systemctl restart box" and trigger the backup cleaner task.
i had changed the1000
into a higher value,100000
, which worked at the time, until the next Cloudron release, v8.3.2, overwrote it back to1000
.