-
-
Save jwalton/da1634758061e190f049 to your computer and use it in GitHub Desktop.
artifact_deploy error.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generated at 2013-08-01 12:17:20 -0400 | |
NoMethodError: artifact_deploy[nodeloop-deploy] (nodeloop::install line 141) had an error: NoMethodError: directory[/opt/benbria/nodeloop-deploy/shared/.migrate-migrating] (/tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb line 485) had an error: NoMethodError: undefined method `checksum' for Chef::Resource::Directory | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:282:in `method_missing' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider/file.rb:203:in `update_new_file_state' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider/file.rb:243:in `block in set_all_access_controls' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/why_run.rb:52:in `call' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/why_run.rb:52:in `add_action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider.rb:151:in `converge_by' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider/file.rb:240:in `set_all_access_controls' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider/directory.rb:112:in `action_create' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider.rb:114:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:606:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:50:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:82:in `block (2 levels) in converge' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:82:in `each' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:82:in `block in converge' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection.rb:94:in `block in execute_each_resource' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection.rb:92:in `execute_each_resource' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:81:in `converge' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider.rb:170:in `block in recipe_eval' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/why_run.rb:52:in `call' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/mixin/why_run.rb:52:in `add_action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider.rb:151:in `converge_by' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider.rb:165:in `recipe_eval' | |
/tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb:482:in `symlink_it_up!' | |
/tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb:125:in `block in class_from_file' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider/lwrp_base.rb:138:in `instance_eval' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider/lwrp_base.rb:138:in `block in action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/provider.rb:118:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource.rb:606:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:50:in `run_action' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:82:in `block (2 levels) in converge' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:82:in `each' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:82:in `block in converge' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection.rb:94:in `block in execute_each_resource' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:85:in `step' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/resource_collection.rb:92:in `execute_each_resource' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/runner.rb:81:in `converge' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:404:in `converge' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:469:in `do_run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:200:in `run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:190:in `run_chef_client' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:239:in `block in run_application' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:231:in `loop' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:231:in `run_application' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:73:in `run' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/chef-solo:25:in `<top (required)>' | |
/usr/bin/chef-solo:23:in `load' | |
/usr/bin/chef-solo:23:in `<main>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
* file[/opt/benbria/nodeloop-deploy/shared/.migrate-migrating] action create_if_missing (up to date) | |
- would evaluate block and run any associated actions * directory[/opt/benbria/nodeloop-deploy/shared/.migrate-migrating] action create | |
================================================================================ | |
Error executing action `create` on resource 'directory[/opt/benbria/nodeloop-deploy/shared/.migrate-migrating]' | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `checksum' for Chef::Resource::Directory | |
Cookbook Trace: | |
--------------- | |
/tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb:482:in `symlink_it_up!' | |
/tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb:125:in `block in class_from_file' | |
Resource Declaration: | |
--------------------- | |
# In /tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb | |
485: directory "#{new_resource.shared_path}/#{key}" do | |
486: owner new_resource.owner | |
487: group new_resource.group | |
488: mode '0755' | |
489: recursive true | |
490: end | |
491: | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb:485:in `block (2 levels) in symlink_it_up!' | |
directory("/opt/benbria/nodeloop-deploy/shared/.migrate-migrating") do | |
provider Chef::Provider::Directory | |
action :create | |
retries 0 | |
retry_delay 2 | |
path "/opt/benbria/nodeloop-deploy/shared/.migrate-migrating" | |
recursive true | |
cookbook_name :nodeloop | |
owner "benbria" | |
group "benbria" | |
mode "0755" | |
end | |
================================================================================ | |
Error executing action `deploy` on resource 'artifact_deploy[nodeloop-deploy]' | |
================================================================================ | |
NoMethodError | |
------------- | |
directory[/opt/benbria/nodeloop-deploy/shared/.migrate-migrating] (/tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb line 485) had an error: NoMethodError: undefined method `checksum' for Chef::Resource::Directory | |
Cookbook Trace: | |
--------------- | |
/tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb:482:in `symlink_it_up!' | |
/tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb:125:in `block in class_from_file' | |
Resource Declaration: | |
--------------------- | |
# In /tmp/loop_install/chef/cookbooks/nodeloop/recipes/install.rb | |
141: artifact_deploy "nodeloop-deploy" do | |
142: shared_dir = "#{deploy_dir}/shared" | |
143: | |
144: version node['nodeloop']['install_hash'] | |
145: artifact_location "/tmp/#{tarball_name}" | |
146: deploy_to deploy_dir | |
147: owner "benbria" | |
148: group "benbria" | |
149: symlinks ({ | |
150: ".migrate-migrating" => "migrations/.migrate-migrating", | |
151: "local_config.coffee" => "configs/local_config.coffee" | |
152: }) | |
153: should_migrate true | |
154: keep 5 | |
155: force (node["nodeloop"]["deploy_type"] == 'force_deploy') | |
156: | |
157: before_symlink Proc.new { | |
158: log "-=-=-=-=-=-=- Before symlink" | |
159: old_local_config = "#{OLD_NODELOOP_DIR}/config/local_config.coffee" | |
160: new_local_config = "#{shared_dir}/local_config.coffee" | |
161: | |
162: script "install_global_npm_packages" do | |
163: interpreter "bash" | |
164: user "root" | |
165: code <<-EOH | |
166: # Setup Node.js environment | |
167: #{NODE} | |
168: | |
169: logger 'nodeloop (install) Installing coffeescript' | |
170: npm install -g coffee-script | |
171: EOH | |
172: end | |
173: | |
174: # If there's an old nodeloop install, then copy the local config from there. | |
175: script "copy_old_local_config" do | |
176: interpreter "bash" | |
177: user "root" | |
178: code <<-EOH | |
179: cp "#{old_local_config}" "#{new_local_config}" | |
180: EOH | |
181: only_if do File.exists?(old_local_config) and not File.exists?(new_local_config) end | |
182: end | |
183: | |
184: # Make sure the local config file exists, even if it is empty | |
185: file "#{shared_dir}/local_config.coffee" do | |
186: owner "benbria" | |
187: group "benbria" | |
188: mode "0644" | |
189: content "" | |
190: :create_if_missing | |
191: end | |
192: | |
193: # If there's an old nodeloop install, then steal the .migrate-migrating file from it. | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/loop_install/chef/cookbooks/nodeloop/recipes/install.rb:141:in `from_file' | |
artifact_deploy("nodeloop-deploy") do | |
action :deploy | |
retries 0 | |
retry_delay 2 | |
cookbook_name :nodeloop | |
recipe_name "install" | |
version "807cf63515ef9e2f9350c2ee75a20fb0de041619" | |
artifact_location "/tmp/nodeloop-ubuntu-12.04-x86_64-807cf63515ef9e2f9350c2ee75a20fb0de041619.tgz" | |
deploy_to "/opt/benbria/nodeloop-deploy" | |
owner "benbria" | |
group "benbria" | |
symlinks {".migrate-migrating"=>"migrations/.migrate-migrating", "local_config.coffee"=>"configs/local_config.coffee"} | |
should_migrate true | |
keep 5 | |
before_symlink #<Proc:0x000000020f5738@/tmp/loop_install/chef/cookbooks/nodeloop/recipes/install.rb:157> | |
before_migrate #<Proc:0x000000020f4f68@/tmp/loop_install/chef/cookbooks/nodeloop/recipes/install.rb:223> | |
migrate #<Proc:0x000000020f4a18@/tmp/loop_install/chef/cookbooks/nodeloop/recipes/install.rb:253> | |
restart #<Proc:0x000000020f4770@/tmp/loop_install/chef/cookbooks/nodeloop/recipes/install.rb:265> | |
after_deploy #<Proc:0x000000020f41a8@/tmp/loop_install/chef/cookbooks/nodeloop/recipes/install.rb:275> | |
shared_directories ["system", "pids", "log"] | |
is_tarball true | |
end | |
Recipe: ntp::default | |
* service[ntp] action restart | |
- restart service service[ntp] | |
Recipe: hostname::default | |
* ohai[reload] action reload | |
- re-run ohai and merge results into node attributes | |
Recipe: haproxy::default | |
* service[haproxy] action restart | |
- restart service service[haproxy] | |
* service[haproxy] action reload | |
- reload service service[haproxy] | |
Recipe: nodeloop::dependencies | |
* service[rsyslog] action restart | |
- restart service service[rsyslog] | |
[2013-08-01T12:17:19-04:00] ERROR: Running exception handlers | |
[2013-08-01T12:17:19-04:00] ERROR: Exception handlers complete | |
Chef Client failed. 69 resources updated | |
[2013-08-01T12:17:20-04:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out | |
[2013-08-01T12:17:20-04:00] FATAL: NoMethodError: artifact_deploy[nodeloop-deploy] (nodeloop::install line 141) had an error: NoMethodError: directory[/opt/benbria/nodeloop-deploy/shared/.migrate-migrating] (/tmp/loop_install/chef/cookbooks/artifact/providers/deploy.rb line 485) had an error: NoMethodError: undefined method `checksum' for Chef::Resource::Directory | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment