413请求实体在上传cookbook时出现太大错误

时间:2018-02-28 11:03:01

标签: chef-recipe

我将一个zip文件放入菜谱后将其上传到服务器后发现了这个错误。有人可以建议我找到这个错误的正确解决方案......

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 个答案:

答案 0 :(得分:1)

您不应该使用Chef来托管任何“大”文件。设置其他HTTP服务器或使用非现场存储,如S3。

相关问题