Django 部署aws elastic beanstalk时出现套接字错误

Django 部署aws elastic beanstalk时出现套接字错误,django,amazon-web-services,boto,Django,Amazon Web Services,Boto,将django应用程序部署到aws elastic 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 "/User

将django应用程序部署到aws elastic 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
回溯(最近一次呼叫最后一次):
文件“.git/AWSDevTools/aws.elasticbeanstalk.push”,第57行,中
dev_tools.push_更改(opts.get(“env”)、opts.get(“commit”))
文件“/Users/John/djangoenv/djangoenv/testsite/.git/AWSDevTools/aws/dev_tools.py”,第196行,在push_更改中
创建应用程序版本(环境、提交、版本标签)
文件“/Users/John/djangoenv/djangoenv/testsite/.git/AWSDevTools/aws/dev_tools.py”,第184行,在创建应用程序版本中
上传文件(存储桶名称、存档文件)
文件“/Users/John/djangoenv/djangoenv/testsite/.git/AWSDevTools/aws/dev_tools.py”,第145行,在upload_文件中
键。从文件名(存档文件)设置内容
文件“/Users/John/djangoenv/lib/python2.7/site packages/boto/s3/key.py”,第1355行,位于文件名的集合内容中
加密密钥=加密密钥)
文件“/Users/John/djangoenv/lib/python2.7/site packages/boto/s3/key.py”,第1286行,位于文件集合内容中
分块传输=分块传输,大小=大小)
文件“/Users/John/djangoenv/lib/python2.7/site packages/boto/s3/key.py”,第746行,在send_文件中
分块传输=分块传输,大小=大小)
文件“/Users/John/djangoenv/lib/python2.7/site packages/boto/s3/key.py”,第944行,在发送文件中
query\u args=query\u args
文件“/Users/John/djangoenv/lib/python2.7/site packages/boto/s3/connection.py”,第664行,在make_请求中
重试\u处理程序=重试\u处理程序
文件“/Users/John/djangoenv/lib/python2.7/site packages/boto/connection.py”,第1053行,在make_请求中
重试\u处理程序=重试\u处理程序)
文件“/Users/John/djangoenv/lib/python2.7/site packages/boto/connection.py”,第923行,在
request.body、request.headers)
文件“/Users/John/djangoenv/lib/python2.7/site packages/boto/s3/key.py”,第840行,在sender中
http_conn.send(块)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py”,第805行,在send中
self.sock.sendall(数据)
sendall中的文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py”,第229行
v=self.send(数据[计数:)
文件“/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py”,第198行,在send中
v=自写入(数据)
socket.error:[Errno 32]管道破裂
为什么会发生这种情况??

请引导我,谢谢你

这种情况持续发生吗?这可能只是一个间歇性的网络连接问题,但如果每次尝试时都会发生,则会发生其他问题。最后,我删除了该实例并启动一个新实例。还有一个关于requirements.txt的问题,我正在努力解决