Skip to content

Instantly share code, notes, and snippets.

@gondoi
Created June 27, 2012 19:44
Show Gist options
  • Save gondoi/3006325 to your computer and use it in GitHub Desktop.
Save gondoi/3006325 to your computer and use it in GitHub Desktop.
httplib errors
Creating debian-6.0.1-i686/chef-full-0.10.10-1-debian-6.0.1-i686.sh on Cloud Files
Traceback (most recent call last):
File "shearline.py", line 21, in <module>
cf_object.send(item)
File "/Library/Python/2.7/site-packages/cloudfiles/utils.py", line 45, in decorator
return f(*args, **kwargs)
File "/Library/Python/2.7/site-packages/cloudfiles/storage_object.py", line 509, in send
http.send(chunk)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 773, in send
self.sock.sendall(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 207, in sendall
v = self.send(data[count:])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 176, in send
v = self._sslobj.write(data)
socket.error: [Errno 32] Broken pipe
cf_object = container.create_object(item.key)
if cf_object.etag == item.etag:
print ("%s Already exists and is up-to-date" % item.key)
else:
print ("Creating %s on Cloud Files" % item.key)
# item is iterable of class 'boto.s3.key.Key'
cf_object.send(item)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment