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. Restore not possible

Restore not possible

Scheduled Pinned Locked Moved Unsolved Support
14 Posts 4 Posters 124 Views 4 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.
  • jdaviescoatesJ Offline
    jdaviescoatesJ Offline
    jdaviescoates
    wrote last edited by jdaviescoates
    #2

    I can't help, but just to say this stuff is part of why I tend not to use encryption as in my limited experience the risk of my locking myself out of my own data is higher than the risk that someone else will access it! 🤣

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    1
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #3

      Hello @sponch
      Can you please try to manually decrypt a singular backup following this guide:
      https://docs.cloudron.io/guides/decrypt-backups/

      1 Reply Last reply
      0
      • sponchS Offline
        sponchS Offline
        sponch
        wrote last edited by james
        #4
        TypeError: Invalid initialization vector
            at Decipheriv.createCipherBase (node:internal/crypto/cipher:117:19)
            at Decipheriv.createCipherWithIV (node:internal/crypto/cipher:128:3)
            at new Decipheriv (node:internal/crypto/cipher:247:3)
            at Object.createDecipheriv (node:crypto:145:10)
            at decryptFilePath (/opt/homebrew/lib/node_modules/cloudron/src/backup-tools.js:55:36)
            at Command.decryptDir (/opt/homebrew/lib/node_modules/cloudron/src/backup-tools.js:284:50)
            at Command.listener [as _actionHandler] (/opt/homebrew/lib/node_modules/cloudron/node_modules/commander/lib/command.js:552:17)
            at /opt/homebrew/lib/node_modules/cloudron/node_modules/commander/lib/command.js:1586:14
            at Command._chainOrCall (/opt/homebrew/lib/node_modules/cloudron/node_modules/commander/lib/command.js:1470:12)
            at Command._parseCommand (/opt/homebrew/lib/node_modules/cloudron/node_modules/commander/lib/command.js:1585:27) {
          code: 'ERR_CRYPTO_INVALID_IV'
        
        1 Reply Last reply
        0
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #5

          Is this a tgz or rsync backup?

          1 Reply Last reply
          0
          • sponchS Offline
            sponchS Offline
            sponch
            wrote last edited by
            #6

            @james rsync

            1 Reply Last reply
            0
            • jamesJ Offline
              jamesJ Offline
              james
              Staff
              wrote last edited by
              #7

              @sponch
              Once, I've seen a strange error with rsync type backup where a zero byte file blocked the whole process.
              Because, a zero byte file does not even include the encryption header needed for the file.

              Can you please run the following command for the failing rsync decryption:

              find . -type f -size 0
              

              If you find any zero byte files, move them somewhere else outside the folder and try the decryption again.

              1 Reply Last reply
              0
              • sponchS Offline
                sponchS Offline
                sponch
                wrote last edited by
                #8

                a run the command in the encrypted backup directly right? doesn't find anything

                1 Reply Last reply
                0
                • sponchS Offline
                  sponchS Offline
                  sponch
                  wrote last edited by
                  #9

                  what would you recommend: rsync or tgz for future backups?

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    p44
                    translator
                    wrote last edited by p44
                    #10

                    We discussed this issue here:
                    https://forum.cloudron.io/topic/12632/tarextract-pipeline-error-invalid-tar-header/24

                    I've encountered this problem twice...

                    @sponch I have a question: Were the backups you're trying to restore still in their original location (where they were first created), or had they been moved/copied to a different Hetzner Box before restoring?

                    I’m asking because the files I tried to recover (unsuccessfully) had been transferred between Hetzner Boxes, and I’m wondering if that could be the root of the issue.

                    Edit: Were the files you tried to restore from the Hetzner Box originally created by the same specific Cloudron instance? Or were they from a different instance (e.g., after a reinstall)? I’m asking to help trace the root cause of the issue.

                    @james I believe that in some cases encryption is necessary, so increased security inherently comes with the trade-off of being locked out of the recovery process. However, in this specific case, we should investigate the root cause of the issue, since it seems that has affected multiple users...

                    @sponch @james Another hypothesis that comes to mind is the use of special characters in the password, which might not be interpreted correctly during the backup recovery process – Eg. a Gui problem –. I’ve since updated my passwords to only include uppercase letters, lowercase letters, and numbers (40 characters long), and the issue appears to be resolved... but this is only an hypothesis.

                    sponchS 1 Reply Last reply
                    1
                    • P p44

                      We discussed this issue here:
                      https://forum.cloudron.io/topic/12632/tarextract-pipeline-error-invalid-tar-header/24

                      I've encountered this problem twice...

                      @sponch I have a question: Were the backups you're trying to restore still in their original location (where they were first created), or had they been moved/copied to a different Hetzner Box before restoring?

                      I’m asking because the files I tried to recover (unsuccessfully) had been transferred between Hetzner Boxes, and I’m wondering if that could be the root of the issue.

                      Edit: Were the files you tried to restore from the Hetzner Box originally created by the same specific Cloudron instance? Or were they from a different instance (e.g., after a reinstall)? I’m asking to help trace the root cause of the issue.

                      @james I believe that in some cases encryption is necessary, so increased security inherently comes with the trade-off of being locked out of the recovery process. However, in this specific case, we should investigate the root cause of the issue, since it seems that has affected multiple users...

                      @sponch @james Another hypothesis that comes to mind is the use of special characters in the password, which might not be interpreted correctly during the backup recovery process – Eg. a Gui problem –. I’ve since updated my passwords to only include uppercase letters, lowercase letters, and numbers (40 characters long), and the issue appears to be resolved... but this is only an hypothesis.

                      sponchS Offline
                      sponchS Offline
                      sponch
                      wrote last edited by sponch
                      #11

                      @sponch I have a question: Were the backups you're trying to restore still in their original location (where they were first created), or had they been moved/copied to a different Hetzner Box before restoring?

                      Same location (only the prefixed changed months ago - should not concern the recent backups)

                      I’m asking because the files I tried to recover (unsuccessfully) had been transferred between Hetzner Boxes, and I’m wondering if that could be the root of the issue.

                      Edit: Were the files you tried to restore from the Hetzner Box originally created by the same specific Cloudron instance? Or were they from a different instance (e.g., after a reinstall)? I’m asking to help trace the root cause of the issue.

                      Same instance. Nextcloud is backed up daily. Last fews days restoring always ends up with same error.

                      @sponch @james Another hypothesis that comes to mind is the use of special characters in the password, which might not be interpreted correctly during the backup recovery process – Eg. a Gui problem

                      Just restored another (unimportant) app from same backup day. Worked perfectly.

                      1 Reply Last reply
                      1
                      • P Offline
                        P Offline
                        p44
                        translator
                        wrote last edited by
                        #12

                        @sponch ok thanks for informations. I hope those informations could help to reproduce issue and eventually find the source cause...

                        1 Reply Last reply
                        0
                        • sponchS Offline
                          sponchS Offline
                          sponch
                          wrote last edited by sponch
                          #13

                          hi and thanks four you information. Unfortunately I could find the cause.... and set up a new Nextcloud instance (only had 5 users and offline data from the clients).
                          As other apps could be restored w/o any problems it must have been s.th. related to Nextcloud specific restoration I guess.
                          Just made a clone of the new Nextcloud App (encryption disabled....)worked perfectly.

                          P 1 Reply Last reply
                          1
                          • sponchS sponch

                            hi and thanks four you information. Unfortunately I could find the cause.... and set up a new Nextcloud instance (only had 5 users and offline data from the clients).
                            As other apps could be restored w/o any problems it must have been s.th. related to Nextcloud specific restoration I guess.
                            Just made a clone of the new Nextcloud App (encryption disabled....)worked perfectly.

                            P Offline
                            P Offline
                            p44
                            translator
                            wrote last edited by
                            #14

                            @sponch you disabled Cloudron Backup Encryption or Nextcloud App Encription?

                            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