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. Restoring Backups fails

Restoring Backups fails

Scheduled Pinned Locked Moved Solved Support
backupsrestore
32 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.
  • philkunzP Offline
    philkunzP Offline
    philkunz
    wrote on last edited by
    #13

    How buggy can something be? Yes... Clicking the Remount Storage button meanwhile works without any error?

    Screenshot 2025-10-21 at 18.49.01.png

    1 Reply Last reply
    0
    • philkunzP Offline
      philkunzP Offline
      philkunz
      wrote on last edited by
      #14

      unmounting works after system reboot: To reiterate: The backup that failed, was a backup I created manually 10 minutes earlier. Then I tried earlier backups and I had to go back to 16th October to have a working backup.

      1 Reply Last reply
      0
      • philkunzP Offline
        philkunzP Offline
        philkunz
        wrote on last edited by
        #15

        As a consequence I think, two things should be changed:

        1. Create a working container first before deleting the old one.
        2. Verify backups automatically after creating them.
        1 Reply Last reply
        1
        • philkunzP Offline
          philkunzP Offline
          philkunz
          wrote on last edited by
          #16

          Otherwise this can end in a true shit show if someone relies on backups that are not working.

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

            Hello @philkunz
            Really sorry to read that you had such an unpleasant experience with the backup and restore process.
            In Cloudron 9 the whole backup and restore process was overhauled with more integrity checks which should also minimize some of the issue you had here.

            @philkunz said in Restoring Backups fails:

            Why is the cloudron cli required for decrypting backups? It should be standard and documented. Am I missing something?

            Here is the documentation: https://docs.cloudron.io/guides/decrypt-backups/

            Can you maybe download the older backup that did not work and try to decrypt it locally?


            Regarding the unmounting exists mount and remounting.
            This can also be an issue related to your backup provider.

            @philkunz said in Restoring Backups fails:

            Clicking the Remount Storage button meanwhile works without any error?

            Would have been good to see what the box.log wrote when this happened.

            @philkunz said in Restoring Backups fails:

            Create a working container first before deleting the old one.

            I understand your sentiment, in the meanwhile, if you want to be extra careful, you can clone the app from a backup to ensure everything is working.

            @philkunz said in Restoring Backups fails:

            Verify backups automatically after creating them.

            This is done in Cloudron 9

            1 Reply Last reply
            1
            • philkunzP philkunz

              Seems like other people had the same problem before. For me everything runs on Zen 4c infra with ecc, zfs... It for sure is not hardware related. Backups worked until a few days ago. Something must have happened on cloudron's die, weird race condition, something. This needs checking, and backups need to be tested every single time automatically by cloudron to find the pattern and cause. It can't be that a tar is corrupted. If the source is corrupted, the tar should still be ok by itself.

              necrevistonnezrN Offline
              necrevistonnezrN Offline
              necrevistonnezr
              wrote on last edited by
              #18

              @philkunz said in Restoring Backups fails:

              Seems like other people had the same problem before. For me everything runs on Zen 4c infra with ecc, zfs...

              Is ZFS supported now?

              1 Reply Last reply
              2
              • philkunzP Offline
                philkunzP Offline
                philkunz
                wrote on last edited by
                #19

                zfs is on the host. cloudron uses non-cow inside the vm.

                1 Reply Last reply
                1
                • D Offline
                  D Offline
                  dylightful
                  wrote on last edited by
                  #20

                  cloudron_tarExtract_Pipeline error.png

                  Experiencing the same issue with CIFS mounts. Creating backups work seamlessly. When you go to restore it attempts to restore a small subset of files 3 times before displaying the error. I noticed when I go to restore the app it doesn't prompt for an encryption password, perhaps an internal issue with storing of the encryption hash?

                  P 1 Reply Last reply
                  1
                  • D dylightful

                    cloudron_tarExtract_Pipeline error.png

                    Experiencing the same issue with CIFS mounts. Creating backups work seamlessly. When you go to restore it attempts to restore a small subset of files 3 times before displaying the error. I noticed when I go to restore the app it doesn't prompt for an encryption password, perhaps an internal issue with storing of the encryption hash?

                    P Offline
                    P Offline
                    p44
                    translator
                    wrote on last edited by
                    #21

                    @dylightful Which provider are you using to backup files? What version of Cloudron are you using?

                    D 1 Reply Last reply
                    0
                    • P p44

                      @dylightful Which provider are you using to backup files? What version of Cloudron are you using?

                      D Offline
                      D Offline
                      dylightful
                      wrote on last edited by
                      #22

                      @p44

                      CIFS Mount to storage provider - Version 9.0.13

                      Backups work fine, restoration gives the above error.

                      P 1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        joseph
                        Staff
                        wrote on last edited by
                        #23

                        @dylightful the verification signature is now saved but there is no UI yet .

                        Can you check if you have a .backupinfo file next to your .tar.gz ? Inside .backupinfo there will be a sha256 checksum. Can you check if sha256 sum matches with the .tar.gz file ?

                        1 Reply Last reply
                        0
                        • D dylightful

                          @p44

                          CIFS Mount to storage provider - Version 9.0.13

                          Backups work fine, restoration gives the above error.

                          P Offline
                          P Offline
                          p44
                          translator
                          wrote on last edited by
                          #24

                          @dylightfu That is the main problem.... the restoration, not the backup... Can you give us storage provider company name?

                          D 1 Reply Last reply
                          0
                          • P p44

                            @dylightfu That is the main problem.... the restoration, not the backup... Can you give us storage provider company name?

                            D Offline
                            D Offline
                            dylightful
                            wrote on last edited by
                            #25

                            @p44

                            It is to a self hosted SAN

                            P 1 Reply Last reply
                            1
                            • J Offline
                              J Offline
                              joseph
                              Staff
                              wrote on last edited by
                              #26

                              @dylightful if there's a setup where we can debug, would be great since we are unable to reproduce it .

                              1 Reply Last reply
                              1
                              • D dylightful

                                @p44

                                It is to a self hosted SAN

                                P Offline
                                P Offline
                                p44
                                translator
                                wrote on last edited by
                                #27

                                @dylightful ok. it could be useful to follow @joseph advice, to try to reproduce issue...

                                I had the same problem with Hetzner Storage Box via CIFS mount...

                                D 1 Reply Last reply
                                1
                                • P p44

                                  @dylightful ok. it could be useful to follow @joseph advice, to try to reproduce issue...

                                  I had the same problem with Hetzner Storage Box via CIFS mount...

                                  D Offline
                                  D Offline
                                  dylightful
                                  wrote on last edited by
                                  #28

                                  @p44 tried hetzner now too. Same issue - backups fine, unable to restore (20GB LAMP stack)

                                  P 1 Reply Last reply
                                  1
                                  • D dylightful

                                    @p44 tried hetzner now too. Same issue - backups fine, unable to restore (20GB LAMP stack)

                                    P Offline
                                    P Offline
                                    p44
                                    translator
                                    wrote on last edited by
                                    #29

                                    @dylightful Please share logs or other infos with @joseph so we can finally understand what’s going on... this is a very important problem to understand ASAP. I had this problem too.

                                    D 1 Reply Last reply
                                    0
                                    • P p44

                                      @dylightful Please share logs or other infos with @joseph so we can finally understand what’s going on... this is a very important problem to understand ASAP. I had this problem too.

                                      D Offline
                                      D Offline
                                      dylightful
                                      wrote on last edited by
                                      #30
                                      This post is deleted!
                                      D 1 Reply Last reply
                                      0
                                      • D dylightful

                                        This post is deleted!

                                        D Offline
                                        D Offline
                                        dylightful
                                        wrote on last edited by
                                        #31

                                        Log file for @joseph

                                        It displays this error 3 times

                                        Dec 16 00:01:24 box:backupformat/tgz Attempt 2 failed. Will retry: tarExtract pipeline error: invalid stored block lengths
                                        

                                        After the 3rd time, it times out and fails with

                                        Dec 16 00:01:49 box:apptask run: app error for state pending_restore: BoxError: tarExtract pipeline error: invalid stored block lengths at tarExtract (/home/yellowtent/box/src/backupformat/tgz.js:231:26) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async /home/yellowtent/box/src/backupformat/tgz.js:252:9 at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20) at async Object.download (/home/yellowtent/box/src/backupformat/tgz.js:248:5) at async download (/home/yellowtent/box/src/backuptask.js:129:5) at async Object.downloadApp (/home/yellowtent/box/src/backuptask.js:169:5) at async installCommand (/home/yellowtent/box/src/apptask.js:350:9) { reason: 'External Error', details: {} }
                                        Dec 16 00:01:49 box:tasks setCompleted - 21001: {"result":null,"error":{"message":"tarExtract pipeline error: invalid stored block lengths","reason":"External Error"},"percent":100}
                                        Dec 16 00:01:49 box:tasks updating task 21001 with: {"completed":true,"result":null,"error":{"message":"tarExtract pipeline error: invalid stored block lengths","reason":"External Error"},"percent":100}
                                        Dec 16 00:01:49 box:taskworker Task took 57.836 seconds
                                        Dec 16 00:01:49 BoxError: tarExtract pipeline error: invalid stored block lengths
                                        Dec 16 00:01:49 at tarExtract (/home/yellowtent/box/src/backupformat/tgz.js:231:26)
                                        Dec 16 00:01:49 at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
                                        Dec 16 00:01:49 at async /home/yellowtent/box/src/backupformat/tgz.js:252:9
                                        Dec 16 00:01:49 at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)
                                        Dec 16 00:01:49 at async Object.download (/home/yellowtent/box/src/backupformat/tgz.js:248:5)
                                        Dec 16 00:01:49 at async download (/home/yellowtent/box/src/backuptask.js:129:5)
                                        Dec 16 00:01:49 at async Object.downloadApp (/home/yellowtent/box/src/backuptask.js:169:5)
                                        Dec 16 00:01:49 at async installCommand (/home/yellowtent/box/src/apptask.js:350:9)
                                        Dec 16 00:01:49 Exiting with code 0
                                        
                                        1 Reply Last reply
                                        0
                                        • girishG Offline
                                          girishG Offline
                                          girish
                                          Staff
                                          wrote on last edited by
                                          #32

                                          @dylightful If we can have access to your setup, can you write to me at support@cloudron.io ? Would love to debug and figure out why it's failing . Is this reproducible easily - meaning if you take a backup and restore, it fails?

                                          1 Reply Last reply
                                          1
                                          • J joseph has marked this topic as solved
                                          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