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
  • Brite
  • 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. Old backup not found when updating app

Old backup not found when updating app

Scheduled Pinned Locked Moved Solved Support
backupsupdates
19 Posts 6 Posters 181 Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic was forked from Old system backups are not listed joseph
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG girish

    @frenchybear I have been interacting with @tecbox on support . I could reproduce it with the specific S3 service that @tecbox is using . Are you able to share which S3 provider you are using?

    F Offline
    F Offline
    FrenchyBear
    wrote last edited by
    #10

    @girish I use a google bucket

    1 Reply Last reply
    0
    • J joseph

      @frenchybear @tecbox are you able to contact support@cloudron.io ? We can investigate what the issue is.

      F Offline
      F Offline
      FrenchyBear
      wrote last edited by
      #11

      @joseph I received an answer from support asking to write here...

      1 Reply Last reply
      0
      • girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote last edited by girish
        #12

        @tecbox thanks for the report. The fix is https://git.cloudron.io/platform/box/-/commit/b759fdb6e35762ef5586c3e552a387c4aef15a42#da95ffafbc09b42991a792cd9824d5814e1ec274_373_372 . You just need that one line change.

        Edit /home/yellowtent/box/src/storage/s3.js . Then change line 372. Basically, remove the leading slash at the front. No need to restart anything after making the change. Make a new backup, it should work. Can you please let me know?

            return `${bucket}/${output}`;
        

        In Cloudron 9, we upgraded the AWS library from v2 to v3. It's possible that v2 library automatically removed this trailing slash. Maybe in v3, they don't do this anymore. Hard to find any info, but it seems in other providers both works.

        F 1 Reply Last reply
        2
        • girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote last edited by
          #13

          @frenchybear there was a bug in the gcs backend where prefix was not taken into account when copying files. This is fixed now and new release will be made shortly.

          1 Reply Last reply
          0
          • girishG girish has marked this topic as solved
          • T Offline
            T Offline
            tecbox
            wrote last edited by
            #14

            @girish Thanks! This works now, backup is running

            1 Reply Last reply
            0
            • girishG girish

              @tecbox thanks for the report. The fix is https://git.cloudron.io/platform/box/-/commit/b759fdb6e35762ef5586c3e552a387c4aef15a42#da95ffafbc09b42991a792cd9824d5814e1ec274_373_372 . You just need that one line change.

              Edit /home/yellowtent/box/src/storage/s3.js . Then change line 372. Basically, remove the leading slash at the front. No need to restart anything after making the change. Make a new backup, it should work. Can you please let me know?

                  return `${bucket}/${output}`;
              

              In Cloudron 9, we upgraded the AWS library from v2 to v3. It's possible that v2 library automatically removed this trailing slash. Maybe in v3, they don't do this anymore. Hard to find any info, but it seems in other providers both works.

              F Offline
              F Offline
              FrenchyBear
              wrote last edited by
              #15

              @girish said in Old backup not found when updating app:

              /home/yellowtent/box/src/storage/s3.js

              I'm sorry, but the fix didin't work for me, even after reboot...

              jamesJ girishG 2 Replies Last reply
              0
              • F FrenchyBear

                @girish said in Old backup not found when updating app:

                /home/yellowtent/box/src/storage/s3.js

                I'm sorry, but the fix didin't work for me, even after reboot...

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

                Hello @FrenchyBear
                Just to make sure, can you tell us what change you applied?

                1 Reply Last reply
                0
                • F FrenchyBear

                  @girish said in Old backup not found when updating app:

                  /home/yellowtent/box/src/storage/s3.js

                  I'm sorry, but the fix didin't work for me, even after reboot...

                  girishG Do not disturb
                  girishG Do not disturb
                  girish
                  Staff
                  wrote last edited by girish
                  #17

                  @FrenchyBear @tecbox and you got the same error message but the issues were totally different.

                  The fix I posted was for S3 (used by @tecbox). In your case, you are using gcs. It's a slightly bigger fix - https://git.cloudron.io/platform/box/-/commit/99c14533a5930a6175630b6c299a577d64f2decb .

                  You can get the raw file from https://git.cloudron.io/platform/box/-/raw/99c14533a5930a6175630b6c299a577d64f2decb/src/storage/gcs.js and replace /home/yellowtent/box/src/storage/gcs.js .

                  F 2 Replies Last reply
                  1
                  • girishG girish

                    @FrenchyBear @tecbox and you got the same error message but the issues were totally different.

                    The fix I posted was for S3 (used by @tecbox). In your case, you are using gcs. It's a slightly bigger fix - https://git.cloudron.io/platform/box/-/commit/99c14533a5930a6175630b6c299a577d64f2decb .

                    You can get the raw file from https://git.cloudron.io/platform/box/-/raw/99c14533a5930a6175630b6c299a577d64f2decb/src/storage/gcs.js and replace /home/yellowtent/box/src/storage/gcs.js .

                    F Offline
                    F Offline
                    FrenchyBear
                    wrote last edited by
                    #18
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • girishG girish

                      @FrenchyBear @tecbox and you got the same error message but the issues were totally different.

                      The fix I posted was for S3 (used by @tecbox). In your case, you are using gcs. It's a slightly bigger fix - https://git.cloudron.io/platform/box/-/commit/99c14533a5930a6175630b6c299a577d64f2decb .

                      You can get the raw file from https://git.cloudron.io/platform/box/-/raw/99c14533a5930a6175630b6c299a577d64f2decb/src/storage/gcs.js and replace /home/yellowtent/box/src/storage/gcs.js .

                      F Offline
                      F Offline
                      FrenchyBear
                      wrote last edited by
                      #19

                      @girish Thanks ! I replaced the /home/yellowtent/box/src/storage/gcs.js with the patched version and don't get the "old backup not found" error. the backup is listed in System backups. everything seems to be fine ! Thanks a lot for your help !

                      1 Reply Last reply
                      1
                      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