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 Failed - looks like nextcloud

Backup Failed - looks like nextcloud

Scheduled Pinned Locked Moved Solved Support
backups
10 Posts 3 Posters 899 Views 3 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.
  • A Offline
    A Offline
    AartJansen
    wrote on last edited by girish
    #1
    Oct 01 21:01:55 box:backuptask uploadAppSnapshot: nextcloud.rotovegas.nz uploaded to snapshot/app_b5917fc4-9fc2-4d51-b754-4f08cd02ea41. 65.989 seconds
    Oct 01 21:01:55 box:backuptask rotateAppBackup: rotating nextcloud.rotovegas.nz to path 2024-10-01-080000-722/app_nextcloud.rotovegas.nz_v4.22.4
    Oct 01 21:01:55 box:tasks update 6137: {"percent":61.86956521739132,"message":"Copying /mnt/cloudronbackup/snapshot/app_b5917fc4-9fc2-4d51-b754-4f08cd02ea41 to /mnt/cloudronbackup/2024-10-01-080000-722/app_nextcloud.rotovegas.nz_v4.22.4"}
    Oct 01 21:01:55 box:shell copy execArgs: cp ["-dRl","/mnt/cloudronbackup/snapshot/app_b5917fc4-9fc2-4d51-b754-4f08cd02ea41","/mnt/cloudronbackup/2024-10-01-080000-722/app_nextcloud.rotovegas.nz_v4.22.4"]
    Oct 01 21:02:50 box:shell copy: cp with args -dRl /mnt/cloudronbackup/snapshot/app_b5917fc4-9fc2-4d51-b754-4f08cd02ea41 /mnt/cloudronbackup/2024-10-01-080000-722/app_nextcloud.rotovegas.nz_v4.22.4 errored RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stderr maxBuffer length exceeded
    [no timestamp]  at Socket.onChildStderr (node:child_process:519:14)
    [no timestamp]  at Socket.emit (node:events:518:28)
    [no timestamp]  at addChunk (node:internal/streams/readable:559:12)
    [no timestamp]  at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    [no timestamp]  at Readable.push (node:internal/streams/readable:390:5)
    [no timestamp]  at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
    [no timestamp]  code: 'ERR_CHILD_PROCESS_STDIO_MAXBUFFER',
    [no timestamp]  cmd: 'cp -dRl /mnt/cloudronbackup/snapshot/app_b5917fc4-9fc2-4d51-b754-4f08cd02ea41 /mnt/cloudronbackup/2024-10-01-080000-722/app_nextcloud.rotovegas.nz_v4.22.4'
    [no timestamp]  }
    Oct 01 21:02:50 box:backuptask copy: copied to 2024-10-01-080000-722/app_nextcloud.rotovegas.nz_v4.22.4 errored. error: copy errored with code ERR_CHILD_PROCESS_STDIO_MAXBUFFER message stderr maxBuffer length exceeded
    Oct 01 21:02:50 box:taskworker Task took 169.826 seconds
    Oct 01 21:02:50 box:tasks setCompleted - 6137: {"result":null,"error":{"stack":"BoxError: copy errored with code ERR_CHILD_PROCESS_STDIO_MAXBUFFER message stderr maxBuffer length exceeded\n at Object.copy (/home/yellowtent/box/src/storage/filesystem.js:173:26)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","name":"BoxError","reason":"External Error","details":{},"message":"copy errored with code ERR_CHILD_PROCESS_STDIO_MAXBUFFER message stderr maxBuffer length exceeded"}}
    Oct 01 21:02:50 box:tasks update 6137: {"percent":100,"result":null,"error":{"stack":"BoxError: copy errored with code ERR_CHILD_PROCESS_STDIO_MAXBUFFER message stderr maxBuffer length exceeded\n at Object.copy (/home/yellowtent/box/src/storage/filesystem.js:173:26)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","name":"BoxError","reason":"External Error","details":{},"message":"copy errored with code ERR_CHILD_PROCESS_STDIO_MAXBUFFER message stderr maxBuffer length exceeded"}}
    [no timestamp]  copy errored with code ERR_CHILD_PROCESS_STDIO_MAXBUFFER message stderr maxBuffer length exceeded
    [no timestamp]  at Object.copy (/home/yellowtent/box/src/storage/filesystem.js:173:26)
    [no timestamp]  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    

    Ideas on what to do to fix it? Previously I have just deleted the snapshot folder on the destination, but the reasons for the error were different.

    1 Reply Last reply
    1
    • A Offline
      A Offline
      AartJansen
      wrote on last edited by
      #2

      Deleting the snapshot folder in the destination did again fix the issue.

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

        Hm this looks like the backup task is running out of STDIO buffer when performing the backup snapshot rotation. If that is the case, then I don't understand why deleting the snapshot folder would help here. But good if it works again for a start.

        I think for next release we have to check the spawning of that copy process to ensure buffers are not exhausted.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AartJansen
          wrote on last edited by AartJansen
          #4

          I don't know what STDIO buffer is, its all happening on 1 Gb LAN cloudron server PC to QNAP NAS via SMB/CIFS share, if that helps.

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

            @AartJansen we use a function called "child_process.exec" in nodejs. When you execute a command the process writes to stdout and stderr . These outputs are captured by nodejs in internal variables. In nodejs, there is a limit to how much is stored in these internal variables. That makes sense because you don't want to capture large MBs of output into internal variables. This will just crash everything. When executing cp in the backup, the output seems very large and exhausts the size limit and nodejs kills the backup. This is the bug and what @nebulon means by STDIO buffer ...

            Now, the issue remains is why cp is giving any output at all. I suspect it is emitting some warning like "cannot preserve permissions" because of the filesystem .

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AartJansen
              wrote on last edited by
              #6

              Would it be more robust to use NFS ?

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

                @AartJansen In this specific case, it might help because cp will not emit lines of stderr because of NFS (NFS supports all file attributes/permissions) . But ultimately, this is still a Cloudron bug, we are fixing it

                1 Reply Last reply
                2
                • girishG girish marked this topic as a question on
                • A Offline
                  A Offline
                  AartJansen
                  wrote on last edited by AartJansen
                  #8

                  Thats great that you are fixing it, however in the meantime I'd like to have good backups 🙂

                  I did change the format from tgz to rsync also. Would that play a role?

                  girishG 1 Reply Last reply
                  0
                  • A AartJansen

                    Thats great that you are fixing it, however in the meantime I'd like to have good backups 🙂

                    I did change the format from tgz to rsync also. Would that play a role?

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

                    @AartJansen yes, tgz should not have the issue

                    1 Reply Last reply
                    1
                    • A Offline
                      A Offline
                      AartJansen
                      wrote on last edited by
                      #10

                      Awesome, I couldn't get NFS to mount, so just set the tarball option instead, thanks.

                      1 Reply Last reply
                      0
                      • girishG girish has marked this topic as solved on
                      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