Using a file within the candidate release


#1

I’m working on a Django recipe within the Application cookbook. The approach I’ve taken is to allow a Python pip requirements file to live in git, which is run as part of the deployment process. This file lives at the base of the repo, and is called live-pip-requirements.txt.

I’m trying to access this file within the deploy resource as follows:

before_migrate do
bash “Install pip requirements” do
code <<-EOH
source #{app[‘deploy_to’]}/virtualenv/bin/activate
pip install -r #{release_path}/live-pip-requirements.txt"
EOH
end
end

My investigation seems to show the code not being there, as when I run an ls -lrRt >> some.log within that block, although release_path is valid, the live-pip-requirements.txt just isn’t there, and nor is anything else:

$ cat piplog
PATH:

/srv/smartpages/releases/74c62d657835d6a473bae62e1b7ee466fdb74ce6
.:
total 20
-rw-r–r-- 1 vagrant vagrant 268 Jan 5 13:27 vagrant-network-interfaces
-rw-r----- 1 vagrant vagrant 224 Jan 5 13:27 vagrant-network-entry
drwx------ 3 root root 4096 Jan 5 13:32 tmpSB7_UO
-rw------- 1 root root 314 Jan 5 13:32 chef-script20110105-838-qwhllp-0
-rw-r–r-- 1 root root 73 Jan 5 13:32 piplog


Oddly, when I look at the machine after the chef run, I see all the code. The logs don’t indicate anything much else happening - this from a different run:

