• Resolved lucasbustamante

    (@lucasbustamante)


    I’m facing issues connecting via FTP, and the connection test just shows a generic message:

    FTP Test Error
    Send FTP file test failed! Be sure the full storage path exists. For additional help see the online FTP troubleshooting steps.

    It would be nice to have debug logs about the connection attempt, to narrow down the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lucasbustamante

    (@lucasbustamante)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘More verbose FTP connection errors (Bug in Duplicator)’ is closed to new replies.