Add to Favourites Add to Favourites    Print this Article Print this Article

ncftp: Cannot open local file /file for reading: Value too large for defined data type

If you get this error when trying to upload files through ncftpput, it would likely mean it wasn't compiled with large file support.
To recompile it with the latest version (3.2.4 when this was written), type:

cd /usr/local/directadmin/scripts
nano ncftp.sh    #use any editor you'd like.

#change:
VERSION=3.2.2

#to be:
VERSION=3.2.4

#save/exit, then type:
./ncftp.sh

This will update the version in the script, then download and install it.  Large file support should be enabled by default with new versions of ncftp.

Was this answer helpful?

Also Read