Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Backups before retention policy not being deleted. Bug?

Backups before retention policy not being deleted. Bug?

Scheduled Pinned Locked Moved Solved Support
backupscleanup-backups
16 Posts 7 Posters 2.1k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #2

    @shrey Missed this post, did you get this sorted out?

    S 1 Reply Last reply
    0
    • girishG girish

      @shrey Missed this post, did you get this sorted out?

      S Offline
      S Offline
      shrey
      wrote on last edited by
      #3

      @girish The issue remains. Cloudron does not delete older backups from the S3 storage.

      For now, i've manually deleted them.

      girishG 1 Reply Last reply
      1
      • S shrey

        @girish The issue remains. Cloudron does not delete older backups from the S3 storage.

        For now, i've manually deleted them.

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #4

        @shrey if it starts retaining obsolete backups again, can you please write to support@cloudron.io ? I can't reproduce this in any of our instances.

        S 1 Reply Last reply
        0
        • girishG girish

          @shrey if it starts retaining obsolete backups again, can you please write to support@cloudron.io ? I can't reproduce this in any of our instances.

          S Offline
          S Offline
          shrey
          wrote on last edited by
          #5

          @girish That never stopped. I just deleted upto a certain date, the 'obsolete' backups after that date are still persisting.
          Will send the details in the email as well.

          1 Reply Last reply
          0
          • svtxS Offline
            svtxS Offline
            svtx
            wrote on last edited by
            #6

            I have the same issue. One backup that was done using .tar is not deleting now (5 day overdue on deletion) that I'm using rsync. I've tried reverting settings to but to no avail. The backup in question seems to be MASSIVE too, something's odd about this. Truth be told, I'd appreciate a simple "Delete Backup" option 😉

            1 Reply Last reply
            4
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #7

              @svtx yes, we are looking into these improvements in 7.6

              When investigating @shrey 's situation a bit, we found that stale/partial backups are not cleaned up properly. Will get this fixed in 7.6 as well.

              1 Reply Last reply
              2
              • S Offline
                S Offline
                stormgrass
                wrote on last edited by
                #8

                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.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  shrey
                  wrote on last edited by
                  #9

                  Hi @girish
                  By when can we expect a (stable) solution for this?

                  1 Reply Last reply
                  0
                  • rosanoR rosano referenced this topic on
                  • S Offline
                    S Offline
                    shrey
                    wrote on last edited by
                    #10

                    Hi @girish , pinging you again.

                    It's been more than 1.5 years. The issue is still ongoing.

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #11

                      @shrey we can't reproduce the problem. So, I think you have to write to us at support@cloudron.io and we have to debug what is happening .

                      1 Reply Last reply
                      0
                      • nebulonN Offline
                        nebulonN Offline
                        nebulon
                        Staff
                        wrote on last edited by
                        #12

                        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.

                        S 1 Reply Last reply
                        4
                        • nebulonN nebulon has marked this topic as solved on
                        • nebulonN nebulon

                          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.

                          S Offline
                          S Offline
                          shrey
                          wrote last edited by
                          #13

                          @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.

                          J 1 Reply Last reply
                          0
                          • S shrey

                            @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.

                            J Offline
                            J Offline
                            joseph
                            Staff
                            wrote last edited by
                            #14

                            @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 .

                            S 1 Reply Last reply
                            0
                            • J joseph

                              @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 .

                              S Offline
                              S Offline
                              shrey
                              wrote last edited by
                              #15

                              @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 the 1000 into a higher value, 100000, which worked at the time, until the next Cloudron release, v8.3.2, overwrote it back to 1000.

                              jamesJ 1 Reply Last reply
                              0
                              • S shrey

                                @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 the 1000 into a higher value, 100000, which worked at the time, until the next Cloudron release, v8.3.2, overwrote it back to 1000.

                                jamesJ Offline
                                jamesJ Offline
                                james
                                Staff
                                wrote last edited by
                                #16

                                Hello @shrey
                                This is expected.
                                Each Cloudron release and update has to treat every system the same and can not respect changes made by the user.
                                Changes made to the core services need to be managed by the user manually.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Bookmarks
                                • Search