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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. gcs: Old backup not found when updating app

gcs: Old backup not found when updating app

Scheduled Pinned Locked Moved Solved Support
backupsupdates
20 Posts 7 Posters 2.5k Views 7 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.
  • 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 on last edited by
    #11

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

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on 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 Offline
        girishG Offline
        girish
        Staff
        wrote on 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 on
        • T Offline
          T Offline
          tecbox
          wrote on 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 on 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 on 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 Offline
                girishG Offline
                girish
                Staff
                wrote on 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 W 3 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 on 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 on 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
                    2
                    • J joseph forked this topic on
                    • 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 .

                      W Offline
                      W Offline
                      woolfdrs3
                      wrote last edited by
                      #20

                      @girish Had the same issue as @frenchybear. GCS fixed worked fine. Thx

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      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