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. Error while recovering backup

Error while recovering backup

Scheduled Pinned Locked Moved Solved Support
backuprestore
22 Posts 2 Posters 4.2k Views 2 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.
  • andreasduerenA Offline
    andreasduerenA Offline
    andreasdueren
    App Dev
    wrote on last edited by
    #9

    Trying to decrypt the backup locally throws this error:

    /usr/local/lib/node_modules/cloudron/src/backup-tools.js:261
                const { error, decryptedFilePath } = decryptFilePath(encryptedFilePath, encryption);
                        ^
    
    TypeError: Cannot destructure property 'error' of 'decryptFilePath(...)' as it is null.
        at /usr/local/lib/node_modules/cloudron/src/backup-tools.js:261:21
        at /usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:2590:44
        at replenish (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:448:21)
        at /usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:453:13
        at eachLimit (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:2720:36)
        at awaitable (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:212:32)
        at Object.eachSeries (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:2748:16)
        at Object.awaitable (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:212:32)
        at iteratee (/usr/local/lib/node_modules/cloudron/src/backup-tools.js:252:15)
        at check (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:5675:13)
    
    
    girishG 1 Reply Last reply
    0
    • andreasduerenA andreasdueren

      Trying to decrypt the backup locally throws this error:

      /usr/local/lib/node_modules/cloudron/src/backup-tools.js:261
                  const { error, decryptedFilePath } = decryptFilePath(encryptedFilePath, encryption);
                          ^
      
      TypeError: Cannot destructure property 'error' of 'decryptFilePath(...)' as it is null.
          at /usr/local/lib/node_modules/cloudron/src/backup-tools.js:261:21
          at /usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:2590:44
          at replenish (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:448:21)
          at /usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:453:13
          at eachLimit (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:2720:36)
          at awaitable (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:212:32)
          at Object.eachSeries (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:2748:16)
          at Object.awaitable (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:212:32)
          at iteratee (/usr/local/lib/node_modules/cloudron/src/backup-tools.js:252:15)
          at check (/usr/local/lib/node_modules/cloudron/node_modules/async/dist/async.js:5675:13)
      
      
      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #10

      @andreasdueren the database dump should be in /home/yellowtent/appsdata/<appid>/postgresqldump . It will already be unencrypted.

      The CLI tool decryption hasn't been tested in a while, I can look into it.

      andreasduerenA 2 Replies Last reply
      0
      • girishG girish

        @andreasdueren the database dump should be in /home/yellowtent/appsdata/<appid>/postgresqldump . It will already be unencrypted.

        The CLI tool decryption hasn't been tested in a while, I can look into it.

        andreasduerenA Offline
        andreasduerenA Offline
        andreasdueren
        App Dev
        wrote on last edited by
        #11

        @girish said in Error while recovering backup:

        @andreasdueren the database dump should be in /home/yellowtent/appsdata/<appid>/postgresqldump . It will already be unencrypted.

        The CLI tool decryption hasn't been tested in a while, I can look into it.

        Can you think of any other way to decrypt it? Manually adding the information into the backup recovery in the ui also won't work.

        1 Reply Last reply
        0
        • girishG girish

          @andreasdueren the database dump should be in /home/yellowtent/appsdata/<appid>/postgresqldump . It will already be unencrypted.

          The CLI tool decryption hasn't been tested in a while, I can look into it.

          andreasduerenA Offline
          andreasduerenA Offline
          andreasdueren
          App Dev
          wrote on last edited by
          #12

          @girish said in Error while recovering backup:

          @andreasdueren the database dump should be in /home/yellowtent/appsdata/<appid>/postgresqldump . It will already be unencrypted.

          If there was one, it is now lost since I tried to roll back to the old version.

          1 Reply Last reply
          0
          • andreasduerenA Offline
            andreasduerenA Offline
            andreasdueren
            App Dev
            wrote on last edited by
            #13

            Update: I think I was able to get the backup back by using the CLI to roll back. Have to check everything still though.

            andreasduerenA 1 Reply Last reply
            0
            • andreasduerenA andreasdueren

              Update: I think I was able to get the backup back by using the CLI to roll back. Have to check everything still though.

              andreasduerenA Offline
              andreasduerenA Offline
              andreasdueren
              App Dev
              wrote on last edited by
              #14

              @andreasdueren said in Error while recovering backup:

              Update: I think I was able to get the backup back by using the CLI to roll back. Have to check everything still though.

              Never mind turned out it didn’t select the backup I wanted and failed the same way.

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

                @andreasdueren Can you check if this file is inside wasabi - extensions/axios/lib/adapters/http.js ?

                andreasduerenA 1 Reply Last reply
                0
                • girishG girish

                  @andreasdueren Can you check if this file is inside wasabi - extensions/axios/lib/adapters/http.js ?

                  andreasduerenA Offline
                  andreasduerenA Offline
                  andreasdueren
                  App Dev
                  wrote on last edited by
                  #16

                  @girish said in Error while recovering backup:

                  @andreasdueren Can you check if this file is inside wasabi - extensions/axios/lib/adapters/http.js ?

                  Unfortunately, the backup is encrypted. There is a file, but I do not know if it's corrupt or intact.

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

                    @andreasdueren ah true, I will fix the cli script

                    1 Reply Last reply
                    1
                    • andreasduerenA Offline
                      andreasduerenA Offline
                      andreasdueren
                      App Dev
                      wrote on last edited by
                      #18
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • andreasduerenA Offline
                        andreasduerenA Offline
                        andreasdueren
                        App Dev
                        wrote on last edited by
                        #19
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #20

                          CLI crash is fixed in CLI version 5.4.2 .

                          1 Reply Last reply
                          2
                          • girishG girish has marked this topic as solved on
                          • andreasduerenA Offline
                            andreasduerenA Offline
                            andreasdueren
                            App Dev
                            wrote on last edited by
                            #21

                            Different issues but also related to the decrypting backup: I assume "Error: Invalid initialization vector" is referring to the wrong passphrase?

                            girishG 1 Reply Last reply
                            1
                            • andreasduerenA andreasdueren

                              Different issues but also related to the decrypting backup: I assume "Error: Invalid initialization vector" is referring to the wrong passphrase?

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

                              @andreasdueren yes, usually that means the passphrase is wrong.

                              1 Reply Last reply
                              1

                              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