I'm trying to upload 50Gb file to S3 using boto. I'm running latest
copy of boto git master (from yesterday) on ubuntu 10.04 with
python2.6.
I'm trying to upload from us-east-1 m1.small instance to us-based S3
bucket and always finish up with either "Connection reset by peer" or
"Broken pipe". Uploading just 1Gb file works just fine.
Here is my code:
import boto
s3 = boto.connect_s3(aws_access_key_id='key',
aws_secret_access_key='secret')
bucket = s3.get_bucket('test')
key = boto.s3.key.Key(bucket)
key.key='50Gb'
f=open('/tmp/50Gb')
key.set_contents_from_file(f)
After some time I get either this exception:
File "<stdin>", line 1, in <module>
File "boto/s3/key.py", line 790, in set_contents_from_file
self.send_file(fp, headers, cb, num_cb, query_args)
File "boto/s3/key.py", line 583, in send_file
query_args=query_args)
File "boto/s3/connection.py", line 429, in make_request
override_num_retries=override_num_retries)
File "boto/connection.py", line 798, in make_request
return self._mexe(http_request, sender, override_num_retries)
File "boto/connection.py", line 764, in _mexe
raise e
socket.error: [Errno 104] Connection reset by peer
OR this exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "boto/s3/key.py", line 790, in set_contents_from_file
self.send_file(fp, headers, cb, num_cb, query_args)
File "boto/s3/key.py", line 583, in send_file
query_args=query_args)
File "boto/s3/connection.py", line 429, in make_request
override_num_retries=override_num_retries)
File "boto/connection.py", line 798, in make_request
return self._mexe(http_request, sender, override_num_retries)
File "boto/connection.py", line 764, in _mexe
raise e
socket.error: [Errno 32] Broken pipe
Can boto upload such a large files to S3?
Thanks,
Zaar
Might be useful...
--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To post to this group, send email to boto-...@googlegroups.com.
To unsubscribe from this group, send email to boto-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/boto-users?hl=en.