Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Backup failing with unspecified error

    Support
    backups
    4
    15
    88
    Loading More Posts
    • 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.
    • imc67
      imc67 @zjuhasz1 last edited by

      @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 Reply Quote 0
      • Z
        zjuhasz1 @imc67 last edited by

        @imc67 Are you using rsync?

        imc67 1 Reply Last reply Reply Quote 0
        • imc67
          imc67 @zjuhasz1 last edited by

          @zjuhasz1 yes

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @zjuhasz1 last edited by

            @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 Reply Quote 0
            • Z
              zjuhasz1 @girish last edited by

              @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.

              girish 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @zjuhasz1 last edited by

                @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 Reply Quote 0
                • Z
                  zjuhasz1 @girish last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • Z
                    zjuhasz1 @girish last edited by zjuhasz1

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

                    girish 1 Reply Last reply Reply Quote 0
                    • girish
                      girish Staff @zjuhasz1 last edited by

                      @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 Reply Quote 0
                      • robi
                        robi last edited by

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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post