I'm attempting to upload an mp4 file (112MB) to a Linux server. After a successful transfer, its size is reduced to 103MB or 80MB. It is not uploading the full size. Its Owner/Group changed automatically into root/root as well.
I've stopped the lsyncd service for a while. Then it works great after you stop the service. I reviewed the lsyncd logs but found nothing.
Can anybody help me out ?
Checked lsyncd logs but nothing found Checked transfer mode in Filezilla its on Auto mode.
Does your FTP client run in ASCII mode? This can do some conversions, e.g. remove CR characters when transferring from WinDOS to *NIX.
Switch it to BIN mode!
No error in lsyncd.log file.
Server Operating System where uploading files : Ubuntu 18.04
I am using FileZilla to connect SFTP on Windows 10
I selected Binary mode is Transfer mode in setting of FileZilla but success.
Lsyncd version : 2.1.6
I'm very tempted to ask if you have not tried with another box, this time a *Nix OS to that server and see what happens, because unfortunately things are more easy when dealing with same family of OS, but here we have MSWin... and a soft: FileZilla, meaning we have 3 possible places to look at...
So logically I would start with a familiar *ix that tries to transfer to your server, only I would like that ix having a UID known both sides...
If that works, the same with UID not know server side
What does that give?
If Both OK , I would forget issue coming from server side
Leaving you with Windows and FileZilla
If not the case, I would solve the issue before going further...
Addendum:
What happens with other/smaller files?
Trying with all sorts like photos, binaries etc... and less than 20MB...
Then increasing the size if OK... this is in case of possible network issues
So you should start by that I presume...
Small size files either it is video or mp3. It uploaded fine with original size.
I tried to change its location and then tried to upload 112 MB large file and its works.
No idea what's going on.
Any suggestions ?
Maybe only the presented file size is wrong, or it is written to a compressing volume?
The main thing is, the contents does not change.
Download the file again to another location.
Then compare it with the original file, either directly or by their checksums.
so they're the same.
probable contributing factors - differing filesystems(extN ... ntfs ....) ,blockallocations, fragmentation , how sizing is reported/displayed.