[default] [Wed, 05 Jan 2011 13:46:34 -0800] INFO: Ran execute[Set up virtual environment] successfully
[Wed, 05 Jan 2011 13:46:34 -0800] INFO: Setting owner to 1002 for file[/srv/smartpages/id_deploy]
[Wed, 05 Jan 2011 13:46:34 -0800] INFO: Setting group to 1002 for file[/srv/smartpages/id_deploy]
[Wed, 05 Jan 2011 13:46:34 -0800] INFO: Setting mode to 600 for file[/srv/smartpages/id_deploy]
[Wed, 05 Jan 2011 13:46:35 -0800] INFO: Storing updated cookbooks/application/templates/default/deploy-ssh-wrapper.erb in the cache.
[Wed, 05 Jan 2011 13:46:35 -0800] INFO: Writing updated content for template[/srv/smartpages/deploy-ssh-wrapper] to /srv/smartpages/deploy-ssh-wrapper
: stdout
[default] [Wed, 05 Jan 2011 13:46:38 -0800] INFO: deploying branch: master
[Wed, 05 Jan 2011 13:46:38 -0800] INFO: ensuring proper ownership
[Wed, 05 Jan 2011 13:46:38 -0800] INFO: updating the cached checkout
[Wed, 05 Jan 2011 13:46:38 -0800] INFO: Cloning repo git@github.com:tbgdigital/tbg-smartpages.git to /srv/smartpages/shared/cached-copy
: stdout
[default] [Wed, 05 Jan 2011 13:46:46 -0800] INFO: Checking out branch: master reference: 74c62d657835d6a473bae62e1b7ee466fdb74ce6
: stdout
[default] [Wed, 05 Jan 2011 13:46:46 -0800] INFO: copying the cached checkout to /srv/smartpages/releases/74c62d657835d6a473bae62e1b7ee466fdb74ce6
: stdout
[default] [Wed, 05 Jan 2011 13:46:46 -0800] INFO: ensuring proper ownership
[Wed, 05 Jan 2011 13:46:47 -0800] INFO: Running callback before_migrate code block
[default] [Wed, 05 Jan 2011 13:46:47 -0800] ERROR: bash[Install pip requirements] (/srv/chef/cache/cookbooks/application/recipes/django.rb:84:in from_file') had an error: "bash" "/tmp/chef-script20110105-833-1hdcmmo-0" returned 2, expected 0 /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:184:inhandle_command_failures’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/mixin/command.rb:131:in run_command' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/execute.rb:49:inaction_run’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/script.rb:33:in action_run' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:insend’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:51:in run_action' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:109:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:108:in each' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection.rb:94
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:116:in call' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:85:in step' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:initerate’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:92:inexecute_each_resource’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:82:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider.rb:74:inrecipe_eval’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/deploy.rb:130:in callback' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/deploy.rb:115:indeploy’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/deploy.rb:70:in action_deploy' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:insend’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:51:in run_action' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:109:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:108:in each' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection.rb:94
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:116:in call' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:85:in step' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:initerate’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:92:inexecute_each_resource’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:82:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:304:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/client.rb:106:in run' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:212:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application/client.rb:202:in loop' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application.rb:62:in run' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/chef-client:26 /usr/bi: stdout [default] n/chef-client:19:inload’
/usr/bin/chef-client:19
[Wed, 05 Jan 2011 13:46:47 -0800] ERROR: deploy[smartpages] (/srv/chef/cache/cookbooks/application/recipes/django.rb:74:in from_file') had an error: "bash" "/tmp/chef-script20110105-833-1hdcmmo-0" returned 2, expected 0 /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:184:inhandle_command_failures’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/mixin/command.rb:131:in run_command' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/execute.rb:49:inaction_run’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/script.rb:33:in action_run' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:insend’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:51:in run_action' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:109:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:108:in each' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection.rb:94
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:116:in call' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:85:in step' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:initerate’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:92:inexecute_each_resource’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:82:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider.rb:74:inrecipe_eval’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/deploy.rb:130:in callback' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/deploy.rb:115:indeploy’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/deploy.rb:70:in action_deploy' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:insend’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:51:in run_action' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:109:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:108:in each' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection.rb:94
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:116:in call' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:85:in step' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:initerate’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_index' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:92:inexecute_each_resource’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:82:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:304:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/client.rb:106:in run' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:212:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application/client.rb:202:in loop' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application.rb:62:in run' /usr/lib/ruby/gems/1.8/gem: stdout [default] s/chef-0.9.8/bin/chef-client:26 /usr/bin/chef-client:19:inload’
/usr/bin/chef-client:19
[Wed, 05 Jan 2011 13:46:47 -0800] ERROR: Running exception handlers
[Wed, 05 Jan 2011 13:46:47 -0800] ERROR: Exception handlers complete
[Wed, 05 Jan 2011 13:46:47 -0800] ERROR: Re-raising exception: Chef::Exceptions::Exec - “bash” “/tmp/chef-script20110105-833-1hdcmmo-0” returned 2, expected 0
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/mixin/command.rb:184:in handle_command_failures' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:131:inrun_command’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/execute.rb:49:in action_run' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/script.rb:33:inaction_run’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:51:in send' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:inrun_action’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:109:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:ineach’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:108:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:94 /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:116:in call_iterator_block' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:instep’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:104:in iterate' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:ineach_with_index’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection.rb:92:in execute_each_resource' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:82:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider.rb:74:in recipe_eval' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/deploy.rb:130:incallback’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/deploy.rb:115:in deploy' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/deploy.rb:70:inaction_deploy’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:51:in send' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:inrun_action’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:109:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:ineach’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:108:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:94 /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:116:in call_iterator_block' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:instep’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:104:in iterate' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:ineach_with_index’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection.rb:92:in execute_each_resource' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:82:inconverge’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/client.rb:304:in converge' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:106:inrun’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application/client.rb:212:in run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:inloop’
/usr/lib/ruby/gems/1: stdout
[default] /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/mixin/command.rb:184:in handle_command_failures': stderr [default] : : stderr [default] "bash" "/tmp/chef-script20110105-833-1hdcmmo-0" returned 2, expected 0: stderr [default] (: stderr [default] Chef::Exceptions::Exec: stderr [default] ) : stderr [default] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/mixin/command.rb:131:inrun_command’
: stderr
[default] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/execute.rb:49:in action_run' : stderr [default] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/script.rb:33:inaction_run’
: stderr
[default] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:51:in send' : stderr [default] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:inrun_action’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:109:in converge' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:ineach’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:108:in converge' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:94 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:116:in call_iterator_block' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:instep’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:104:in iterate' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:ineach_with_index’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection.rb:92:in execute_each_resource' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:82:inconverge’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider.rb:74:in recipe_eval' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/deploy.rb:130:incallback’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/provider/deploy.rb:115:in deploy' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/provider/deploy.rb:70:inaction_deploy’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:51:in send' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:51:inrun_action’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:109:in converge' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:108:ineach’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/runner.rb:108:in converge' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection.rb:94 from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:incall’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:116:in call_iterator_block' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:instep’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection/stepable_iterator.rb:104:in iterate' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:ineach_with_index’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/resource_collection.rb:92:in execute_each_resource' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/runner.rb:82:inconverge’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/client.rb:304:in converge' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/client.rb:106:inrun’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application/client.rb:212:in run_application' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:inloop’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application/client.rb:202:in run_application' from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/../lib/chef/application.rb:62:inrun’
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/chef-client:26
from /usr/bin/chef-client:19:in load' from /usr/bin/chef-client:19 : stderr [default] .8/gems/chef-0.9.8/bin/../lib/chef/application/client.rb:202:inrun_application’
/usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/…/lib/chef/application.rb:62:in run' /usr/lib/ruby/gems/1.8/gems/chef-0.9.8/bin/chef-client:26 /usr/bin/chef-client:19:inload’
/usr/bin/chef-client:19
: stdout

cd /srv/smartpages/releases/74c62d657835d6a473bae62e1b7ee466fdb74ce6/ vagrant@vagrantup:/srv/smartpages/releases/74c62d657835d6a473bae62e1b7ee466fdb74ce6 ls
Capfile config DEPLOY.txt DEVELOP.txt legacy_deploy.txt live-pip-requirements.txt pageserver pip-requirements-dev.txt pip-requirements.txt pixelserver README _shell.py _shell_startup.py smartpages static

I’ve tried also calling the cached copy in shared, but get the same results.

Any idea what I am missing? How should I achieve the goal of running a command against a file that will always be in the candidate release?

S.