I found out I could enable tracing and logs at the Settings and see more verbose errors from the FTP connections. It seems I came across a bug in the Test FTP Connection functionality.
The logs lead me to this file:
duplicator/classes/net/class.ftp.chunker.php
More precisely the method upload_chunk(). The first argument is the absolute filepath of the file to be transfered. However, when “Test FTP Connection” triggers this method, the first argument is set to FALSE, which leads it to this if/else:
$local_file_handle = fopen($source_filepath, 'rb');
if ($local_file_handle !== false)
{
# Upload code
}
else
{
$message = sprintf(DUP_PRO_U::__('Error opening %1$ for FTP'), $source_filepath);
DUP_PRO_LOG::trace($message);
$ftp_upload_info->error_details = message;
}
Which is exactly what is showing up at my logs. Also, see that the message variable called in the last line is missing a dollar sign.
Thanks for the update @lucasbustamante! We’ll have a look at that and get it patched soon. If you need the patch ASAP, just submit a support ticket to:
https://snapcreek.com/ticket
And we can get you a patch so you don’t have to wait until the next version is released.
Thanks