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. Nextcloud backup crashes

Nextcloud backup crashes

Scheduled Pinned Locked Moved Solved Support
30 Posts 6 Posters 4.0k Views 6 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.
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #2

    Try bumping memory for the backup config in the advanced section.

    Conscious tech

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #3

      Maybe the concurrency could be lower to not overflow the system also with I/O

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jagan
        wrote on last edited by jagan
        #4

        I got the same issue.
        Here are my logs:

        Dec 02 06:27:28box:shell backup-snapshot/app_00ca9de5-a6cc-45b8-8914-f23a6609a145 code: null, signal: SIGKILL
        Dec 02 06:27:28box:taskworker Task took 32248.202 seconds
        Dec 02 06:27:28box:tasks setCompleted - 16719: {"result":null,"error":{"stack":"BoxError: Backuptask crashed\n at runBackupUpload (/home/yellowtent/box/src/backuptask.js:164:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async uploadAppSnapshot (/home/yellowtent/box/src/backuptask.js:361:5)\n at async backupAppWithTag (/home/yellowtent/box/src/backuptask.js:383:5)\n at async fullBackup (/home/yellowtent/box/src/backuptask.js:504:29)","name":"BoxError","reason":"Internal Error","details":{},"message":"Backuptask crashed"}}
        Dec 02 06:27:28box:tasks update 16719: {"percent":100,"result":null,"error":{"stack":"BoxError: Backuptask crashed\n at runBackupUpload (/home/yellowtent/box/src/backuptask.js:164:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async uploadAppSnapshot (/home/yellowtent/box/src/backuptask.js:361:5)\n at async backupAppWithTag (/home/yellowtent/box/src/backuptask.js:383:5)\n at async fullBackup (/home/yellowtent/box/src/backuptask.js:504:29)","name":"BoxError","reason":"Internal Error","details":{},"message":"Backuptask crashed"}}
        Backuptask crashed
        
        

        And my backup settings are as follows:
        307c8569-ff48-4b1f-b40e-c7539d287efb-image.png

        Should I increase the memory? Let me bump it to 2 GB.
        Looks like Upload Concurrency of 10 is the minimum.
        I just changed from Wasabi (the price bump was too much) to iDrive e2.
        Thanks for any help and pointers.

        1 Reply Last reply
        1
        • O opensourced

          I have a Nextcloud running on one of my instances, that uses a hd-storage mount of around 2.5 TB size.

          The problem is, that instance does not manage to finish the backup. The machine has 32GB memory and 4 cores. The Nextcloud App has a memory limit of 8GB and CPU shares of 50%.

          The following is the backup configuration. backup-config.png

          The Minio instance is a self hosted app that runs on another Cloudron.

          When the backup failed I saw this log:

          Nov 19 18:52:17box:tasks update 8098: {"percent":100,"result":null,"error":{"stack":"BoxError: Backuptask crashed\n at runBackupUpload (/home/yellowtent/box/src/backuptask.js:164:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async uploadAppSnapshot (/home/yellowtent/box/src/backuptask.js:361:5)\n at async backupAppWithTag (/home/yellowtent/box/src/backuptask.js:383:5)\n at async Object.backupApp (/home/yellowtent/box/src/backuptask.js:321:12)\n at async backup (/home/yellowtent/box/src/apptask.js:363:22)","name":"BoxError","reason":"Internal Error","details":{},"message":"Backuptask crashed"}}
          Backuptask crashed
          at runBackupUpload (/home/yellowtent/box/src/backuptask.js:164:15)
          at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
          at async uploadAppSnapshot (/home/yellowtent/box/src/backuptask.js:361:5)
          at async backupAppWithTag (/home/yellowtent/box/src/backuptask.js:383:5)
          at async Object.backupApp (/home/yellowtent/box/src/backuptask.js:321:12)
          at async backup (/home/yellowtent/box/src/apptask.js:363:22)
          

          The issue might be related with timeouts, because the Minio is not the fastest instance. Nevertheless, I would expect this to work, since its not really a huge amount of data.

          Thanks for any suggestions or information on how to further debug this issue.

          girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #5

          @opensourced @jagan It says backup crashed. This indicates some real crash in code. Can you send me the full backup logs to support@cloudron.io ?

          Is there a chance you both are in Ubuntu 18 (check with lsb_release -a or the Settings view)? if so, this could be related to be node version mismatch issue.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jagan
            wrote on last edited by
            #6

            I have v7.5.2 (Ubuntu 20.04.5 LTS).
            Backups are failing for me. I signed up for Backblaze B2 but the issue persists.
            Signed up for a Hetzner CIFS storage box, but the CIFS did not mount for some reason.
            Let me raise a support ticket with access to the server coz I don't know how to get the full backup logs.

            1 Reply Last reply
            2
            • girishG girish marked this topic as a question on
            • girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by
              #7

              I am debugging @jagan 's setup on support. The core issue is the large amount of data being backed up (over 3TB). Disabling some of the apps which have this large data atleast makes the backup succeed. Trying to see what exactly makes the very large app which has over 1.5TB data fail.

              1 Reply Last reply
              2
              • J Offline
                J Offline
                jagan
                wrote on last edited by
                #8

                Thanks Girish, I think I might have the largest Nextcloud on Cloudron. It has been working flawlessly, except for the present backup hiccup. I always feel so safe with Cloudron.
                The support is priceless. As one of the earliest adopters, Cloudron has been my second-best decision ever.

                girishG 1 Reply Last reply
                1
                • J jagan

                  Thanks Girish, I think I might have the largest Nextcloud on Cloudron. It has been working flawlessly, except for the present backup hiccup. I always feel so safe with Cloudron.
                  The support is priceless. As one of the earliest adopters, Cloudron has been my second-best decision ever.

                  girishG Do not disturb
                  girishG Do not disturb
                  girish
                  Staff
                  wrote on last edited by girish
                  #9

                  @jagan thanks for the nice words 🙂 I think using a storage box is probably the best approach for backups instead of these object storage solutions. They are designed to serve reasonably sized objects and not 1.5TB objects 😄 You mentioned trying out Hetzner Storage Box but is your server on Hetzner? I don't have much idea how well CIFS works across the "internet"

                  1 Reply Last reply
                  1
                  • J Offline
                    J Offline
                    jagan
                    wrote on last edited by
                    #10

                    I got a Storage Box on Hetzner, my Cloudron is also on Hetzner.
                    But somehow I am unable to add the storage box to the backup, may I please pass on the credentials to you please? if you can help me add it to the backup, I would be most grateful.
                    Will mail the details as a reply to the support mail.

                    girishG 2 Replies Last reply
                    0
                    • J jagan

                      I got a Storage Box on Hetzner, my Cloudron is also on Hetzner.
                      But somehow I am unable to add the storage box to the backup, may I please pass on the credentials to you please? if you can help me add it to the backup, I would be most grateful.
                      Will mail the details as a reply to the support mail.

                      girishG Do not disturb
                      girishG Do not disturb
                      girish
                      Staff
                      wrote on last edited by
                      #11

                      @jagan ah perfect, let's try that then. Is the hetzner storage and VPS in the same region ? I know that other network providers (like aws) also charge for outbound network! So, we are transferring out TB of data then there is a cost.

                      J 1 Reply Last reply
                      1
                      • nebulonN Offline
                        nebulonN Offline
                        nebulon
                        Staff
                        wrote on last edited by
                        #12

                        Alternately you could also use the Hetzner storage box with sshfs instead of cifs. I have had quite a good experience with this.

                        1 Reply Last reply
                        0
                        • J jagan

                          I got a Storage Box on Hetzner, my Cloudron is also on Hetzner.
                          But somehow I am unable to add the storage box to the backup, may I please pass on the credentials to you please? if you can help me add it to the backup, I would be most grateful.
                          Will mail the details as a reply to the support mail.

                          girishG Do not disturb
                          girishG Do not disturb
                          girish
                          Staff
                          wrote on last edited by
                          #13

                          @jagan So, the mounting was failing because cifs-utils package was missing on the server. We added this in the install script a while ago, but I guess you are coming from a long time ago. Manually installing cifs-utils package makes it mount.

                          1 Reply Last reply
                          2
                          • girishG girish

                            @jagan ah perfect, let's try that then. Is the hetzner storage and VPS in the same region ? I know that other network providers (like aws) also charge for outbound network! So, we are transferring out TB of data then there is a cost.

                            J Offline
                            J Offline
                            jagan
                            wrote on last edited by jagan
                            #14

                            @girish said in Nextcloud backup crashes:

                            @jagan ah perfect, let's try that then. Is the hetzner storage and VPS in the same region ? I know that other network providers (like aws) also charge for outbound network! So, we are transferring out TB of data then there is a cost.

                            The VPS and Storage are in the same region of Germany.
                            There is sparse info on the storage.
                            I have to find out about the traffic. I hope internal traffic within Hetzner is free, but this is something I need to get sure about. Thanks for the pointer!

                            1 Reply Last reply
                            0
                            • girishG girish has marked this topic as solved on
                            • girishG Do not disturb
                              girishG Do not disturb
                              girish
                              Staff
                              wrote on last edited by
                              #15

                              I will mark this as solved for the moment. CIFS mounting works fine. The (still ongoing) issue is that the data is quite massive and I am looking into seeing if we can throw in some retry logic to make things more "stable".

                              J 1 Reply Last reply
                              1
                              • girishG girish

                                I will mark this as solved for the moment. CIFS mounting works fine. The (still ongoing) issue is that the data is quite massive and I am looking into seeing if we can throw in some retry logic to make things more "stable".

                                J Offline
                                J Offline
                                jagan
                                wrote on last edited by
                                #16

                                @girish Yes Please. Thank you for the help.
                                I triggered a backup earlier today, and it stopped midway. Do the following log entries say anything of interest?


                                Dec 26 21:28:46 box:backuptask copy: copied to 2023-12-26-092602-586/app_hub.sbvu.ac.in_v4.20.5 errored. error: copy exited with code 1 signal null
                                Dec 26 21:28:47 box:apptask run: app error for state pending_backup: BoxError: copy exited with code 1 signal null at Object.copy (/home/yellowtent/box/src/storage/filesystem.js:191:26) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { reason: 'External Error', details: {} }


                                1 Reply Last reply
                                0
                                • O Offline
                                  O Offline
                                  opensourced
                                  wrote on last edited by
                                  #17

                                  Sorry for not responding in an adequate time. Since my backups are still failing, I would try some other storage option. What storage protocol and configuration do you recommend for big backups?

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

                                    @opensourced I have been testing things on the side and tried copying over such amount of data to a CIFS mounted Hetzner Storage and just cp -r command failed in the middle. rclone failed as well since the Hetzner storage box mount point disconnects/breaks randomly. I am getting farther with rsync but currently cloudron does not have an adapter for rsync. We are still working on this. Fundamentally, backing up 2.5TB of data reliably is a very complicated task.

                                    All this to say, I don't really have a solution but if someone has ideas, I can try something else.

                                    O E 2 Replies Last reply
                                    0
                                    • girishG girish

                                      @opensourced I have been testing things on the side and tried copying over such amount of data to a CIFS mounted Hetzner Storage and just cp -r command failed in the middle. rclone failed as well since the Hetzner storage box mount point disconnects/breaks randomly. I am getting farther with rsync but currently cloudron does not have an adapter for rsync. We are still working on this. Fundamentally, backing up 2.5TB of data reliably is a very complicated task.

                                      All this to say, I don't really have a solution but if someone has ideas, I can try something else.

                                      O Offline
                                      O Offline
                                      opensourced
                                      wrote on last edited by
                                      #19

                                      @girish Bevor I used Minio for backups, I was mounting a NFS mount. But I went away from using this, because there were instabilities with the mount and if the share was not mounted, the backup was made onto the rootfs and eventually filled up the disk untill the instance crashed.

                                      girishG 1 Reply Last reply
                                      0
                                      • O opensourced

                                        @girish Bevor I used Minio for backups, I was mounting a NFS mount. But I went away from using this, because there were instabilities with the mount and if the share was not mounted, the backup was made onto the rootfs and eventually filled up the disk untill the instance crashed.

                                        girishG Do not disturb
                                        girishG Do not disturb
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #20

                                        @opensourced er, apologies . I confused you and @jagan !

                                        Can you tell a bit more about your network? Is it a home network or public VPS? Just trying to understand the practicalities of backing up so much. Where the minio and NFS in your local network ?

                                        O 1 Reply Last reply
                                        0
                                        • girishG girish

                                          @opensourced I have been testing things on the side and tried copying over such amount of data to a CIFS mounted Hetzner Storage and just cp -r command failed in the middle. rclone failed as well since the Hetzner storage box mount point disconnects/breaks randomly. I am getting farther with rsync but currently cloudron does not have an adapter for rsync. We are still working on this. Fundamentally, backing up 2.5TB of data reliably is a very complicated task.

                                          All this to say, I don't really have a solution but if someone has ideas, I can try something else.

                                          E Offline
                                          E Offline
                                          eganonoa
                                          wrote on last edited by
                                          #21

                                          @girish said in Nextcloud backup crashes:

                                          @opensourced I have been testing things on the side and tried copying over such amount of data to a CIFS mounted Hetzner Storage and just cp -r command failed in the middle. rclone failed as well since the Hetzner storage box mount point disconnects/breaks randomly. I am getting farther with rsync but currently cloudron does not have an adapter for rsync. We are still working on this. Fundamentally, backing up 2.5TB of data reliably is a very complicated task.

                                          All this to say, I don't really have a solution but if someone has ideas, I can try something else.

                                          @girish A few years ago you helped me out with a similar issue (not on forums but via a support ticket) with backing up a large Nextcloud instance (2TB+). The issue was with timeouts and you advised how and where to update to extend the timeout window significantly. I was using a Hetzner Storage Box in Germany and a VPS in Sweden using a CIFS mount. Later I moved it to an sshfs, rsync to a local server.

                                          This fixed the issue and allowed me a couple of years of backups of that large Nextcloud instance (with many other apps running concurrently) without problem. I don't have those emails any more or access to that instance but wanted to mention in case a reminder is useful to you here as it seems to be a similar issue.

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