engineyard / ey-cloud-recipes

A starter repo for custom chef recipes on EY's cloud platform. These are for reference, and do not indicate a supported status.
http://www.engineyard.com/products/cloud
Other
981 stars 291 forks source link

exim recipe causes a "Cannot find a preferred file for exim!" error #19

Closed pgmcgee closed 13 years ago

pgmcgee commented 13 years ago

I commented out the exim_auth portion of main/recipes/default.rb, filled in my credentials and updated the environment, but I get the following error:

[Tue, 23 Aug 2011 17:24:03 -0700] INFO: Starting Chef Solo Run
[Tue, 23 Aug 2011 17:24:04 -0700] INFO: Deleting directory[/etc/ssmtp] recursively at /etc/ssmtp
[Tue, 23 Aug 2011 17:24:04 -0700] INFO: Creating a symbolic link from /data/ssmtp -> /etc/ssmtp for link[/etc/ssmtp]
[Tue, 23 Aug 2011 17:24:04 -0700] INFO: Updating remote_file[/etc/logrotate.d/nginx] at /etc/logrotate.d/nginx
[Tue, 23 Aug 2011 17:24:04 -0700] INFO: Setting mode to 655 for remote_file[/etc/logrotate.d/nginx]
[Tue, 23 Aug 2011 17:24:04 -0700] INFO: Added cron 'logrotate -f /etc/logrotate.d/nginx'
[Tue, 23 Aug 2011 17:24:05 -0700] INFO: Ran execute[touch /etc/ssmtp/ssmtp.conf] successfully
[Tue, 23 Aug 2011 17:24:06 -0700] ERROR: remote_file[/etc/logrotate.d/exim] (/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/recipe.rb line 187) had an error:
Cannot find a preferred file for exim!
/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/mixin/find_preferred_file.rb:91:in `find_preferred_file'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/provider/remote_file.rb:120:in `get_from_local_cookbook'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/provider/remote_file.rb:55:in `do_remote_file'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/provider/remote_file.rb:34:in `action_create'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:87:in `send'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:87:in `converge'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:85:in `each'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:85:in `converge'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/resource_collection.rb:58:in `each'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/resource_collection.rb:57:in `each'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:63:in `converge'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:348:in `converge'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:96:in `run_solo'/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/bin/chef-solo:94/usr/local/ey_resin/ruby/bin/chef-solo:19:in `load'/usr/local/ey_resin/ruby/bin/chef-solo:19
/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/mixin/find_preferred_file.rb:91:in `find_preferred_file': Cannot find a preferred file for exim! (Chef::Exceptions::FileNotFound)
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/provider/remote_file.rb:120:in `get_from_local_cookbook'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/provider/remote_file.rb:55:in `do_remote_file'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/provider/remote_file.rb:34:in `action_create'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:87:in `send'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:87:in `converge'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:85:in `each'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:85:in `converge'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/resource_collection.rb:58:in `each'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/resource_collection.rb:57:in `each'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/runner.rb:63:in `converge'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:348:in `converge'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:96:in `run_solo'
  from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/bin/chef-solo:94
  from /usr/local/ey_resin/ruby/bin/chef-solo:19:in `load'
  from /usr/local/ey_resin/ruby/bin/chef-solo:19
damm commented 13 years ago

Looks like there was an extension dropped off the filename, sorry about that. It should be corrected now.

Thanks for reporting it!