部署aws弹性beanstalk有socket错误

时间:2014-10-28 08:00:43

标签: django amazon-web-services boto

当我将django应用程序部署到aws弹性beanstalk时,我遇到了问题 运行git aws.push时 有错误:

Traceback (most recent call last):
File ".git/AWSDevTools/aws.elasticbeanstalk.push", line 57, in <module>
  dev_tools.push_changes(opts.get("env"), opts.get("commit"))
File "/Users/John/djangoenv/djangoenv/testsite/.git/AWSDevTools/aws/dev_tools.py", line 196, in push_changes
  self.create_application_version(env, commit, version_label)
File "/Users/John/djangoenv/djangoenv/testsite/.git/AWSDevTools/aws/dev_tools.py", line 184, in create_application_version
  self.upload_file(bucket_name, archived_file)
File "/Users/John/djangoenv/djangoenv/testsite/.git/AWSDevTools/aws/dev_tools.py", line 145, in upload_file
  key.set_contents_from_filename(archived_file)
File "/Users/John/djangoenv/lib/python2.7/site-packages/boto/s3/key.py", line 1355, in set_contents_from_filename
  encrypt_key=encrypt_key)
File "/Users/John/djangoenv/lib/python2.7/site-packages/boto/s3/key.py", line 1286, in set_contents_from_file
  chunked_transfer=chunked_transfer, size=size)
File "/Users/John/djangoenv/lib/python2.7/site-packages/boto/s3/key.py", line 746, in send_file
  chunked_transfer=chunked_transfer, size=size)
File "/Users/John/djangoenv/lib/python2.7/site-packages/boto/s3/key.py", line 944, in _send_file_internal
  query_args=query_args
File "/Users/John/djangoenv/lib/python2.7/site-packages/boto/s3/connection.py", line 664, in make_request
  retry_handler=retry_handler
File "/Users/John/djangoenv/lib/python2.7/site-packages/boto/connection.py", line 1053, in make_request
  retry_handler=retry_handler)
File "/Users/John/djangoenv/lib/python2.7/site-packages/boto/connection.py", line 923, in _mexe
  request.body, request.headers)
File "/Users/John/djangoenv/lib/python2.7/site-packages/boto/s3/key.py", line 840, in sender
  http_conn.send(chunk)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 805, in send
  self.sock.sendall(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 229, in sendall
  v = self.send(data[count:])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 198, in send
  v = self._sslobj.write(data)
  socket.error: [Errno 32] Broken pipe

为什么会发生这种情况? 请指导我,谢谢

0 个答案:

没有答案
相关问题