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. Backuptask crashed

Backuptask crashed

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

    I get emails fairly regularly with this message and I'm not sure where I would begin to troubleshoot.

    { stack: 'BackupsError: Backuptask crashed\n at /home/yellowtent/box/src/backups.js:487:29\n at f (/home/yellowtent/box/node_modules/once/once.js:25:25)\n at ChildProcess.<anonymous> (/home/yellowtent/box/src/shell.js:70:9)\n at emitOne (events.js:116:13)\n at ChildProcess.emit (events.js:211:7)\n at ChildProcess.kill (internal/child_process.js:395:12)\n at Timeout.<anonymous> (/home/yellowtent/box/src/backups.js:503:12)\n at ontimeout (timers.js:475:11)\n at tryOnTimeout (timers.js:310:5)\n at Timer.listOnTimeout (timers.js:270:5)',
    name: 'BackupsError',
    reason: 'internal error',
    message: 'Backuptask crashed' }

    Possibly a memory issue?

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

      @timmmmyboy Yes, most likely. If you have a lot of data, the default tgz backend can only do so much. If you go to the backup settings (settings -> backup -> configure) just change the format to rsync. https://cloudron.io/documentation/backups/#backup-formats has more information on the formats.

      Also, the backup logs are located at /home/yellowtent/platformdata/backup/logs.txt.

      1 Reply Last reply
      0
      • timmmmyboyT Offline
        timmmmyboyT Offline
        timmmmyboy
        wrote on last edited by
        #3

        Thanks, I'll try switching to rsync and see if that resolves it. The log seems pretty bare (I'm backing up to DO Spaces but I believe the failures were happening even with local filesystem). Will check back in if it persists.

        1 Reply Last reply
        0
        • U Offline
          U Offline
          uiharu
          wrote on last edited by
          #4

          @girish I'm also facing a similar issue with my ~600GB nextcloud instance. I'm backing up to a (physically separate) minio instance, both tgz and rsync results in crashes. How may I further investigate? Are there instructions for doing manual backups? Thank you.

          1 Reply Last reply
          0
          • U Offline
            U Offline
            uiharu
            wrote on last edited by
            #5

            I finally upgraded cloudron by switching to no-op 😛

            1 Reply Last reply
            0
            • necrevistonnezrN Online
              necrevistonnezrN Online
              necrevistonnezr
              wrote on last edited by
              #6

              relates to the discussion here: https://forum.cloudron.io/topic/1288/support-encrypted-rsync-backups-to-onedrive-dropbox-etc/7

              I think Cloudron would benefit greatly from a working encrypted backup solution....

              1 Reply Last reply
              0
              • timmmmyboyT Offline
                timmmmyboyT Offline
                timmmmyboy
                wrote on last edited by
                #7

                FWIW switching to rsync fixed the original issue of this thread in my case. Figured I'd update here to let folks know.

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

                  @uiharu As you probably know, Cloudron always takes a complete app backup because updating an app. Overall, would you prefer that Cloudron have an option to disable backups a per-app level or would you prefer the backup to actually work?

                  1 Reply Last reply
                  0
                  • U Offline
                    U Offline
                    uiharu
                    wrote on last edited by
                    #9

                    @girish ofc we need a working (reliable) backup mechanism!

                    imo the current disable option is already good enough and allows me to easily go around backup errors that prevent upgrades etc.

                    Maybe...

                    • differential backup/hard-linking support for some remote backup destination will help with stability
                    • btrfs, zfs offers more stable snapshots and should be supported in the future
                    1 Reply Last reply
                    1
                    • necrevistonnezrN Online
                      necrevistonnezrN Online
                      necrevistonnezr
                      wrote on last edited by
                      #10

                      If I was to push an rsync cloudron backup to a remote location, it should be sufficient to backup the "snapshot" folder, correct? not the folder named "2018-05-XX-XXXXXXXX" as well.

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

                        @necrevistonnezr yes, correct. The snapshot directory is the "working directory" for backups. It gets rotated as-is into the timestamped directory. For filesystem, you will notice that the files between snapshot directory and time stamped directory are hard-links.

                        necrevistonnezrN 1 Reply Last reply
                        0
                        • girishG girish

                          @necrevistonnezr yes, correct. The snapshot directory is the "working directory" for backups. It gets rotated as-is into the timestamped directory. For filesystem, you will notice that the files between snapshot directory and time stamped directory are hard-links.

                          necrevistonnezrN Online
                          necrevistonnezrN Online
                          necrevistonnezr
                          wrote on last edited by
                          #12

                          @girish
                          rcloning the "snapshot" directory works. However, I'm getting two errors:

                          2018/06/04 13:57:51 ERROR : Attempt 3/3 failed with 2 errors and: invalidRequest: nameContainsInvalidCharacters: Path (/LiveFolders/cloudron/205.oDD_s5s39188-3p61-1336-5p10-p26tp62t1oo5/154.qnGn/134.uJGwLA/19.ilohv/251.cmkxxoBZBy/1.ZkzsoBuBkw PsxkxJox Exn foBCsmroBExq ) contains invalid trailing character.
                          
                          2018/06/04 13:57:51 Failed to sync: invalidRequest: nameContainsInvalidCharacters: Path (/LiveFolders/cloudron/205.oDD_s5s39188-3p61-1336-5p10-p26tp62t1oo5/154.qnGn/134.uJGwLA/19.ilohv/251.cmkxxoBZBy/1.ZkzsoBuBkw PsxkxJox Exn foBCsmroBExq ) contains invalid trailing character.
                          

                          Is that problematic in a case of restore?

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

                            @necrevistonnezr What rclone backend are you using? It looks like rclone is complaining that the backend does not like having files with a trailing whitespace.

                            necrevistonnezrN 2 Replies Last reply
                            0
                            • girishG girish

                              @necrevistonnezr What rclone backend are you using? It looks like rclone is complaining that the backend does not like having files with a trailing whitespace.

                              necrevistonnezrN Online
                              necrevistonnezrN Online
                              necrevistonnezr
                              wrote on last edited by
                              #14

                              @girish I'm using the Onedrive backend via the crypt backend (https://rclone.org/crypt/) and obfuscated file names.

                              1 Reply Last reply
                              0
                              • girishG girish

                                @necrevistonnezr What rclone backend are you using? It looks like rclone is complaining that the backend does not like having files with a trailing whitespace.

                                necrevistonnezrN Online
                                necrevistonnezrN Online
                                necrevistonnezr
                                wrote on last edited by
                                #15

                                @girish I also realized that the mysqldump for the TT-RSS app is huge (679 MB in my case). Could you implement some compession in the database dumps (and use PostgreSQL as recommended by the author)?

                                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