Timeout when updating large file on site

Tom Robinson <[email protected]> Tue, 10 Oct 2006 10:18:57 +1300
Newsgroups gmane.comp.web.sitecopy
Message-ID <[email protected]>
Hi people,

(Me again...)

sitecopy's been working well for me on a large site with many small  
files, but now I'm trying to upload a larger file (over a Meg) it's  
failing with a timeout error (although it looks like the file's  
actually been transferred OK).

Debugging output is:
--------------------

[268 Workstation:~]$ sitecopy --update hsweb --debug=ftp,socket
sitecopy: Updating site `hsweb' (on web01.dmdservices.co.nz in / 
FTP.HEALTHSTAT/)
Opening socket to port 21
< 220 Microsoft FTP Service
FTP: Sending 'USER ftp.healthstat':
 > USER ftp.healthstat
< 331 Password required for ftp.healthstat.
FTP: Sending PASS command...
 > PASS ...
< 230 User ftp.healthstat logged in.
Uploading HS Dump.pdf: [> TYPE I
< 200 Type set to I.
 > PASV
< 227 Entering Passive Mode (202,89,44,130,18,205).
ftp: Parsed PASV response, using port 4813
 > STOR /FTP.HEALTHSTAT/HS Dump.pdf
< 125 Data connection already open; Transfer starting.
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
......................Closing DTP connection...
ftp: Set socket error (-2): Could not read response line: connection  
timed out.
PI socket closed: Could not read response line: connection timed out.
Opening socket to port 21
< 220 Microsoft FTP Service
FTP: Sending 'USER ftp.healthstat':
 > USER ftp.healthstat
< 331 Password required for ftp.healthstat.
FTP: Sending PASS command...
 > PASS ...
< 230 User ftp.healthstat logged in.
 > TYPE I
< 200 Type set to I.
 > PASV
< 227 Entering Passive Mode (202,89,44,130,15,56).
ftp: Parsed PASV response, using port 3896
 > STOR /FTP.HEALTHSTAT/HS Dump.pdf
< 125 Data connection already open; Transfer starting.
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
......................Closing DTP connection...
ftp: Set socket error (-2): Could not read response line: connection  
timed out.
PI socket closed: Could not read response line: connection timed out.
Opening socket to port 21
< 220 Microsoft FTP Service
FTP: Sending 'USER ftp.healthstat':
 > USER ftp.healthstat
< 331 Password required for ftp.healthstat.
FTP: Sending PASS command...
 > PASS ...
< 230 User ftp.healthstat logged in.
 > TYPE I
< 200 Type set to I.
 > PASV
< 227 Entering Passive Mode (202,89,44,130,5,243).
ftp: Parsed PASV response, using port 1523
 > STOR /FTP.HEALTHSTAT/HS Dump.pdf
< 125 Data connection already open; Transfer starting.
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
......................Closing DTP connection...
ftp: Set socket error (-2): Could not read response line: connection  
timed out.
PI socket closed: Could not read response line: connection timed out.
] failed:
Could not read response line: connection timed out.
sitecopy: Errors occurred while updating the remote site.
[269 Workstation:~]$


And with 'ftp nopasv' in the rc file:
-------------------------------------

[270 Workstation:~]$ sitecopy --update hsweb --debug=ftp,socket
sitecopy: Updating site `hsweb' (on web01.dmdservices.co.nz in / 
FTP.HEALTHSTAT/)
Opening socket to port 21
< 220 Microsoft FTP Service
FTP: Sending 'USER ftp.healthstat':
 > USER ftp.healthstat
< 331 Password required for ftp.healthstat.
FTP: Sending PASS command...
 > PASS ...
< 230 User ftp.healthstat logged in.
Uploading HS Dump.pdf: [> TYPE I
< 200 Type set to I.
 > PORT 192,168,1,5,12,103
< 200 PORT command successful.
 > STOR /FTP.HEALTHSTAT/HS Dump.pdf
< 150 Opening BINARY mode data connection for /FTP.HEALTHSTAT/HS  
Dump.pdf.
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
......................Closing DTP connection...
ftp: Set socket error (-2): Could not read response line: connection  
timed out.
PI socket closed: Could not read response line: connection timed out.
Opening socket to port 21
< 220 Microsoft FTP Service
FTP: Sending 'USER ftp.healthstat':
 > USER ftp.healthstat
< 331 Password required for ftp.healthstat.
FTP: Sending PASS command...
 > PASS ...
< 230 User ftp.healthstat logged in.
 > TYPE I
< 200 Type set to I.
 > PORT 192,168,1,5,12,108
< 200 PORT command successful.
 > STOR /FTP.HEALTHSTAT/HS Dump.pdf
< 150 Opening BINARY mode data connection for /FTP.HEALTHSTAT/HS  
Dump.pdf.
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
......................Closing DTP connection...
ftp: Set socket error (-2): Could not read response line: connection  
timed out.
PI socket closed: Could not read response line: connection timed out.
Opening socket to port 21
< 220 Microsoft FTP Service
FTP: Sending 'USER ftp.healthstat':
 > USER ftp.healthstat
< 331 Password required for ftp.healthstat.
FTP: Sending PASS command...
 > PASS ...
< 230 User ftp.healthstat logged in.
 > TYPE I
< 200 Type set to I.
 > PORT 192,168,1,5,12,113
< 200 PORT command successful.
 > STOR /FTP.HEALTHSTAT/HS Dump.pdf
< 150 Opening BINARY mode data connection for /FTP.HEALTHSTAT/HS  
Dump.pdf.
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
........................................................................ 
................................................
......................Closing DTP connection...
ftp: Set socket error (-2): Could not read response line: connection  
timed out.
PI socket closed: Could not read response line: connection timed out.
] failed:
Could not read response line: connection timed out.
sitecopy: Errors occurred while updating the remote site.
[271 Workstation:~]$


Versions:
---------

[271 Workstation:~]$ sitecopy --version
sitecopy 0.16.3: FTP WebDAV rsh/rcp sftp/ssh, debugging, cygwin  
platform.
neon 0.26.0: Bundled build, Expat.
[272 Workstation:~]$ uname --all
CYGWIN_NT-5.1 Workstation 1.5.21(0.156/4/2) 2006-07-30 14:21 i686 Cygwin
[273 Workstation:~]$