ProFTPD 4GB limit?

Hi, I’m using ProFTPD as per suggestion for FTP server on my pi, however, I’m experiencing an issue where every big file (I suspect bigger than 4.3 GB) are displaying incorrect size (for example, a 50 GB movie displays as a 4 GB), hence, resulting in a corrupt file when transferring.

Looks like ProFTPD has some macros to remove the 4GB limit, how can we use it?


Hm 4,3GB sounds like the max file size of FAT32 filesystem. What filesystem do you use for your FTP share?

I don’t know how to answer that. I’m using a DietPi on a Pi4 B formatted on a recommended format (it’s not FAT32, but I don’t remember the format).

You can run df -Th to see what filesystem(s) your system is using.

Yes, it’s ext4. Should support bigger files right?

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid

This will give a full view on available file system.

And yes ext4 has a limit. But it is 16 TiB for files ext4 - Wikipedia

They are all ext4 besides a single partition (128M) which is vfat — I assume this is the boot partition or something. Anyway, I’m not using the drive containing that partition, I’m accessing the external drive which is ext4 from a MacBook Pro which in its turn uses APFS.

DietPi is running 32 or 64bit?

Btw: did you checked logs? Maybe it was/is a timeout?

cat /var/log/proftpd/proftpd.log

There’s nothing with that command.

I think it’s 64 bits.

the log is getting cleared every hour. Means force the issue and check again

to verify the kernel version run uname -a

I tested with default installation and copied a 6,x GB file via windows explorer (from NTFS partition) to my Pi3, without issues. It shows correct size in the win exporer, also in FileZilla and via CLI on the device itself :thinking:

Just can confirm this. Transferred a 10GB demo file using WinSCP (FTP protocol). No issued there and as well on Windows explorer, file is showing up correctly.

I’m using a mac and only copying from the pi into the mac. Does that make a difference?

So it is a download from the FTP server on your Mac?

No, server is the pi, the client is the Mac

Linux DietPi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux

Already tried to explore the files again and there’s no error showing up, files just display wrong size in the MacOS Finder.

Edit: FileZilla shows and transfers the right size.

Might this be an issue of the MacOS app? I don’t have an Apple device to test. Just download a 10GB demo file using FTP on Windows Explorer without issues.

Yeah, I suspect is something in the Finder app itself. It’s very limited and doesn’t even support upload into the server.