• 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 - 16 through 30 (of 48 total)
  • Plugin Support happyAnt

    (@duongcuong96)

    Hello @florianziegler
    Yes you totally right, it’s really just a workaround solution and will be fixed in the next update.
    Thank you!

    @duongcuong96

    So maybe it would be a good idea to do this a a quick fix and publish the new release in some near future, since the plugin doesn’t work currently…? ??

    WpHttpClient.php: Dropbox-API: cURL error 28: Operation timed out after 5001 milliseconds with 0 bytes received

    I have the same mistake. When will there be an update? Currently you cannot use the plugin, or?

    A few days ago friends said that you can no longer make backups because an error always occurs. Maybe I was hoping for a more temporary bug. But the bug is from the plugin, right?
    A friend had already asked the server host and they didn’t change anything on the server.

    Plugin Support happyAnt

    (@duongcuong96)

    @djpd please back to page 1 then you will see the solution.
    Thank you!

    Ah ok. Thanks very much.
    I just thought that this was just a temporary solution and that it would have to be reversed after the next update.
    Since the problem will affect many, I thought that an update will be available soon. But if you say it is worth installing this short-term solution first, because no update is to be expected at first.
    Greetings

    Any update as to when this fix will be incorporated into the main plugin, and rolled-out, please?

    Rasti Tkac

    (@rastiwebkinder)

    @duongcuong96 I tried the fix you recommended, but it doesn’t seem to solve the problem. The tokens are still expiring every 20 to 30 seconds.
    What else can be done here?

    [11-Oct-2021 10:01:08] Archivgr??e ist 834,94 MB.
    [11-Oct-2021 10:01:08] 20273 Dateien mit 1,03 GB im Archiv.
    [11-Oct-2021 10:01:08] 1. Versuche, das Backup zur Dropbox zu senden …
    [11-Oct-2021 10:01:08] Token has expired; new token has been obtained
    [11-Oct-2021 10:01:09] Authentifiziert mit der Dropbox von: Support Webkinder
    [11-Oct-2021 10:01:09] Hochladen zur Dropbox hat begonnen …
    [11-Oct-2021 10:01:09] Beginne neue Datei-Upload Session
    [11-Oct-2021 10:01:39] Token has expired; new token has been obtained
    [11-Oct-2021 10:02:06] Token has expired; new token has been obtained
    [11-Oct-2021 10:02:36] Token has expired; new token has been obtained
    [11-Oct-2021 10:03:06] Token has expired; new token has been obtained
    [11-Oct-2021 10:03:36] Token has expired; new token has been obtained
    [11-Oct-2021 10:04:05] Token has expired; new token has been obtained
    [11-Oct-2021 10:04:34] Token has expired; new token has been obtained
    [11-Oct-2021 10:05:04] Token has expired; new token has been obtained
    [11-Oct-2021 10:05:33] Token has expired; new token has been obtained
    [11-Oct-2021 10:06:02] Token has expired; new token has been obtained
    [11-Oct-2021 10:06:31] Token has expired; new token has been obtained
    [11-Oct-2021 10:06:58] Token has expired; new token has been obtained
    [11-Oct-2021 10:07:28] Token has expired; new token has been obtained
    [11-Oct-2021 10:07:57] Token has expired; new token has been obtained
    [11-Oct-2021 10:08:27] Token has expired; new token has been obtained
    [11-Oct-2021 10:08:57] Token has expired; new token has been obtained
    [11-Oct-2021 10:09:27] Token has expired; new token has been obtained
    [11-Oct-2021 10:09:56] Token has expired; new token has been obtained
    [11-Oct-2021 10:10:02] Upload beendet: Es wurden 835 MB hochgeladen
    [11-Oct-2021 10:10:04] Backup übertragen zu /Backups/fructus/fructus-weekly_2021-10-11_09-56-05_HHCC3VSY01.tar.gz
    
    Plugin Support happyAnt

    (@duongcuong96)

    Hello @rastiwebkinder
    The message you see is just a notice, will be removed in the next update, the backup should work fine and your file already got uploaded to Dropbox according to the log.

    duongcuong96’s solution fixed my problem (well, 1st retry anyway). I had no idea how to install a php plugin, so installed the code snippet into /public_html/wp-content/themes/twentyten/functions.php as suggested.

    hey @duongcuong96
    is there any news on when the new release is coming?

    Kulling Robert

    (@10rjulienk21)

    @duongcuong96
    @snoffel @marknjones @mossifer @davelikescoffee @carsso

    Amateur question
    In theme fuction.php, where should we insert the lines of code, at the beginning, at the end or wherever?
    Thank you for your reply

    carsso

    (@carsso)

    @10rjulienk21 anywhere in the file will work.

    Kulling Robert

    (@10rjulienk21)

    It worked really well. thank you so much

    extend-wp-http-timeout.zip does not work on my multisite installation, the timeout stay at 2sec.

    The workaround is to use ‘http_request_args’ filter and check the dropbox’s url to avoid changing the timeout globally
    If dont upload to dropbox you can check if $parsed_args[‘user-agent’] contain ‘BackWPup’

    add_filter( 'http_request_args', 'custom_http_request_args' ,10,2);
    function custom_http_request_args( $parsed_args, $url )
    {
        if($url==='https://content.dropboxapi.com/2/files/upload_session/append_v2') {
            $parsed_args['timeout']=60;
        }
        return $parsed_args;
    }
    
Viewing 15 replies - 16 through 30 (of 48 total)
  • The topic ‘Dropbox upload fails with cURL timeout error’ is closed to new replies.