sentry-cookbook
sentry-cookbook copied to clipboard
Cookbook Fails on Chef 11.4.0 on Ubuntu 12.04 LTS
Fails on Chef 11.4.0 on Ubuntu 12.04 LTS
Trying to figure out why it's broken now...
Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-2/cookbooks/sentry/definitions/sentry_conf.rb:
32:
33: virtualenv_dir = params[:virtualenv_dir] or node["sentry"]["virtulenv"]
34:
35: #settings_variables = Chef::Mixin::DeepMerge.deep_merge!(node[:sentry][:settings].to_hash, params[:settings])
36:
37: settings_variables = params[:settings]
38: config = params[:config] || node["sentry"]["config"]
39>> settings_variables["config"] = config
40:
41: Chef::Log.info("Making directory for virtualenv: #{virtualenv_dir}")
42: # Making application virtualenv directory
43: directory virtualenv_dir do
44: owner params[:user]
45: group params[:group]
46: mode 0777
47: recursive true
48: action :create
[2013-03-20T20:52:29+00:00] ERROR: Running exception handlers
[2013-03-20T20:52:29+00:00] ERROR: Exception handlers complete
[2013-03-20T20:52:29+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-03-20T20:52:29+00:00] FATAL: Chef::Exceptions::ImmutableAttributeModification: Node attributes are read-only when you do not specify which precedence level to set. To set an attribute use code like `node.default["key"] = "value"'
Pull request to fix this here: https://github.com/Lispython/sentry-cookbook/pull/3
I just ended up commenting out the line that failed, and it seems like Sentry runs just fine without it. (???)
Because this variable for information only, check you rendered config https://github.com/Lispython/sentry-cookbook/blob/master/templates/default/sentry.conf.erb#L3