FTP Upload Problems

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
Thomas Kluge
Posts: 2
Joined: 18 Mar 2010, 07:56

FTP Upload Problems

Post by Thomas Kluge »

Hi,

I have a really strange upload problem. Files I do upload appear corrupted or set to zero length.

I tried to analyze the ftp traffic with wireshark. As an example I tried to upload a file with 2.931 bytes
repeatedly to a dreamhost ftp server.

Example of sucessfully upload:

-> FTP Request: STORE styles.css
-> FTP Data: 1260
-> FTP Data: 1260
<- FTP Response: 150 Opening BINARY mode data connection for styles.css
-> FTP Data: 411
<- FTP Response: 226 Transfer complete.

Example of erroneous upload:

-> FTP Request: STORE styles.css
<- FTP Response: 150 Opening BINARY mode data connection for styles.css
<- FTP Response: 226 Transfer complete.


The TCP flow before FTP Data shows:

OK:
69 6.055119 69.163.221.104 192.168.178.25 TCP 57995 > nfa [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1452
70 6.055148 192.168.178.25 69.163.221.104 TCP nfa > 57995 [ACK] Seq=1 Ack=1 Win=32768 Len=0

Wrong:
571 42.680589 69.163.221.104 192.168.178.25 TCP 58350 > b2n [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1452
572 42.680612 192.168.178.25 69.163.221.104 TCP b2n > 58350 [ACK] Seq=1 Ack=1 Win=32768 Len=0
573 42.680841 192.168.178.25 69.163.221.104 TCP b2n > 58350 [FIN, ACK] Seq=1 Ack=1 Win=32768 Len=0

Looks like the tcp connection is closed from serverside during store?
The problem is, anything looks fine from the ftp plugin view, but the file is zero.

Any help is appreciated. I can provide a complete wireshark trace of this.

BTW: Using keep alive options like "NOOP" does not change anything. Using Salamander Version 2.52. FTP Plugin Version 1.31

Thomas
Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1112
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Re: FTP Upload Problems

Post by Petr Solin »

Please try to change transfer mode, it helps in most cases: see File transfer mode in http://www.altap.cz/salam_en/help/ftp/d ... ectadv.htm.

Please paste here also "upload parts" from FTP logs, see menu Plugins/FTP Client/Show Logs.
Thomas Kluge
Posts: 2
Joined: 18 Mar 2010, 07:56

Re: FTP Upload Problems

Post by Thomas Kluge »

The positive and negative log is exactly the same, this is the one with a zero length file.
The failure is independed from file transfer mode (binary|ascii)

Copy File "styles.css" to port-au-prince.dreamhost.com
Host: "port-au-prince.dreamhost.com", port: 21.
Log UID is 11, time is 18.03.2010 - 23:07:46.

(23:07:46): Using connection from panel...

(23:07:46): Uploading file "styles.css"...
(23:07:46): Uploading file "styles.css"...
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (69,163,221,104,172,114).
STOR styles.css
150 Opening BINARY mode data connection for styles.css
226 Transfer complete.
(23:07:47): Connection was returned to panel...
Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1112
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Re: FTP Upload Problems

Post by Petr Solin »

My mistake, sorry, I meant Use passive transfer mode option in Advanced dialog. Please try to change passive/active mode.
Post Reply