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

问题描述 投票:3回答:1

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

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>
chef-recipe
1个回答
1
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.