• Resolved davelikescoffee

    (@davelikescoffee)


    Hello,
    I have just re-connected BackWPup with my Dropbox account but every attempt to run my backup job fails with the following error:

    [INFO] BackWPup 3.10.0; A project of Inpsyde GmbH

    [08-Sep-2021 16:26:23] 1. Try to send backup file to Dropbox …
    [08-Sep-2021 16:26:23] Authenticated with user’s Dropbox: Username
    [08-Sep-2021 16:26:23] Uploading to Dropbox …
    [08-Sep-2021 16:26:23] Beginning new file upload session
    [08-Sep-2021 16:27:24] /home/user/public_html/wp-content/plugins/backwpup/src/Http/Client/WpHttpClient.php: Dropbox API: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received

    It tries this 3 times with the same error each time then aborts the job. I have deleted the dropbox authentication in the job and reconnected it (using the first option of allowing access to App only, not full access to Dropbox). It still has the same error.

    Any idea on how to fix this?
    Thanks!

Viewing 15 replies - 1 through 15 (of 48 total)
  • Plugin Support happyAnt

    (@duongcuong96)

    hello @davelikescoffee
    Sorry about the issue you got, the issue is not related to BackWPUp but actually caused by the server network, please ask your host if there is a firewall or security module that could block the outgoing cURL requests, in this case, block the connection to dropbox API server. The hoster should resolve the issue for you.
    Hope that it could help ^^

    I’m getting the same thing. Dropbox API: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received

    Would this be related to WordFence?

    Hello
    same issue here ??
    wp-content/plugins/backwpup/src/Http/Client/WpHttpClient.php: API DropBox : cURL error 28: Operation timed out after 2000 milliseconds with 0 bytes received

    i have to revert to v3.9.0 to be able to send to dropbox.
    im using itheme security

    if curl dont work on some hosts cant you add a fallback ? (it was working well on v3.9)

    It’s happening on ALL my client sites (20) all of a sudden.

    Same here. No problems with the previous version of BackWPUp, but sporadic issues with sites that I’ve updated to the latest version. Not all sites, not all of the time, but each night about 3/10 sites fail with this error.

    I’ve checked with my hosting provider, and there’s nothing at their end which might suddenly be causing this.

    Hi,

    Using the paid version, facing the same issue since the upgrade, but not on all operations saving to dropbox. It seems to occur on big ones when trying to upload a huge archive (~2.5G).

    End of log looks like this :

    [11-Sep-2021 02:53:00] Uploading 4 MB of data
    [11-Sep-2021 02:53:00] Call to files/upload_session/append_v2 with 4 MB of data, with parameters {"cursor":{"session_id":"pid_upload_session:xxxxxxxxxxxxxx","offset":2323644416}}
    [11-Sep-2021 02:53:02] Call to files/upload_session/append_v2 with 4 MB of data, with parameters {"cursor":{"session_id":"pid_upload_session:xxxxxxxxxxxxxx","offset":2332033024}}
    [11-Sep-2021 02:53:04] Uploading 4 MB of data
    [11-Sep-2021 02:53:04] Call to files/upload_session/append_v2 with 4 MB of data, with parameters {"cursor":{"session_id":"pid_upload_session:xxxxxxxxxxxxxx","offset":2327838720}}
    [11-Sep-2021 02:53:06] Call to files/upload_session/append_v2 with 4 MB of data, with parameters {"cursor":{"session_id":"pid_upload_session:xxxxxxxxxxxxxx","offset":2336227328}}
    [11-Sep-2021 02:53:11] /home/www/xxxxxxxxxxxxxxxxxxxxxxx.com/wp-content/plugins/backwpup-pro/src/Http/Client/WpHttpClient.php: Dropbox API: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received
    [11-Sep-2021 02:53:11] ERROR: Step aborted: too many attempts!
    [11-Sep-2021 02:53:11] One old log deleted
    [11-Sep-2021 02:53:11] ERROR: Job has ended with errors in 3187 seconds. You must resolve the errors for correct execution.
    Thread Starter davelikescoffee

    (@davelikescoffee)

    Thanks @duongcuong96 for your comment and everyone else for your feedback!

    Well, I did NOT contact my hosting provider to make any changes but I got a notification this morning saying that the backup was successful. I just went in and was able to run the backup manually too.

    Looking closely I realise that the only change that has happened is that my WordPress version has updated from 5.8 to 5.8.1. Perhaps that has made the difference as all of my failed backups earlier this week used WordPress 5.8.

    Is BackWPup 3.10.0 dependent on WordPress 5.8.1?

    Relevant log:

    [INFO] BackWPup 3.10.0; A project of Inpsyde GmbH
    [INFO] WordPress 5.8.1 on https://websitename
    [INFO] Log Level: Normal (translated)
    
    [11-Sep-2021 10:49:05] 1. Trying to create backup archive …
    [11-Sep-2021 10:49:05] Compressing files as Tar. Please be patient, this may take a moment.
    [11-Sep-2021 10:49:38] Backup archive created.
    [11-Sep-2021 10:49:38] Archive size is 326.32 MB.
    [11-Sep-2021 10:49:38] 12302 Files with 317.08 MB in Archive.
    [11-Sep-2021 10:49:39] 1. Try to send backup file to Dropbox …
    [11-Sep-2021 10:49:39] Token has expired; new token has been obtained
    [11-Sep-2021 10:49:39] Authenticated with user's Dropbox: Username
    [11-Sep-2021 10:49:39] Uploading to Dropbox …
    [11-Sep-2021 10:49:39] Beginning new file upload session
    [11-Sep-2021 10:50:07] Token has expired; new token has been obtained
    [11-Sep-2021 10:50:35] Token has expired; new token has been obtained
    [11-Sep-2021 10:51:04] Token has expired; new token has been obtained
    [11-Sep-2021 10:51:32] Token has expired; new token has been obtained
    [11-Sep-2021 10:52:02] Token has expired; new token has been obtained
    [11-Sep-2021 10:52:30] Token has expired; new token has been obtained
    [11-Sep-2021 10:52:59] Token has expired; new token has been obtained
    [11-Sep-2021 10:53:29] Token has expired; new token has been obtained
    [11-Sep-2021 10:53:35] Finishing upload session with a total of 326 MB uploaded
    [11-Sep-2021 10:53:36] Backup transferred to /websitename/2021-09-11_10-49-04_PSCNMJWP01.tar
    [11-Sep-2021 10:53:38] One file deleted from Dropbox
    [11-Sep-2021 10:53:39] 1. Trying to check database …
    [11-Sep-2021 10:53:39] Database check done!
    [11-Sep-2021 10:53:39] One old log deleted
    [11-Sep-2021 10:53:39] Job done in 275 seconds.

    Maybe it has to do with the PHP session timeout? All mine failed today with the same error.

    OK so I only had one site fail last night, and this one site had failed every day since I updated.

    I deleted the Dropbox authentication on this site and then reinstated it, and manually ran the backup again. This time, it worked.

    So maybe worth trying this for any backups which are failing? I’ll be interested to see whether there’s any difference tonight when WP Cron kicks the same job off.

    … nope – when the automated job ran last night it failed again on that same site.

    One idea: this is quite a large backup (265MB); could it be that the token is expiring mid-upload?

    I just tried twice to run the same job manually. First time it failed with the above error, in a 199 second run-time. Second time it worked, and took 166 seconds. Any help?

    • This reply was modified 3 years, 2 months ago by marknjones.

    Hello,

    I do have exactly the same error-messages.
    Some details about it:
    – We do have an Dropbox PLUS account.
    Small Backups (just the database < 100MB) often work
    Big Backups (with file backup, several GB) always fail after some seconds
    – WP 5.8.1 Plugin 3.10.0

    [14-Sep-2021 10:13:42] Backup wurde erstellt.
    [14-Sep-2021 10:13:42] Archivgr??e ist 2,44 GB.
    [14-Sep-2021 10:13:42] 31977 Dateien mit 2,73 GB im Archiv.
    [14-Sep-2021 10:13:43] 1. Versuche, das Backup zur Dropbox zu senden …
    [14-Sep-2021 10:13:43] Token ist abgelaufen; neues Token wurde erhalten
    [14-Sep-2021 10:13:43] Authentifiziert mit der Dropbox von: ABC
    [14-Sep-2021 10:13:43] Hochladen zur Dropbox hat begonnen …
    [14-Sep-2021 10:13:44] Beginne neue Datei-Upload Session
    [14-Sep-2021 10:14:12] Token ist abgelaufen; neues Token wurde erhalten
    [14-Sep-2021 10:14:40] Token ist abgelaufen; neues Token wurde erhalten
    [14-Sep-2021 10:15:10] Token ist abgelaufen; neues Token wurde erhalten
    [14-Sep-2021 10:15:17] /xyz/wp-content/plugins/backwpup/src/Http/Client/WpHttpClient.php: Dropbox-API: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received
    [14-Sep-2021 10:15:18] 2. Versuche, das Backup zur Dropbox zu senden …
    [14-Sep-2021 10:15:19] Token ist abgelaufen; neues Token wurde erhalten
    [14-Sep-2021 10:15:19] Authentifiziert mit der Dropbox von: ABC
    [14-Sep-2021 10:15:19] Hochladen zur Dropbox hat begonnen …
    [14-Sep-2021 10:15:24] /xyz/wp-content/plugins/backwpup/src/Http/Client/WpHttpClient.php: Dropbox-API: cURL error 28: Operation timed out after 5008 milliseconds with 0 bytes received
    [14-Sep-2021 10:15:25] 3. Versuche, das Backup zur Dropbox zu senden …
    [14-Sep-2021 10:15:25] Token ist abgelaufen; neues Token wurde erhalten
    [14-Sep-2021 10:15:26] Authentifiziert mit der Dropbox von: ABC
    [14-Sep-2021 10:15:26] Hochladen zur Dropbox hat begonnen …
    [14-Sep-2021 10:15:42] /xyz/wp-content/plugins/backwpup/src/Http/Client/WpHttpClient.php: Dropbox-API: cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received
    [14-Sep-2021 10:15:43] 4. Versuche, das Backup zur Dropbox zu senden …
    [14-Sep-2021 10:15:43] Token ist abgelaufen; neues Token wurde erhalten
    [14-Sep-2021 10:15:44] Authentifiziert mit der Dropbox von: ABC
    [14-Sep-2021 10:15:44] Hochladen zur Dropbox hat begonnen …
    [14-Sep-2021 10:15:51] /xyz/wp-content/plugins/backwpup/src/Http/Client/WpHttpClient.php: Dropbox-API: cURL error 28: Operation timed out after 5005 milliseconds with 0 bytes received
    [14-Sep-2021 10:15:52] 5. Versuche, das Backup zur Dropbox zu senden …
    [14-Sep-2021 10:15:52] Token ist abgelaufen; neues Token wurde erhalten
    [14-Sep-2021 10:15:52] Authentifiziert mit der Dropbox von: ABC
    [14-Sep-2021 10:15:52] Hochladen zur Dropbox hat begonnen …
    [14-Sep-2021 10:16:21] Token ist abgelaufen; neues Token wurde erhalten
    [14-Sep-2021 10:16:40] /xyz/wp-content/plugins/backwpup/src/Http/Client/WpHttpClient.php: Dropbox-API: cURL error 28: Operation timed out after 5008 milliseconds with 0 bytes received
    [14-Sep-2021 10:16:41] FEHLER: Schritt abgebrochen: zu viele Versuche!
    [14-Sep-2021 10:16:41] 1. Versuche, die Datenbank zu prüfen …
    [14-Sep-2021 10:16:42] Datenbank-Check fertig!
    [14-Sep-2021 10:16:42] Eine alte Log-Datei gel?scht
    [14-Sep-2021 10:16:42] FEHLER: Job mit Fehlern beendet in 8266 Sekunden. Um eine korrekte Ausführung zu gew?hrleisten, musst du die Fehler beheben.
    Plugin Support happyAnt

    (@duongcuong96)

    @snoffel @marknjones @mossifer @davelikescoffee @carsso

    Really sorry about the delayed response, we has been really busy last week.
    About the Dropbox timeout issue in 3.10.0, in this version we use the native WordPress Http class, so by default, it is set to 5 seconds, which is too short.
    Please install this little plugin to extend that timeout and the issue should be gone:
    https://www.dropbox.com/s/dvcds90xiyg97x2/extend-wp-http-timeout.zip?dl=0
    Or you can directly insert these lines into your theme functions.php:

    function __extend_http_request_timeout( $timeout ) {
        return 60;
    }
    add_filter( 'http_request_timeout', '__extend_http_request_timeout' );

    I’m sorry again for any inconvenient that caused to you ??

    Thanks for this. It would be onerous to add this on 50+ sites. Will that change be made to an imminent future version of backwpup? Before the long-lasting Dropbox tokens are deprecated?

    I had the issue happen again last night on three sites with small backups.

    Thanks @duongcuong96!

    I can confirm: this patch works!!

    So this is the new way Dropbox wants to work with Tokens? In the logfile that looks weird: for my 2.44GB Backup it has 73 lines saying:

    [15-Sep-2021 09:29:50] Token ist abgelaufen; neues Token wurde erhalten

    (The whole Backup-Job took aprox. half an hour longer than last time, but this might have other reasons)

    Hey @duongcuong96,

    I don’t think universally extending the timeout for all http requests is a good solution here.

    Maybe you can implement your own filter with the next release, so that we can use that to extend the timeout concerning only your plugin?

    Cheers
    Florian

Viewing 15 replies - 1 through 15 (of 48 total)
  • The topic ‘Dropbox upload fails with cURL timeout error’ is closed to new replies.