Cleanup Backups failure
-
Hello. I finally set up an external storage for the automatic backups. It's a bucket at scaleway.com. Works perfectly to back up from Cloudron. But after, the "Cleanup Backups" process seems to have issues to remove old backups. The consequence is that the storage is filling up over time.
Below are the logs when launching the Cleanup process.
Thanks for your help.
Mar 05 10:41:58 box:tasks startTask - starting task 1996 with options {}. logs at /home/yellowtent/platformdata/logs/tasks/1996.log Mar 05 10:41:58 box:shell startTask spawn: /usr/bin/sudo -S -E /home/yellowtent/box/src/scripts/starttask.sh 1996 /home/yellowtent/platformdata/logs/tasks/1996.log 0 400 Mar 05 10:41:58 box:shell startTask (stdout): sudo: unable to resolve host 1001507-513: Name or service not known Mar 05 10:41:58 box:shell startTask (stdout): Running as unit: box-task-1996.service Mar 05 10:42:03 box:apphealthmonitor app health: 2 running / 0 stopped / 0 unresponsive Mar 05 10:42:04 box:apphealthmonitor app health: 2 running / 0 stopped / 0 unresponsive Mar 05 10:42:08 box:shell startTask (stdout): Finished with result: success processes terminated with: code=exited/status=0 runtime: 9.427s Mar 05 10:42:08 box:shell startTask (stdout): Service box-task-1996 finished with exit code 0 Mar 05 10:42:08 box:tasks startTask: 1996 completed with code 0 Mar 05 10:42:08 box:tasks startTask: 1996 done. error: null
2023-03-05T10:42:00.135Z box:settings initCache: pre-load settings 2023-03-05T10:42:00.205Z box:taskworker Starting task 1996. Logs are at /home/yellowtent/platformdata/logs/tasks/1996.log 2023-03-05T10:42:00.481Z box:backupcleaner clean: mount point status is {"state":"active"} 2023-03-05T10:42:00.482Z box:tasks update 1996: {"percent":10,"message":"Cleaning box backups"} 2023-03-05T10:42:00.525Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.6_ab7b1d41649953eae220178abeffc1721cd95d2a6edc208c3d2c32195d77900c box keepWithinSecs 2023-03-05T10:42:00.525Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_17e59faebaa63bf5b92b99affe19644da805b1cbd87958be235b2856479bde15 box preserveSecs 2023-03-05T10:42:00.525Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_aa76eb1bb0577e1e8de134ad69094b6ede01d6922534538253245b8f2b20787f box preserveSecs 2023-03-05T10:42:00.525Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_4fdf94eeb2760c5657bbf829a8fde66594d374be68a449aca977a875ced87ec7 box preserveSecs 2023-03-05T10:42:00.526Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_11a38cf91e4eefa4b196b31f8f747054a9a7c10815c03380041dc1daf62851f2 box preserveSecs 2023-03-05T10:42:00.530Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_e19ec533fd0033edd0ded6df6ea8b849f02498554d8e3ea0bb28259f03157821 box preserveSecs 2023-03-05T10:42:00.530Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_dc1f76cde12b88d24c9ecd4b88c238086ff57807031288900a943764d7ac5683 box preserveSecs 2023-03-05T10:42:00.530Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_a465c2346a236acf64e63832c4b976925508dd5b59b01c6279a6674db756997c box preserveSecs 2023-03-05T10:42:00.530Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_e211300def60af75aa02116aaff4cd6b7100692edadf79ce7aa67a8a1e41bb85 box preserveSecs 2023-03-05T10:42:00.530Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_f9260b1ac9bab1a92f010c3be29eb57805eb18b7bee456f4a11af827d10b4999 box preserveSecs 2023-03-05T10:42:00.530Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_f2eb7526246634811e8bf298e17c8cbefb677eb5e8c6d577b9369ca0a141be62 box preserveSecs 2023-03-05T10:42:00.530Z box:backupcleaner applyBackupRetentionPolicy: box_v7.3.5_c0cf112be0d26c7a123b9dc9c2355ad0fb6e74da9b9c36a67d61aadcb6f3c98d box preserveSecs 2023-03-05T10:42:00.532Z box:backupcleaner cleanupBoxBackups: done 2023-03-05T10:42:00.532Z box:tasks update 1996: {"percent":20,"message":"Cleaning mail backups"} 2023-03-05T10:42:00.568Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.6_0146159f52fc86cbab328e72ac014f23659a28efee094f97e05cf6f6ddadc92f mail reference 2023-03-05T10:42:00.568Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_3181cf4eb848035a4deacc2cdda660cff6733a03c171fe11e9d2240b909a16ae mail reference 2023-03-05T10:42:00.568Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_fd6720f6028447e31f510dff2de07a9a8fb5a04ffb696c7fd7543ca0b3032656 mail reference 2023-03-05T10:42:00.568Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_5d932e7fc8c3d38f9745c5d6d17f816c5410d2a92ec66c22ccf3fb515080233e mail reference 2023-03-05T10:42:00.568Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_8f2868923a011a0666ec61449b953a068bc791b38228e6199fbe9b97cc9d3dc1 mail reference 2023-03-05T10:42:00.568Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_5685501a867dcdb45abf829a9894737513c55d54ecd2ab7b4964d50fdda3847a mail reference 2023-03-05T10:42:00.568Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_b165a753eac3c1d66ea46e9fb1410d15b0145f7d748370ad9ff4a3d85d33f585 mail reference 2023-03-05T10:42:00.568Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_31c3822f09879c92bbc1599fedc9360e1dc70ea1a6bdc8c68abd92f833f9bdc0 mail reference 2023-03-05T10:42:00.570Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_9cec5456ea61f06df125594fb2866109d99f86072d2ac8b39e3912760a7fe750 mail reference 2023-03-05T10:42:00.570Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_f56cb92e0fd24ff852a6f1e354dcc3c8c01110597e1f5627d87438550830b1ff mail reference 2023-03-05T10:42:00.570Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_2ca10305ebebbc93b9fc95dea590b9dad36b6ebabfcf8b79ca9c4d8dbdfb2d9d mail reference 2023-03-05T10:42:00.570Z box:backupcleaner applyBackupRetentionPolicy: mail_v7.3.5_4130885afcd6be79100c83795a1e12102eb122a9c7ac607e5eae5f11adedb203 mail reference 2023-03-05T10:42:00.570Z box:backupcleaner cleanupMailBackups: done 2023-03-05T10:42:00.570Z box:tasks update 1996: {"percent":40,"message":"Cleaning app backups"} 2023-03-05T10:42:00.643Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.3_795cd20e973f7335fdc632150aeeafd65caa674da34e1e79b69148b2cc3d1ca4 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_7c46657af6d3715b922212c1451422baae6deefee57178b0c6ce71102b87eb9a app preserveSecs 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_d28420ab522c0c653e1eb8b2314aa0cc7c4e00c0324bdd5766aa044f45c823ab app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_0fe179a751ed448eb8eebdbe902e5d6f06f2c57dcd4e30f4c15fbbe9155942ac app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_95ce1382e82a41810636f343ed41307300dd13110982d28ee3e7cff886807ba3 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_b851372dc2b38728d0463c6bbc7a6b06e1589807907cb49e89993275f5208fcf app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_6b32a06cacfb397a40e496e0b2ac551cf73b3272115f5013284dd83e1edff36b app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_741c5d3563ecd09dbe01db8a2a56d3c70f583db1a82a7e7efd822933ea6804fe app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_f7f118462b2dbd5e2d917f8cab1ef4d99617ef8a70649eeee7a7188e66f51bcf app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_128bbde01808d30216cd92f54bc46d06fe399a271049120c1827e9e2fbc12b1c app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_8036676bcc2a5b8aef4d8fe6193862be87a578bd6a21c0eef5354ae2ba01421c app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_7e2f1991884d18c3510acf4e4902cb218729f7b0cd8ec60f2515b9c334ad81e1 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_f407bd77-c312-4bb9-bf8e-78c6504be031_v4.16.2_60227a037a9d45364277b235137756caa41cb3403ee7209cc66c35ea06ad5e32 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_bf75bb3fc4033174817e284aef386e34775a487c0a1817bd465682647376ba66 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_9bcca97ad29ab211afb3b84c69bd8a6bca40eae3a5d2da2641c94166dc623e72 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_baf1324d6c3611db6ce21008af2ceba8b0a5bd6d7c07b5930ec8f2a0efb7286f app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_dc42c65abf37962388af91c1ee92a40f90c1d4e0a090dda094a1fdc94c72e4d7 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_df02571e4a2692327b2c020616117b61bf65cff2337e7b096d72b41ec48ece0c app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_c6f957ceffa8fe97748d45f432405b29e33061ca0164f2c2395440af732f1ab7 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_e99160e984f481b81563af72c4cd9d5359ec1b75ad75225579dfdb6281767988 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_d7ad9a094f3b90388fcaf7f84ae33f1d1668a126358a9336c52f96c7950a1ba5 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_0244560b6bbf5c3219b30596ec2092e72feb1b8ba12e10d552c58bd8ac9a8884 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_349d8dec578274199ca2b83660d252e1cdc9da876450518903255e6609614aa5 app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_c32fcd1b3767192c74ef0c8cec8a9b7c70796cedb180751b5f880370321a0cda app reference 2023-03-05T10:42:00.644Z box:backupcleaner applyBackupRetentionPolicy: app_1f819db3-6496-4976-acb8-6bf9a69c7f19_v1.7.17_a22012b44607dd8cfefc52c9cbe8838fd031400d0d1ea2b73dd9fa68ed23136e app reference 2023-03-05T10:42:00.644Z box:backupcleaner cleanupAppBackups: done 2023-03-05T10:42:00.645Z box:tasks update 1996: {"percent":70,"message":"Checking storage backend and removing stale entries in database"} 2023-03-05T10:42:08.172Z box:backupcleaner cleanupMissingBackups: done 2023-03-05T10:42:08.172Z box:tasks update 1996: {"percent":90,"message":"Cleaning snapshots"} 2023-03-05T10:42:08.208Z box:backupcleaner cleanupSnapshots: done 2023-03-05T10:42:08.208Z box:taskworker Task took 8.194 seconds 2023-03-05T10:42:08.209Z box:tasks setCompleted - 1996: {"result":{"removedBoxBackupPaths":[],"removedMailBackupPaths":[],"removedAppBackupPaths":[],"missingBackupPaths":[]},"error":null} 2023-03-05T10:42:08.209Z box:tasks update 1996: {"percent":100,"result":{"removedBoxBackupPaths":[],"removedMailBackupPaths":[],"removedAppBackupPaths":[],"missingBackupPaths":[]},"error":null}
-
@mononym per the logs atleast, the task succeeded.
In the logs,
reference
means that a box backups is referening the app backup and thus cannot be deleted.preserveSecs
mean that the backup is kept because the backup was created not before the preservation time. -
Thanks. OK, I misunderstood the following logs as if Cloudron couldn’t access the bucket server in some way:
@mononym said in Cleanup Backups failure:
sudo: unable to resolve host 1001507-513: Name or service not known
Could you develop what you mean by this:
@girish said in Cleanup Backups failure:
[…] because the backup was created not before the preservation time.
I guess the issue is in the settings then?
-
@mononym said in Cleanup Backups failure:
sudo: unable to resolve host 1001507-513: Name or service not known
This, I think, is the hostname of your Cloudron. sudo can nag about this - https://linuxhandbook.com/sudo-unable-resolve-host/ . My understanding is that this because the sudoers file permits setting hostnames in it's config/rules files.