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


    Cloudron Forum

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

    Solved Backup failed: Task 39 timed out.

    Support
    backups timeout wasabi
    7
    12
    507
    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.
    • zjuhasz
      zjuhasz last edited by girish

      My backups are failing to complete with the error task 39 timed out. I'm using Wasabi and have about 300GB backup size. It always fails at a little less than 83%.

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        Do you have an idea how long that task ran before timing out? The current task timeout should be set to 12h, maybe that is not enough in your case?

        zjuhasz 1 Reply Last reply Reply Quote 0
        • scooke
          scooke last edited by scooke

          Who know if this is related, but I had backups start failing a little while ago. I turned off a few apps that seemed to be culprits, and narrowed it down by running backups. If it failed, I turned off another app until it succeeded. Then I turned back on those apps to see which would trigger the fail. Long story short, I tracked it down to some images in a Wordpress Uploads directory, deleted those images, added the app back onto the Backup list, and then it worked. If I remember correctly it had something to do with a corrupted jpeg/jpg/JPG/JPEG (the suffixes matter, sometimes). Anyways, it is a hassle but you might have to do similar sleuthing. This is one reason I use another 'cloud-' service, cloudinary.com. The free tier has been perfect.

          A life lived in fear is a life half-lived

          1 Reply Last reply Reply Quote 1
          • zjuhasz
            zjuhasz @nebulon last edited by

            @nebulon that's probably it. It seems like it's happening right around 12 hours. Is there a setting I can change for the timeout?

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

              @zjuhasz It's hardcoded. For now, you can edit /home/yellowtent/box/src/backups.js . In line 1217 it says

                      tasks.startTask(taskId, { timeout: 12 * 60 * 60 * 1000 /* 12 hours */ }, function (error, backupId) {
              

              Change the above time to say 20 hours or something

                      tasks.startTask(taskId, { timeout: 20 * 60 * 60 * 1000 /* 20 hours */ }, function (error, backupId) {
              

              After changing, do a sudo systemctl restart box.

              (I am looking for a better fix to this in Cloudron 5.5)

              zjuhasz S 2 Replies Last reply Reply Quote 2
              • zjuhasz
                zjuhasz @girish last edited by

                @girish OK, just finished backup after changing the timeout value and it's not timing out anymore but I am getting a new error. I put in *** instead of the long encrypted app name.

                Error uploading backup/snapshot/app.***.tar.gz.enc. Message: Part number must be an integer between 1 and 10000, inclusive HTTP Code: InvalidArgument

                d19dotca 1 Reply Last reply Reply Quote 0
                • d19dotca
                  d19dotca @zjuhasz last edited by

                  @zjuhasz Shouldn't it just be backup/snapshot/app.*.tar.gz.enc (one asterisk)?

                  --
                  Dustin Dauncey
                  www.d19.ca

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

                    I am guessing this is because of the large file size (> 5GB is the S3 limit) and we do a multi-part upload and Wasabi is unable to handle it. Can you check with them how many parts of a multi-part upload they support? And what part size they recommend? We have to then find out if they are capable of handling 300GB files as well.

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

                      @girish Seems to be the same <5GB part size and 1000 part limit. They support some other mechanisms though not included in s3 composing objects and appending to objects. Why is Cloudron is going over 1000 5GB parts on a 300GB upload?

                      I don't have any particular preference for Wasabi though I just chose them because they were the cheapest I could find and I'm expecting my backups to get quite large over time. While we investigate Wasabi could you recommend a storage provider? The one that is the most well tested. Would it be Amazon?

                      marcusquinn 1 Reply Last reply Reply Quote 0
                      • marcusquinn
                        marcusquinn @zjuhasz last edited by

                        @zjuhasz Guessing that all the S£ compatible providers may all have the same limits. We have 120TB on Wasabi with other systems and always been happy with Backblaze B2 too, also S3 compatible and Cloudron integrated and tested now (I only tested smaller though) if that helps.

                        We're not here for a long time - but we are here for a good time :)
                        Jersey/UK
                        Work & Ecommerce Advice: https://brandlight.org
                        Personal & Software Tips: https://marcusquinn.com

                        1 Reply Last reply Reply Quote 0
                        • S
                          shan @girish last edited by shan

                          @girish I've been using this method of manually editing the js file to a longer timeout for a while now for my uploads and as of the most recent update this no longer works. Any ideas?

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

                            @shan I will mark this thread as solved. Let's follow up at https://forum.cloudron.io/topic/7750/backup-uploads-time-out-after-12-hours-can-no-longer-manually-adjust-timeout-to-be-longer

                            1 Reply Last reply Reply Quote 0
                            • Topic has been marked as a question  girish girish 
                            • Topic has been marked as solved  girish girish 
                            • First post
                              Last post
                            Powered by NodeBB