H
half.italian
Hi all,
I'm using ftplib to transfer large files to remote sites. The process
seems to work perfectly with small files, but when the file gets to
large ~20GB I begin getting errors that sometimes seem to be non-
fatal, and other times the transfer does not complete. I've debugged
the hell out of the code, and can't figure out what is going on..is it
the remote site? Packet loss?
Traceback (most recent call last):
File "/usr/local/sw/bin/FTPput.py", line 142, in execute
self.ftp.put(file.path)
File "/usr/local/sw/lib/FTPconn.py", line 32, in put
return self.storbinary("STOR %s" % destfile, open(f.path, 'rb'))
File "/usr/lib/python2.2/ftplib.py", line 422, in storbinary
return self.voidresp()
File "/usr/lib/python2.2/ftplib.py", line 222, in voidresp
resp = self.getresp()
File "/usr/lib/python2.2/ftplib.py", line 208, in getresp
resp = self.getmultiline()
File "/usr/lib/python2.2/ftplib.py", line 194, in getmultiline
line = self.getline()
File "/usr/lib/python2.2/ftplib.py", line 181, in getline
line = self.file.readline()
IOError: [Errno 104] Connection reset by peer
I'd appreciate any input or ideas.
~Sean
I'm using ftplib to transfer large files to remote sites. The process
seems to work perfectly with small files, but when the file gets to
large ~20GB I begin getting errors that sometimes seem to be non-
fatal, and other times the transfer does not complete. I've debugged
the hell out of the code, and can't figure out what is going on..is it
the remote site? Packet loss?
Traceback (most recent call last):
File "/usr/local/sw/bin/FTPput.py", line 142, in execute
self.ftp.put(file.path)
File "/usr/local/sw/lib/FTPconn.py", line 32, in put
return self.storbinary("STOR %s" % destfile, open(f.path, 'rb'))
File "/usr/lib/python2.2/ftplib.py", line 422, in storbinary
return self.voidresp()
File "/usr/lib/python2.2/ftplib.py", line 222, in voidresp
resp = self.getresp()
File "/usr/lib/python2.2/ftplib.py", line 208, in getresp
resp = self.getmultiline()
File "/usr/lib/python2.2/ftplib.py", line 194, in getmultiline
line = self.getline()
File "/usr/lib/python2.2/ftplib.py", line 181, in getline
line = self.file.readline()
IOError: [Errno 104] Connection reset by peer
I'd appreciate any input or ideas.
~Sean