in reply to Net::FTP with Xlight FTP server

Well that could be almost anything (permissions, quota, active v passive, etc.). But, if you are trying to debug the problem I would strongly recommend against setting Debug => 0 as you have done. Try some positive value instead and see if that makes the reason clear.

Of course, if you have access to the server's FTP logs then that's another good place to look.

Replies are listed 'Best First'.
Re^2: Net::FTP with Xlight FTP server
by perl_help26 (Beadle) on Apr 16, 2015 at 13:52 UTC

    Thank you for your response.

    I've done additional testing and I noticed the following:

    - if I run the perl script from my local machine, the files are uploaded to the virtual server successfully.

    - If I run the perl script from a virtual box on my machine, the files are sent BUT they are EMPTY. The ftp message just says "Opening Binary mode data connection..." but without transfer complete.

    If I am correct:

    - it has nothing to do with permission rights since i am using the same user

    - firewall is allowing all File transfer protocols.

    What could it be? Thank you

      Check PASSIVE versus ACTIVE mode.

      Dum Spiro Spero
        You were right... I set passive to 1 and it worked. Thank you so much