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. Backup failing with unspecified error

Backup failing with unspecified error

Scheduled Pinned Locked Moved Support
backups
15 Posts 4 Posters 2.4k 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.
    • Z Offline
      Z Offline
      zjuhasz1
      wrote on last edited by girish
      #1

      First backup after restoring Cloudron is failing with the following error:

      box:backups nextcloud.domain Unable to backup { BoxError: Backuptask crashed
      at /home/yellowtent/box/src/backups.js:872:29
      at f (/home/yellowtent/box/node_modules/once/once.js:25:25)
      at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:69:9)
      at ChildProcess.emit (events.js:198:13)
      at ChildProcess.EventEmitter.emit (domain.js:448:20)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
      name: 'BoxError',
      reason: 'Internal Error',
      details: {},
      message: 'Backuptask crashed' }
      Jan 02 06:37:07 box:taskworker Task took 16626.103 seconds
      Jan 02 06:37:07 box:tasks setCompleted - 1205: {"result":null,"error":{"stack":"BoxError: Backuptask crashed\n at /home/yellowtent/box/src/backups.js:872:29\n at f (/home/yellowtent/box/node_modules/once/once.js:25:25)\n at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:69:9)\n at ChildProcess.emit (events.js:198:13)\n at ChildProcess.EventEmitter.emit (domain.js:448:20)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)","name":"BoxError","reason":"Internal Error","details":{},"message":"Backuptask crashed"}}
      Jan 02 06:37:07 box:tasks 1205: {"percent":100,"result":null,"error":{"stack":"BoxError: Backuptask crashed\n at /home/yellowtent/box/src/backups.js:872:29\n at f (/home/yellowtent/box/node_modules/once/once.js:25:25)\n at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:69:9)\n at ChildProcess.emit (events.js:198:13)\n at ChildProcess.EventEmitter.emit (domain.js:448:20)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)","name":"BoxError","reason":"Internal Error","details":{},"message":"Backuptask crashed"}}
      

      I'm using rsync.

      girishG 1 Reply Last reply
      0
      • Z zjuhasz1

        First backup after restoring Cloudron is failing with the following error:

        box:backups nextcloud.domain Unable to backup { BoxError: Backuptask crashed
        at /home/yellowtent/box/src/backups.js:872:29
        at f (/home/yellowtent/box/node_modules/once/once.js:25:25)
        at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:69:9)
        at ChildProcess.emit (events.js:198:13)
        at ChildProcess.EventEmitter.emit (domain.js:448:20)
        at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
        name: 'BoxError',
        reason: 'Internal Error',
        details: {},
        message: 'Backuptask crashed' }
        Jan 02 06:37:07 box:taskworker Task took 16626.103 seconds
        Jan 02 06:37:07 box:tasks setCompleted - 1205: {"result":null,"error":{"stack":"BoxError: Backuptask crashed\n at /home/yellowtent/box/src/backups.js:872:29\n at f (/home/yellowtent/box/node_modules/once/once.js:25:25)\n at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:69:9)\n at ChildProcess.emit (events.js:198:13)\n at ChildProcess.EventEmitter.emit (domain.js:448:20)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)","name":"BoxError","reason":"Internal Error","details":{},"message":"Backuptask crashed"}}
        Jan 02 06:37:07 box:tasks 1205: {"percent":100,"result":null,"error":{"stack":"BoxError: Backuptask crashed\n at /home/yellowtent/box/src/backups.js:872:29\n at f (/home/yellowtent/box/node_modules/once/once.js:25:25)\n at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:69:9)\n at ChildProcess.emit (events.js:198:13)\n at ChildProcess.EventEmitter.emit (domain.js:448:20)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)","name":"BoxError","reason":"Internal Error","details":{},"message":"Backuptask crashed"}}
        

        I'm using rsync.

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

        @zjuhasz1 is there anything in the backup logs?

        Z 1 Reply Last reply
        0
        • girishG girish

          @zjuhasz1 is there anything in the backup logs?

          Z Offline
          Z Offline
          zjuhasz1
          wrote on last edited by zjuhasz1
          #3

          @girish I forgot one more line Jan 04 06:16:13 box:shell backup-snapshot/app_dd36cce2-7674-4985-b671-a7dcd2d96a6c code: null, signal: SIGKILL. The rest of the log is just the normal uploading messages. I'd post the whole thing but there are a lot of file names I'd rather not share.

          girishG 1 Reply Last reply
          0
          • Z zjuhasz1

            @girish I forgot one more line Jan 04 06:16:13 box:shell backup-snapshot/app_dd36cce2-7674-4985-b671-a7dcd2d96a6c code: null, signal: SIGKILL. The rest of the log is just the normal uploading messages. I'd post the whole thing but there are a lot of file names I'd rather not share.

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

            @zjuhasz1 said in Backup failing with unspecified error:

            SIGKILL

            Usually, this indicates that it got killed because of out of memory. Under backups -> configure, there is a memory limit slider. Can you give it lot more memory and try the backup again?

            Z 1 Reply Last reply
            1
            • girishG girish

              @zjuhasz1 said in Backup failing with unspecified error:

              SIGKILL

              Usually, this indicates that it got killed because of out of memory. Under backups -> configure, there is a memory limit slider. Can you give it lot more memory and try the backup again?

              Z Offline
              Z Offline
              zjuhasz1
              wrote on last edited by
              #5

              @girish It was already at 40GB but I increased it to 64 and reduced the concurrent uploads. It does seem to be crashing when uploading very large files. Does it need to store the entire file its uploading in memory or does it break large files into parts? I don't understand if the multi part upload size is used for rsync also or just tgz backups.

              imc67I girishG 2 Replies Last reply
              0
              • Z zjuhasz1

                @girish It was already at 40GB but I increased it to 64 and reduced the concurrent uploads. It does seem to be crashing when uploading very large files. Does it need to store the entire file its uploading in memory or does it break large files into parts? I don't understand if the multi part upload size is used for rsync also or just tgz backups.

                imc67I Offline
                imc67I Offline
                imc67
                translator
                wrote on last edited by
                #6

                @zjuhasz1 and @girish I think this looks like the same with my issue!

                https://forum.cloudron.io/topic/4129/update-to-4-1-0-1-23-0-failed

                Z 1 Reply Last reply
                0
                • imc67I imc67

                  @zjuhasz1 and @girish I think this looks like the same with my issue!

                  https://forum.cloudron.io/topic/4129/update-to-4-1-0-1-23-0-failed

                  Z Offline
                  Z Offline
                  zjuhasz1
                  wrote on last edited by
                  #7

                  @imc67 Are you using rsync?

                  imc67I 1 Reply Last reply
                  0
                  • Z zjuhasz1

                    @imc67 Are you using rsync?

                    imc67I Offline
                    imc67I Offline
                    imc67
                    translator
                    wrote on last edited by
                    #8

                    @zjuhasz1 yes

                    1 Reply Last reply
                    0
                    • Z zjuhasz1

                      @girish It was already at 40GB but I increased it to 64 and reduced the concurrent uploads. It does seem to be crashing when uploading very large files. Does it need to store the entire file its uploading in memory or does it break large files into parts? I don't understand if the multi part upload size is used for rsync also or just tgz backups.

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

                      @zjuhasz1 I think we (@imc67 and I) found the reason. Can you confirm that the backups are failing when you take an app backup from the apps view (as opposed to the Backups view?)? If so, the fix is this:

                      • Open /home/yellowtent/box/src/apptaskmanager.js
                      • Line 76 or so is like this:
                          tasks.startTask(taskId, { logFile, timeout: 20 * 60 * 60 * 1000 /* 20 hours */, nice: 15 }, function (error, result) {
                      

                      Change it to (just adds memoryLimit):

                          tasks.startTask(taskId, { logFile, timeout: 20 * 60 * 60 * 1000 /* 20 hours */, nice: 15, memoryLimit: 4 * 1024 * 1024 * 1024 }, function (error, result) {
                      
                      • systemctl restart box
                      • Now take a backup.
                      Z 1 Reply Last reply
                      0
                      • girishG girish

                        @zjuhasz1 I think we (@imc67 and I) found the reason. Can you confirm that the backups are failing when you take an app backup from the apps view (as opposed to the Backups view?)? If so, the fix is this:

                        • Open /home/yellowtent/box/src/apptaskmanager.js
                        • Line 76 or so is like this:
                            tasks.startTask(taskId, { logFile, timeout: 20 * 60 * 60 * 1000 /* 20 hours */, nice: 15 }, function (error, result) {
                        

                        Change it to (just adds memoryLimit):

                            tasks.startTask(taskId, { logFile, timeout: 20 * 60 * 60 * 1000 /* 20 hours */, nice: 15, memoryLimit: 4 * 1024 * 1024 * 1024 }, function (error, result) {
                        
                        • systemctl restart box
                        • Now take a backup.
                        Z Offline
                        Z Offline
                        zjuhasz1
                        wrote on last edited by
                        #10

                        @girish Automatic backups are also failing for me, so would this fix not address it? I am doing another run now with significantly reduced concurrency.

                        girishG 1 Reply Last reply
                        0
                        • Z zjuhasz1

                          @girish Automatic backups are also failing for me, so would this fix not address it? I am doing another run now with significantly reduced concurrency.

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

                          @zjuhasz1 I suspect your issue is something else then. Can you contact us to on support@cloudron.io, I will need access to the server to debug what is happening. Thanks

                          Z 2 Replies Last reply
                          0
                          • girishG girish

                            @zjuhasz1 I suspect your issue is something else then. Can you contact us to on support@cloudron.io, I will need access to the server to debug what is happening. Thanks

                            Z Offline
                            Z Offline
                            zjuhasz1
                            wrote on last edited by
                            #12
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • girishG girish

                              @zjuhasz1 I suspect your issue is something else then. Can you contact us to on support@cloudron.io, I will need access to the server to debug what is happening. Thanks

                              Z Offline
                              Z Offline
                              zjuhasz1
                              wrote on last edited by zjuhasz1
                              #13

                              @girish Realized I already asked about a timeout on my old account. I think I am just running into that again now.

                              girishG 1 Reply Last reply
                              0
                              • Z zjuhasz1

                                @girish Realized I already asked about a timeout on my old account. I think I am just running into that again now.

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

                                @zjuhasz1 What kind of timeout are you hitting? Do you have any logs/error message?

                                There are two high level timeouts - one is the various things like upload/copy etc during the backup process. I can tell you how to tweak them, if this is where it's failing. The other timeout is that the entire backup can take a day at most. After a day, the backup is killed (because it's assumed we probably hit some bug).

                                1 Reply Last reply
                                0
                                • robiR Offline
                                  robiR Offline
                                  robi
                                  wrote on last edited by
                                  #15

                                  don't forget the network timeouts with optimized TCP settings, which can disconnect too early.

                                  Conscious tech

                                  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