WordPress.org

Ready to get started?Download WordPress

Forums

BackWPup Free - WordPress Backup Plugin
[resolved] Dropbox API: (35) Unsupported SSL protocol version (43 posts)

  1. hansopanso
    Member
    Posted 7 months ago #

    Hi,

    My site is backed up once a week but this night I had 3 errors. (all the same b.t.w.)

    [22-dec-2013 01:05:12] 1. Try to send backup file to Dropbox …
    [22-dec-2013 01:05:12] ERROR: Dropbox API: (35) Unsupported SSL protocol version

    The I noticed BackWPup got a new version. So I upgraded to 3.1 and tried to reauthenticate Dropbox.
    I got this error:
    Dropbox API: (35) Unsupported SSL protocol version

    Any idea how I can solve this?

    Cheers in advance.

    http://wordpress.org/plugins/backwpup/

  2. Edwin
    Member
    Posted 6 months ago #

    I got the same problem. It started on december 20th.
    Updated WP and Backwpup. I even uninstalled and reinstalled Backwpup.
    This did not solve the problem

  3. rpielanen
    Member
    Posted 6 months ago #

    Also having the same problem on just one of my websites using BackWPup

    Dropbox API: (35) Unsupported SSL protocol version

    Hoping for a fix :)

  4. hansopanso
    Member
    Posted 6 months ago #

    I thought it was a single problem for one of my sites. But.... unfortunately the same occurs on other sites too. Please help.

  5. johanna2patricia
    Member
    Posted 6 months ago #

    I have the same problem on all my WP sites. After the last upgrade of Backwpup the backup isn't saved in my Dropbox account due to the SSL: error.
    What can we do?

  6. Misterwillem
    Member
    Posted 6 months ago #

    Same problem here, not able to back-up 3 sites.

    Merry Christmas api error 35

  7. Edwin
    Member
    Posted 6 months ago #

    I am surprised nobody from support of Backwpup has responded yet. Seeing all the problems posted here seems to me that this is not issue related to one site of hosting-eviroment.
    If Dropbox changed the API this should be addressed by BackWPup.

    Makes me think what the quality of the Pro plugin would be and if that version has decent support.

    As of now I will stop using Backupwp.

  8. pumpkineater
    Member
    Posted 6 months ago #

    Same problem here. Tested with previous and recent version of the Plugin

    I noticed the problem after libssl got updated on my Debian server, but I m not sure if this is related to the Dropbox API error

  9. Caspar
    Member
    Plugin Author

    Posted 6 months ago #

    We’re still working on reproducing that particular behavior. The fact we haven’t been able to reproduce it yet might say less about the quality of another product than it does about the quality of the error.
    Any supportive feedback on solving the issue is greatly appreciated. BackWPup has an open GitHub repository for those of you who’d like to contribute and know how to interact on GitHub.

  10. pumpkineater
    Member
    Posted 6 months ago #

    I see in inc/class-destination-dropbox.php that SSL v3 is forced
    curl_setopt( $ch, CURLOPT_SSLVERSION, 3 );
    and
    curl_setopt( $ch, CURLOPT_CAINFO, BackWPup::get_plugin_data( 'plugindir' ) . '/vendor/cacert.pem' );

    could this problem be related to the certificates ?

    or blame dropbox anyway ;-)

  11. Daniel Hüsken
    Member
    Plugin Author

    Posted 6 months ago #

    Hello can you please test the Beta under https://github.com/inpsyde/backwpup ?

  12. Buggy22
    Member
    Posted 5 months ago #

    Hello! I have the same problem with message 'DropBox API: (35) Unsupported SSL protocol version', I try to test the Beta under https://github.com/inpsyde/backwpup as Daniel said, but the message still the same.

  13. pumpkineater
    Member
    Posted 5 months ago #

    As Daniel suggested, I cloned the backwpup source from github.
    plugin version 3.1.2-beta

    Dropbox re-authentication still gives error msg:

    API:(35) Unsupported SSL protocol version

    but I noticed whilst forcing a test backup run, that I get the error msg:

    The HTTP response test get an error "SSL certificate problem: self signed certificate"

    Yes, I m using a self signed certificate.
    So I wonder if all those that experience the 'Unsupported SSL protocol version' issue are using self signed certificates...

    UPDATE
    the self signed certificate issue seems not to be Dropbox related, but a problem introduced in backwpup release > 3.08
    It occurs even if I try to backup to a local server folder.

    I was still using 3.08 but had NOT this issue.
    So now I have both SSL handshake issues, the Dropbox AND the SSL certicicate, aaaaargh !!

  14. hansopanso
    Member
    Posted 5 months ago #

    Using 3.1.1 and the last back-up was 6 weeks ago. (before upgrading)
    Tried uninstalling and reinstalling the plugin. Deleted the app authentication in Dropbox. When connecting to Dropbox the API error occurs. No "apps linked" in Dropbox is being created!

    For now I installed "WordPress Backup to Dropbox". This connects directly to Dropbox and an "apps linked" in Dropbox is visible. However this has considerably less options.

    Like everyone else....hoping for a solution.

    Cheers for all your work!

    edit: btw. When backing up to a directory, everything works fine.

  15. pumpkineater
    Member
    Posted 5 months ago #

    In regards to my self-signed certificate issue, I added this certificate on the server to ca-certificates :-0
    Still have to test with backwpup, but this is off topic..

  16. pumpkineater
    Member
    Posted 5 months ago #

    after doing extensive testing :

      version 3.1.2.beta issues:

    • Dropbox API :(35) Unsupported SSL protocol version
    • SSL certificate problem: self signed certificate""
      version 3.1.1 issues:

    • Dropbox API :(35) Unsupported SSL protocol version
    • SSL certificate problem: self signed certificate
      version 3.0.13 issues:

    • Dropbox API :(35) Unsupported SSL protocol version
    • likely JQuery event handler conflict with other plugin
      version 3.0.8 issue:

    • Dropbox API :(35) Unsupported SSL protocol version

    I can live for the moment with the Dropbox issue, but the self signed certificate is a show stopper since I cannot even run a backup job to a local server folder. If the latter is a curl problem, I would like to know what has changed in backwup > 3.0.13 (I will create new forum thread)

    So I have to stick with 3.08 : -(

  17. Daniel Hüsken
    Member
    Plugin Author

    Posted 5 months ago #

    Hello,
    can u test the 3.1.2-bet2 again? I have changed the special things for Dropbox cert.

  18. ckarich
    Member
    Posted 5 months ago #

    hi Daniel,
    I tried 3.1.2-bet2.
    still the same error :-(

    Dropbox API: (35) Unsupported SSL protocol version

    isnt there a usefull way to debug the error?

  19. ckarich
    Member
    Posted 5 months ago #

    seems to be a known bug in the latest curl update - see http://sourceforge.net/p/curl/bugs/1319/

    maybe its gone with the next release

  20. pumpkineater
    Member
    Posted 5 months ago #

    I pulled the latest src updates from the git repo.
    Nop, still Dropbox API: (35) Unsupported SSL protocol version :-(

    Would it be possible BTW to add a flag such that this release of backwup would work again on a host with a self signed SSL certificate (so in src use of curl -k). As it did work up till 3.08

  21. Daniel Hüsken
    Member
    Plugin Author

    Posted 5 months ago #

    Hello, i changed the version on Github again. now you can add a filter
    add_filter( 'backwpup_cacert_bundle', '__return_false' ); to disable ssl securty functions.

  22. rpielanen
    Member
    Posted 5 months ago #

    Hi Daniel,

    Is your last post a work-around to get dropbox working?
    Where do i put this, in which functions file? The plugin or the theme?

    Thanks!

  23. ckarich
    Member
    Posted 5 months ago #

    i temporarily commented out all occurences of

    curl_setopt( $ch, CURLOPT_SSLVERSION, 3 )

    in inc/class-destination-dropbox.php

    this made the errormsg with unsupported ssl version go away but brings me to a new error message after the dropbox login:

    Dropbox API: (77) error setting certificate verify locations: CAfile: /var/www/localhost/htdocs/_wp/wp-content/plugins/backwpup-master/vendor/dropbox-trusted-cert.crt CApath: /var/www/localhost/htdocs/_wp/wp-content/plugins/backwpup-master/vendor/

    Using:

    • WordPress version 3.8.1
    • BackWPup version 3.1.2-beta3
    • PHP version 5.5.7-pl0-gentoo
    • MySQL version 5.1.70
    • cURL version 7.34.0
    • cURL SSL version OpenSSL/1.0.1e

    Edit:
    After copying the dropbox-trusted-cert.crt to ./vendor it worked.
    File seems to be missing in 3.1.2-beta3 but is included in 3.1.2-beta2.

  24. Daniel Hüsken
    Member
    Plugin Author

    Posted 5 months ago #

    Hello, Sorry i have forgotten to remove two lines.

    @rpielanen: you need the version from Github and wirt a plugin like:

    <?php
    /**
     * Plugin Name: Disable BackWPup SSL cer bundle
     * Description: Reduce security for SSL connections
     * Author: You
     * Version: 0.0.1
     */
    if ( ! defined( 'ABSPATH' ) )
     exit;
    
    /**
     * Load plugin.
     *
     */
    function mp14211510() {
    
     add_filter( 'backwpup_cacert_bundle', '__return_false' );
    
    }
    add_action( 'plugins_loaded', 'mp14211510' );
  25. pumpkineater
    Member
    Posted 5 months ago #

    I created a plugin to 'extend' the backwpup plugin (3.1.2beta3) almost exactly as suggested by Daniel:

    if ( ! defined( 'ABSPATH' ) ) exit;
    
    function insecure_backwpup() {
     if (has_filter('backwpup_cacert_bundle')) {
       add_filter( 'backwpup_cacert_bundle', '__return_false', -1000);
      }
    }
    
    add_action( 'plugins_loaded', 'insecure_backwpup' );

    I network activated the created plugin (I am running wp multi-site)

    Dropbox authentication in backwpup seems to be working : )
    But whether or not I activate the plugin filter doesn't seem to make any difference (??)

    In previous releases however (3.0.13) I still got the Unsupported SSL protocol version issue even with just Dropbox re-authentication, not anymore in 3.1.2beta3

    Unfortunately I cannot run any backup job still, since this issue with the self-signed SSL certificate, introduced I guess in backwpup 3.1.x has not been solved (for me)

    Will checkout workaround as suggested by ckarich shortly

    testing with:
    wp 3.8.1 multi-site
    php 5.4.24
    mysql 5.5.30
    curl 7.34.0
    openssl 1.0.1e

  26. Daniel Hüsken
    Member
    Plugin Author

    Posted 5 months ago #

    @pumpkineater: if (has_filter('backwpup_cacert_bundle')) { can not work because ther is no filter rigesterd for this hook as default.

    If the filter set to false it will do the same as ckarich suggest.

  27. pumpkineater
    Member
    Posted 5 months ago #

    @Daniel

    the if (has_filter('backwpup_cacert_bundle')) condition evaluates to TRUE, so add_filter statement is executed anyway

    Anyway, does this filter 'solve' the issue with Dropbox for some users?
    I can't test it at the moment..

  28. Daniel Hüsken
    Member
    Plugin Author

    Posted 5 months ago #

    @pumpkineater: it should solve it i hope. But i can'T reproduce the problem on my servers.

  29. ckarich
    Member
    Posted 5 months ago #

    curl 7.35.0 has been released (http://curl.haxx.se/changes.html#7_35_0)

    couldnt try it out yet, because it not yet in my distros package management system.

    it should fix the error 35 problem without any workarounds (filters, plugins, commenting out sections) - atleast thats my understanding of the underlying curl-problem. maybe anyone could test it and report back.

  30. pumpkineater
    Member
    Posted 5 months ago #

    @ckarich, thanks for the info

    I get the 35 error with wp/backwpup plugin (no workaround applied) but I can't replicate the error by curl -I -3 https://www.google.com/ , which should with curl 7.34.0 currently still installed on my server....

    I am not so keen at the moment to put the server in a poor state by installing curl 7.35 from source with broken dependencies

Reply »

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.