• Hi

    I think that i have found a bug in xcloner.

    When i try to make a backup to remote storage and use webdav i get the message “error”. I have tested the connection and it shows that it is setup correctly. I tried to temporarily downgrade to xcloner 4.1.0, then the backup was transferred to the remote storage without the error message.

    This setup has worked before, but now with version 4.2.9 the backup to remote host with webdav is not working.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support jimiero

    (@jimiero)

    Hello,

    We released a new version please try updating, if issue still present, please open a separate ticket.

    Closing this for now.

    I encounter the same problem, even with the latest plugin version (4.2.13). The remote storage connection is verified without any problem, but uploading to it gives a red error message. Will this be fixed anytime soon?

    Whenever I try a new backup manually, everything goes fine until uploading it to my WebDav server. It says:

    parsererrorSyntaxError: Unexpected token < in JSON at position 0

    • This reply was modified 3 years, 7 months ago by antwoorden.

    Can you please check the XCloner logs from it’s dashboard, do you get any details on the error there? It could be that you are encountering a transfer timeout error, so i suggest in this case to setup a scheduled backup and see if that helps.

    Thanks for your quick reply. I’m having this problem for something like a month already using scheduled backups. The XCloner log shows this:

    [2020-09-03 11:42:55] xcloner_remote_storage.INFO: Transferring backup backup_kerkgeschiedenis.info-2020-09-03_11-42-51e2b.tar to remote storage WEBDAV [""] []
    [2020-09-03 11:42:56] php_system.ERROR: E_ERROR: array (   'type' => 1,   'message' => 'Uncaught Sabre\\HTTP\\ClientException: necessary data rewind wasn\'t possible in /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/http/lib/Client.php:327 Stack trace: #0 /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/http/lib/Client.php(114): Sabre\\HTTP\\Client->doRequest(Object(Sabre\\HTTP\\Request)) #1 /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/dav/lib/DAV/Client.php(367): Sabre\\HTTP\\Client->send(Object(Sabre\\HTTP\\Request)) #2 /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/league/flysystem-webdav/src/WebDAVAdapter.php(151): Sabre\\DAV\\Client->request(\'PUT\', \'https://theolog...\', Resource id #82934) #3 /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/league/flysystem-webdav/src/WebDAVAdapter.php(171): League\\Flysystem\\WebDAV\\WebDAVAdapte',   'file' => '/var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/http/lib/Client.php',   'line' => 327, ) [] []
    [2020-09-03 11:42:56] php_system.ERROR: E_ERROR: array (   'type' => 1,   'message' => 'Uncaught Sabre\\HTTP\\ClientException: necessary data rewind wasn\'t possible in /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/http/lib/Client.php:327 Stack trace: #0 /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/http/lib/Client.php(114): Sabre\\HTTP\\Client->doRequest(Object(Sabre\\HTTP\\Request)) #1 /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/dav/lib/DAV/Client.php(367): Sabre\\HTTP\\Client->send(Object(Sabre\\HTTP\\Request)) #2 /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/league/flysystem-webdav/src/WebDAVAdapter.php(151): Sabre\\DAV\\Client->request(\'PUT\', \'https://theolog...\', Resource id #82934) #3 /var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/league/flysystem-webdav/src/WebDAVAdapter.php(171): League\\Flysystem\\WebDAV\\WebDAVAdapte',   'file' => '/var/www/vhosts/kerkgeschiedenis.info/httpdocs/wp-content/plugins/xcloner-backup-and-restore/vendor/sabre/http/lib/Client.php',   'line' => 327, ) [] []

    I still have the same problem, even with the latest release… Any updates on this?

    Still no solution for this? The Webdav connection verifies just fine, but the backup can’t be transferred… both with manual and automatic backups.

    Plugin Author watchful

    (@watchful)

    Can you describe more about what service you are using?

    StackStorage WebDAV (from TransIP.nl)
    It worked fine before!

    Plugin Support jimiero

    (@jimiero)

    Hello,

    In order to investigate this we need you to provide us wordpress admin access.

    Please create an admin account on your website for us, and send these details to hello@watchful.net

    Please include:

    an wordpress admin user/password

    Webdav required connection details.

    Please before providing them make sure you have a full working website backup saved, providing them means you’ve read and understood this.

    Regards

    After debugging the webdav library dependency we have in place, i’ve found two issues:

    1. the Webdav Base Url needs to be always without any suffixes, like http://webdav.site.com and NOT http://webdav.site.com/remote/…/
    2. the Webdav Target Dir can contain the missing suffix, like remote/…/backups for instance

    this should solve the “Could not rewind…” error.

    The second problem seems to be related to a bug in the webdav sabre library dependency we have in place, where when a backup file is uploaded, it’s size will be zero, we have opened a issue here https://github.com/sabre-io/http/issues/153

    I’ve posted the fixes in our dev package here https://github.com/watchfulli/XCloner-Wordpress/archive/milestone4.2.16.zip , feel free to let me know if you have anymore issues

    • This reply was modified 3 years, 6 months ago by ovidiul.
    • This reply was modified 3 years, 6 months ago by ovidiul.

    @ovidiul, the fix works great! Thank you so much!

    After updating to 4.2.16 I can have https://USERNAME.stackstorage.com/remote.php/webdav/ as WebDAV Base Url and BACKUP/Wordpress as WebDAV Target Path without any errors 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remote storage with webdav not work’ is closed to new replies.