Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Corrupt FTP... Need help desperately!

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I have a server that I set up using Redhat Linux 6.2. It now has been upgraded to Redhat 7.0. I have had problems with FTP. Whenever I try to upload a large file, It becomes corrupt. When I check ifconfig for errors, I get none. I've checked the ethernet wires and network cards, and keep experiencing the same problem.
I need to have the FTP reliable, but this is baffling me.
Anyone had this problem, or know what to check or change?

Rninja
 
I would confirm the mode in which ftp your files.

Ascii or Binary mode

Downloading or uploading a binary file in accii mode will "cloober" it.

Sounds like that could be your problem.

look at the man page for the complete details and options



-Danny






 
My ftp program is set to determine files that should be binary, and others in ASCII. I know that this is not the problem. It's more serious than that.


Rninja
 
What ftpd are you using?
That you can set your ftpd to automagically
detect remote file types is nice, but I have never
heard of it before now.
Most Ftpd's use a default, or allow you to set a default
(bin).
I agree with you that on large file transfers only
there is something quirky with only these being corrupted.

some thoughts:

Have you tweaked any settings in /proc/sys/net/ipv4 ?
What is your mtu?
Are you getting rx/tx errors?
How is your routing set up?
Are you going through a proxy or NAT?
What do the ftpd logs say-have you enabled
daemon debugging in syslog?
(man syslog.conf)

If all of these (and more) are right then you
probably have a buggy ftpd and should go back to
the version that shipped with 6.2.
That might be the best solution anyway-just to get
a fix.
 
Have you tested this by explecitly stating ascii or binary mode before uploading / downloading files.

It sounds like you are using an ftp client. In order to further help we will need to know which type and version yuor are using for your ftp client and server (ftpd)

-Danny






 
To answer questions:L
I use ws_ftp for transfers from wondows to linux, using the propper transfer mode.
I am getting no rx/tx errors and the server is going thru a NAT/firewall/switch/Router.
I have tried tweaking the mtu to 1400,1472,1450, etc.
I have had this problem with both proftpd, and the server daemon that shipps with redhat 6.2.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top