413 Request Entity Too Large error occur while uploading cookbook

南楼画角 提交于 2019-12-10 19:12:06

问题


I found this error after i put a zip file into the cookbook and then uploaded it into the server. Can someone suggest me the right solution for this error...

ERROR: Failed to upload ~/chef-repo/cookbooks/api/files/default/xx.zip (82c4bebb9890545ead67c44dca9f5a1f) to https://x.xxx.x.xxx:443/bookshelf/organization-9765dffbae2bea820ff192869963766f/checksum-82c4bebb9890545ead67c44dca9f5a1f?AWSAccessKeyId=970f9481256ced719247e5d4223442e56ac82b19&Expires=1519812888&Signature=szLz9tUlabOE8vck7Rug9cjUH%2B8%3D : 413 "Request Entity Too Large"
 ERROR: Request Entity Too Large
Response: <html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>openresty/1.11.2.1</center>
</body>
</html>

回答1:


You should not use Chef to host any 'big' files. Setup additional HTTP server or use off site storage like S3.



来源:https://stackoverflow.com/questions/49028024/413-request-entity-too-large-error-occur-while-uploading-cookbook

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!