Opscode Chef请求实体太大,无法注册节点 [英] Opscode Chef Request entity too large registering a node

查看:64
本文介绍了Opscode Chef请求实体太大,无法注册节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在注册一个在运行列表中搜索其他节点属性的节点。
问题是当节点信息太大而无法通过HTTP放置在服务器上时。

I'm registering a node that search for other nodes attributes in the run list. The problem is when the node information is too big for put on the server via HTTP.

然后Chef-client打印'FATAL:Net :: HTTPServerException :413请求实体太大消息。

Then chef-client prints a 'FATAL: Net::HTTPServerException: 413 "Request Entity Too Large"' message.

服务器位于Opscode托管厨师中。

The server is in Opscode Hosted Chef.

任何人可以帮我解决这个问题吗?

Anyone can help me with this issue?

谢谢!

推荐答案

更改nginx配置对我不起作用。但是,我的确从Chef社区网站IRC日志(约书亚·廷伯曼提供)中找到了以下内容,并且对我有用(Chef v11.4.4):

Changing nginx config did not work for me. However, I did find the following from the Chef community site IRC logs (courtesy of Joshua Timberman) and it worked for me (Chef v11.4.4):

 put this in /etc/chef/client.rb: Ohai::Config[:disabled_plugins] = ["passwd"]

以下是链接:
http://community.opscode.com/chat/chef/2013-02-07

由于这是客户端,因此无论您正在使用的厨师服务器类型。

As this is client side it should work regardless of the chef server type you are using.

注意:在处理产生错误的食谱时,我在测试(chef v11.10.4)中没有看到这一点。可能是在更新版本的Chef中已解决此问题。

Note: I have not seen this in testing (chef v11.10.4) when working on the cookbook that generated the error. It is possible that this has been fixed in more recent versions of Chef.

这篇关于Opscode Chef请求实体太大,无法注册节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