# application\_python!?!?!

**URL:** <https://discourse.chef.io/t/application-python/4367>\
**Category:** Chef Infra (archive)\
**Created:** [August 27, 2013, 3:28pm UTC](https://discourse.chef.io/t/application-python/4367 "2013-08-27T15:28:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Alexander](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/justin_alexander/32/497_2.png) [@Justin\_Alexander](https://discourse.chef.io/u/Justin_Alexander)\
**Post date:** [August 27, 2013, 3:28pm UTC](https://discourse.chef.io/t/application-python/4367/1 "2013-08-27T15:28:08Z")

</div>

I keep getting the same error, no matter what I do. I am still a Chef-Noob.  
Can anyone give me a clue?

Inside of a Vagrant image, I am trying to make a working test of the demo  
at:

> **[poise/application\_python](https://github.com/poise/application_python)**
>
> A Chef cookbook to deploy Python applications. Contribute to poise/application\_python development by creating an account on GitHub.

It runs until I get the error:

[2013-08-27T14:41:21+00:00] INFO: Processing  
application\_python\_django[packaginator] action before\_deploy  
(bluevine::default line 115)  
[2013-08-27T14:41:21+00:00] WARN: Failed to read the private key  
/etc/chef/client.pem: #\<Errno::ENOENT: No such file or directory -  
/etc/chef/client.pem\>

# ================================================================================ Error executing action `before_deploy` on resource 'application\_python\_django[packaginator]'

## Chef::Exceptions::PrivateKeyMissing

I cannot read /etc/chef/client.pem, which you told me to use to sign  
requests!

## Cookbook Trace:

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in  
`find_matching_role' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in `find\_database\_server'  
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in  
`created_settings_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application_python/providers/django.rb:40:in `class\_from\_file'  
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in  
`before_deploy' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `each'  
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
`before\_deploy'

Resource Declaration:

* * *

# In

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb

114: Chef::Log.debug "Trying to load application resource  
#{resource\_name} for #{name}"  
115: resource = super(resource\_name.to\_sym, self.name, &block)  
116: break

## Compiled Resource:

# Declared in

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:115:in  
`method\_missing'

application\_python\_django("packaginator") do  
retry\_delay 2  
type :django  
database {"engine"=\>"postgresql\_psycopg2",  
"password"=\>"awesome\_password", "username"=\>"packaginator",  
"database"=\>"packaginator"}  
settings\_template "settings.py.erb"  
local\_settings\_file "local\_settings.py"  
packages ["redis"]  
retries 0  
recipe\_name "default"  
symlink\_before\_migrate {"local\_settings.py"=\>"local\_settings.py"}  
migration\_command "/srv/packaginator/shared/env/bin/python manage.py  
syncdb --noinput"  
database\_master\_role "packaginator\_database\_master"  
debug true  
action [:nothing]  
cookbook\_name :bluevine  
requirements "requirements/mkii.txt"  
collectstatic "build\_static --noinput"  
end

# ================================================================================ Error executing action `create` on resource 'ruby\_block[packaginator before\_deploy]'

## Chef::Exceptions::PrivateKeyMissing

application\_python\_django[packaginator] (bluevine::default line 115) had an  
error: Chef::Exceptions::PrivateKeyMissing: I cannot read  
/etc/chef/client.pem, which you told me to use to sign requests!

## Cookbook Trace:

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in  
`find_matching_role' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in `find\_database\_server'  
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in  
`created_settings_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application_python/providers/django.rb:40:in `class\_from\_file'  
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in  
`before_deploy' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `each'  
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
`before\_deploy'

## Resource Declaration:

# In

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb

106:  
107: ruby\_block "#{new\_resource.name} before\_deploy" do  
108: block do  
109: new\_resource.sub\_resources.each do |resource|  
110: resource.run\_action :before\_deploy  
111: end  
112: callback(:before\_deploy, new\_resource.before\_deploy)  
113: end  
114: end  
115: end

## Compiled Resource:

# Declared in

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:107:in  
`before\_deploy'

ruby\_block("packaginator before\_deploy") do  
retry\_delay 2  
retries 0  
action "create"  
cookbook\_name :bluevine  
block #\<Proc:0x00007f80a05da4a8@  
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:108\>  
end

[2013-08-27T14:41:21+00:00] ERROR: Running exception handlers  
[2013-08-27T14:41:21+00:00] ERROR: Exception handlers complete  
[2013-08-27T14:41:21+00:00] FATAL: Stacktrace dumped to  
/tmp/vagrant-chef-1/chef-stacktrace.out  
[2013-08-27T14:41:21+00:00] FATAL: Chef::Exceptions::PrivateKeyMissing:  
ruby\_block[packaginator before\_deploy]  
(/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb  
line 107) had an error: Chef::Exceptions::PrivateKeyMissing:  
application\_python\_django[packaginator] (bluevine::default line 115) had an  
error: Chef::Exceptions::PrivateKeyMissing: I cannot read  
/etc/chef/client.pem, which you told me to use to sign requests!  
Chef never successfully completed! Any errors should be visible in the  
output above. Please fix your recipes so that they properly complete.

---

<div class="post-metadata">

**Author:** ![coderanger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/coderanger/32/5_2.png) [@coderanger](https://discourse.chef.io/u/coderanger)\
**Post date:** [August 27, 2013, 4:42pm UTC](https://discourse.chef.io/t/application-python/4367/2 "2013-08-27T16:42:37Z")

</div>

The example as written is not compatible with chef-solo because it uses the search API. You can modify to hard-code the hostnames for the database server and application servers (presumably in your case both are just ['localhost']).

--Noah

On Aug 27, 2013, at 8:28 AM, Justin Alexander wrote:

> I keep getting the same error, no matter what I do. I am still a Chef-Noob. Can anyone give me a clue?
> 
> Inside of a Vagrant image, I am trying to make a working test of the demo at:  
> [GitHub - poise/application\_python: A Chef cookbook to deploy Python applications.](https://github.com/opscode-cookbooks/application_python)
> 
> It runs until I get the error:
> 
> [2013-08-27T14:41:21+00:00] INFO: Processing application\_python\_django[packaginator] action before\_deploy (bluevine::default line 115)  
> [2013-08-27T14:41:21+00:00] WARN: Failed to read the private key /etc/chef/client.pem: #\<Errno::ENOENT: No such file or directory - /etc/chef/client.pem\>
> 
> # ================================================================================ Error executing action `before_deploy` on resource 'application\_python\_django[packaginator]'
> 
> ## Chef::Exceptions::PrivateKeyMissing
> 
> I cannot read /etc/chef/client.pem, which you told me to use to sign requests!
> 
> ## Cookbook Trace:
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in `find_matching_role' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in `find\_database\_server'  
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in `created_settings_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application_python/providers/django.rb:40:in `class\_from\_file'  
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in `before_deploy' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `each'  
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `before\_deploy'
> 
> Resource Declaration:
> 
> * * *
> 
> # In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb
> 
> 114: Chef::Log.debug "Trying to load application resource #{resource\_name} for #{name}"  
> 115: resource = super(resource\_name.to\_sym, self.name, &block)  
> 116: break
> 
> ## Compiled Resource:
> 
> # Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:115:in `method\_missing'
> 
> application\_python\_django("packaginator") do  
> retry\_delay 2  
> type :django  
> database {"engine"=\>"postgresql\_psycopg2", "password"=\>"awesome\_password", "username"=\>"packaginator", "database"=\>"packaginator"}  
> settings\_template "settings.py.erb"  
> local\_settings\_file "local\_settings.py"  
> packages ["redis"]  
> retries 0  
> recipe\_name "default"  
> symlink\_before\_migrate {"local\_settings.py"=\>"local\_settings.py"}  
> migration\_command "/srv/packaginator/shared/env/bin/python manage.py syncdb --noinput"  
> database\_master\_role "packaginator\_database\_master"  
> debug true  
> action [:nothing]  
> cookbook\_name :bluevine  
> requirements "requirements/mkii.txt"  
> collectstatic "build\_static --noinput"  
> end
> 
> # ================================================================================ Error executing action `create` on resource 'ruby\_block[packaginator before\_deploy]'
> 
> ## Chef::Exceptions::PrivateKeyMissing
> 
> application\_python\_django[packaginator] (bluevine::default line 115) had an error: Chef::Exceptions::PrivateKeyMissing: I cannot read /etc/chef/client.pem, which you told me to use to sign requests!
> 
> ## Cookbook Trace:
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in `find_matching_role' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in `find\_database\_server'  
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in `created_settings_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application_python/providers/django.rb:40:in `class\_from\_file'  
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in `before_deploy' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `each'  
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `before\_deploy'
> 
> ## Resource Declaration:
> 
> # In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb
> 
> 106:  
> 107: ruby\_block "#{new\_resource.name} before\_deploy" do  
> 108: block do  
> 109: new\_resource.sub\_resources.each do |resource|  
> 110: resource.run\_action :before\_deploy  
> 111: end  
> 112: callback(:before\_deploy, new\_resource.before\_deploy)  
> 113: end  
> 114: end  
> 115: end
> 
> ## Compiled Resource:
> 
> # Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:107:in `before\_deploy'
> 
> ruby\_block("packaginator before\_deploy") do  
> retry\_delay 2  
> retries 0  
> action "create"  
> cookbook\_name :bluevine  
> block #Proc:0x00007f80a05da4a8@/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:108  
> end
> 
> [2013-08-27T14:41:21+00:00] ERROR: Running exception handlers  
> [2013-08-27T14:41:21+00:00] ERROR: Exception handlers complete  
> [2013-08-27T14:41:21+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out  
> [2013-08-27T14:41:21+00:00] FATAL: Chef::Exceptions::PrivateKeyMissing: ruby\_block[packaginator before\_deploy] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb line 107) had an error: Chef::Exceptions::PrivateKeyMissing: application\_python\_django[packaginator] (bluevine::default line 115) had an error: Chef::Exceptions::PrivateKeyMissing: I cannot read /etc/chef/client.pem, which you told me to use to sign requests!  
> Chef never successfully completed! Any errors should be visible in the  
> output above. Please fix your recipes so that they properly complete.

---

<div class="post-metadata">

**Author:** ![Justin\_Alexander](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/justin_alexander/32/497_2.png) [@Justin\_Alexander](https://discourse.chef.io/u/Justin_Alexander)\
**Post date:** [August 27, 2013, 5:06pm UTC](https://discourse.chef.io/t/application-python/4367/3 "2013-08-27T17:06:28Z")

</div>

Thankyou so much!!!!!!!!!

I was able to locate and comment out the search code. Is there a  
configuration based way to do this that would be less hacky?

On Tue, Aug 27, 2013 at 7:42 PM, Noah Kantrowitz [noah@coderanger.net](mailto:noah@coderanger.net)wrote:

> The example as written is not compatible with chef-solo because it uses  
> the search API. You can modify to hard-code the hostnames for the database  
> server and application servers (presumably in your case both are just  
> ['localhost']).
> 
> --Noah
> 
> On Aug 27, 2013, at 8:28 AM, Justin Alexander wrote:
> 
> > I keep getting the same error, no matter what I do. I am still a  
> > Chef-Noob. Can anyone give me a clue?
> > 
> > Inside of a Vagrant image, I am trying to make a working test of the  
> > demo at:  
> > [GitHub - poise/application\_python: A Chef cookbook to deploy Python applications.](https://github.com/opscode-cookbooks/application_python)
> > 
> > It runs until I get the error:
> > 
> > [2013-08-27T14:41:21+00:00] INFO: Processing  
> > application\_python\_django[packaginator] action before\_deploy  
> > (bluevine::default line 115)  
> > [2013-08-27T14:41:21+00:00] WARN: Failed to read the private key  
> > /etc/chef/client.pem: #\<Errno::ENOENT: No such file or directory -  
> > /etc/chef/client.pem\>
> 
> ================================================================================
> 
> > Error executing action `before_deploy` on resource  
> > 'application\_python\_django[packaginator]'
> 
> ================================================================================
> 
> > ## Chef::Exceptions::PrivateKeyMissing
> > 
> > I cannot read /etc/chef/client.pem, which you told me to use to sign  
> > requests!
> > 
> > ## Cookbook Trace:
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in  
> `find\_matching\_role'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in  
> `find\_database\_server'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in  
> `created\_settings\_file'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:40:in  
> `class\_from\_file'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in  
> `before\_deploy'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> `each'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> `before\_deploy'
> 
> > Resource Declaration:
> > 
> > * * *
> > 
> > # In
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb
> 
> > 114: Chef::Log.debug "Trying to load application resource  
> > #{resource\_name} for #{name}"  
> > 115: resource = super(resource\_name.to\_sym, self.name, &block)  
> > 116: break
> > 
> > ## Compiled Resource:
> > 
> > # Declared in
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:115:in  
> `method\_missing'
> 
> > application\_python\_django("packaginator") do  
> > retry\_delay 2  
> > type :django  
> > database {"engine"=\>"postgresql\_psycopg2",  
> > "password"=\>"awesome\_password", "username"=\>"packaginator",  
> > "database"=\>"packaginator"}  
> > settings\_template "settings.py.erb"  
> > local\_settings\_file "local\_settings.py"  
> > packages ["redis"]  
> > retries 0  
> > recipe\_name "default"  
> > symlink\_before\_migrate {"local\_settings.py"=\>"local\_settings.py"}  
> > migration\_command "/srv/packaginator/shared/env/bin/python manage.py  
> > syncdb --noinput"  
> > database\_master\_role "packaginator\_database\_master"  
> > debug true  
> > action [:nothing]  
> > cookbook\_name :bluevine  
> > requirements "requirements/mkii.txt"  
> > collectstatic "build\_static --noinput"  
> > end
> 
> ================================================================================
> 
> > Error executing action `create` on resource 'ruby\_block[packaginator  
> > before\_deploy]'
> 
> ================================================================================
> 
> > ## Chef::Exceptions::PrivateKeyMissing
> > 
> > application\_python\_django[packaginator] (bluevine::default line 115) had  
> > an error: Chef::Exceptions::PrivateKeyMissing: I cannot read  
> > /etc/chef/client.pem, which you told me to use to sign requests!
> > 
> > ## Cookbook Trace:
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in  
> `find\_matching\_role'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in  
> `find\_database\_server'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in  
> `created\_settings\_file'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:40:in  
> `class\_from\_file'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in  
> `before\_deploy'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> `each'
> 
> > 
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> `before\_deploy'
> 
> > ## Resource Declaration:
> > 
> > # In
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb
> 
> > 106:  
> > 107: ruby\_block "#{new\_resource.name} before\_deploy" do  
> > 108: block do  
> > 109: new\_resource.sub\_resources.each do |resource|  
> > 110: resource.run\_action :before\_deploy  
> > 111: end  
> > 112: callback(:before\_deploy, new\_resource.before\_deploy)  
> > 113: end  
> > 114: end  
> > 115: end
> > 
> > ## Compiled Resource:
> > 
> > # Declared in
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:107:in  
> `before\_deploy'
> 
> > ruby\_block("packaginator before\_deploy") do  
> > retry\_delay 2  
> > retries 0  
> > action "create"  
> > cookbook\_name :bluevine  
> > block #\<Proc:0x00007f80a05da4a8@  
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:108\>  
> > end
> > 
> > [2013-08-27T14:41:21+00:00] ERROR: Running exception handlers  
> > [2013-08-27T14:41:21+00:00] ERROR: Exception handlers complete  
> > [2013-08-27T14:41:21+00:00] FATAL: Stacktrace dumped to  
> > /tmp/vagrant-chef-1/chef-stacktrace.out  
> > [2013-08-27T14:41:21+00:00] FATAL: Chef::Exceptions::PrivateKeyMissing:  
> > ruby\_block[packaginator before\_deploy]  
> > (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb  
> > line 107) had an error: Chef::Exceptions::PrivateKeyMissing:  
> > application\_python\_django[packaginator] (bluevine::default line 115) had an  
> > error: Chef::Exceptions::PrivateKeyMissing: I cannot read  
> > /etc/chef/client.pem, which you told me to use to sign requests!  
> > Chef never successfully completed! Any errors should be visible in the  
> > output above. Please fix your recipes so that they properly complete.

---

<div class="post-metadata">

**Author:** ![coderanger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/coderanger/32/5_2.png) [@coderanger](https://discourse.chef.io/u/coderanger)\
**Post date:** [August 27, 2013, 5:22pm UTC](https://discourse.chef.io/t/application-python/4367/4 "2013-08-27T17:22:19Z")

</div>

Yes, both the database config in the django block and the nginx config accept a manual override (#host in the database, #hosts in the nginx) which if present will make it not fall back to search().

--Noah

On Aug 27, 2013, at 10:06 AM, Justin Alexander wrote:

> Thankyou so much!!!!!!!!!
> 
> I was able to locate and comment out the search code. Is there a configuration based way to do this that would be less hacky?
> 
> On Tue, Aug 27, 2013 at 7:42 PM, Noah Kantrowitz [noah@coderanger.net](mailto:noah@coderanger.net) wrote:  
> The example as written is not compatible with chef-solo because it uses the search API. You can modify to hard-code the hostnames for the database server and application servers (presumably in your case both are just ['localhost']).
> 
> --Noah
> 
> On Aug 27, 2013, at 8:28 AM, Justin Alexander wrote:
> 
> > I keep getting the same error, no matter what I do. I am still a Chef-Noob. Can anyone give me a clue?
> > 
> > Inside of a Vagrant image, I am trying to make a working test of the demo at:  
> > [GitHub - poise/application\_python: A Chef cookbook to deploy Python applications.](https://github.com/opscode-cookbooks/application_python)
> > 
> > It runs until I get the error:
> > 
> > [2013-08-27T14:41:21+00:00] INFO: Processing application\_python\_django[packaginator] action before\_deploy (bluevine::default line 115)  
> > [2013-08-27T14:41:21+00:00] WARN: Failed to read the private key /etc/chef/client.pem: #\<Errno::ENOENT: No such file or directory - /etc/chef/client.pem\>
> > 
> > # ================================================================================ Error executing action `before_deploy` on resource 'application\_python\_django[packaginator]'
> > 
> > ## Chef::Exceptions::PrivateKeyMissing
> > 
> > I cannot read /etc/chef/client.pem, which you told me to use to sign requests!
> > 
> > ## Cookbook Trace:
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in `find_matching_role' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in `find\_database\_server'  
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in `created_settings_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application_python/providers/django.rb:40:in `class\_from\_file'  
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in `before_deploy' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `each'  
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `before\_deploy'
> > 
> > Resource Declaration:
> > 
> > * * *
> > 
> > # In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb
> > 
> > 114: Chef::Log.debug "Trying to load application resource #{resource\_name} for #{name}"  
> > 115: resource = super(resource\_name.to\_sym, self.name, &block)  
> > 116: break
> > 
> > ## Compiled Resource:
> > 
> > # Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:115:in `method\_missing'
> > 
> > application\_python\_django("packaginator") do  
> > retry\_delay 2  
> > type :django  
> > database {"engine"=\>"postgresql\_psycopg2", "password"=\>"awesome\_password", "username"=\>"packaginator", "database"=\>"packaginator"}  
> > settings\_template "settings.py.erb"  
> > local\_settings\_file "local\_settings.py"  
> > packages ["redis"]  
> > retries 0  
> > recipe\_name "default"  
> > symlink\_before\_migrate {"local\_settings.py"=\>"local\_settings.py"}  
> > migration\_command "/srv/packaginator/shared/env/bin/python manage.py syncdb --noinput"  
> > database\_master\_role "packaginator\_database\_master"  
> > debug true  
> > action [:nothing]  
> > cookbook\_name :bluevine  
> > requirements "requirements/mkii.txt"  
> > collectstatic "build\_static --noinput"  
> > end
> > 
> > # ================================================================================ Error executing action `create` on resource 'ruby\_block[packaginator before\_deploy]'
> > 
> > ## Chef::Exceptions::PrivateKeyMissing
> > 
> > application\_python\_django[packaginator] (bluevine::default line 115) had an error: Chef::Exceptions::PrivateKeyMissing: I cannot read /etc/chef/client.pem, which you told me to use to sign requests!
> > 
> > ## Cookbook Trace:
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in `find_matching_role' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in `find\_database\_server'  
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in `created_settings_file' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application_python/providers/django.rb:40:in `class\_from\_file'  
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in `before_deploy' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `each'  
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in `before\_deploy'
> > 
> > ## Resource Declaration:
> > 
> > # In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb
> > 
> > 106:  
> > 107: ruby\_block "#{new\_resource.name} before\_deploy" do  
> > 108: block do  
> > 109: new\_resource.sub\_resources.each do |resource|  
> > 110: resource.run\_action :before\_deploy  
> > 111: end  
> > 112: callback(:before\_deploy, new\_resource.before\_deploy)  
> > 113: end  
> > 114: end  
> > 115: end
> > 
> > ## Compiled Resource:
> > 
> > # Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:107:in `before\_deploy'
> > 
> > ruby\_block("packaginator before\_deploy") do  
> > retry\_delay 2  
> > retries 0  
> > action "create"  
> > cookbook\_name :bluevine  
> > block #Proc:0x00007f80a05da4a8@/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:108  
> > end
> > 
> > [2013-08-27T14:41:21+00:00] ERROR: Running exception handlers  
> > [2013-08-27T14:41:21+00:00] ERROR: Exception handlers complete  
> > [2013-08-27T14:41:21+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out  
> > [2013-08-27T14:41:21+00:00] FATAL: Chef::Exceptions::PrivateKeyMissing: ruby\_block[packaginator before\_deploy] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb line 107) had an error: Chef::Exceptions::PrivateKeyMissing: application\_python\_django[packaginator] (bluevine::default line 115) had an error: Chef::Exceptions::PrivateKeyMissing: I cannot read /etc/chef/client.pem, which you told me to use to sign requests!  
> > Chef never successfully completed! Any errors should be visible in the  
> > output above. Please fix your recipes so that they properly complete.

---

<div class="post-metadata">

**Author:** ![Justin\_Alexander](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/justin_alexander/32/497_2.png) [@Justin\_Alexander](https://discourse.chef.io/u/Justin_Alexander)\
**Post date:** [August 27, 2013, 5:41pm UTC](https://discourse.chef.io/t/application-python/4367/5 "2013-08-27T17:41:16Z")

</div>

THANKS!!!

also I found this: [GitHub - edelight/chef-solo-search: Data bag search for Chef Solo](https://github.com/edelight/chef-solo-search)

On Tue, Aug 27, 2013 at 8:22 PM, Noah Kantrowitz [noah@coderanger.net](mailto:noah@coderanger.net)wrote:

> Yes, both the database config in the django block and the nginx config  
> accept a manual override (#host in the database, #hosts in the nginx) which  
> if present will make it not fall back to search().
> 
> --Noah
> 
> On Aug 27, 2013, at 10:06 AM, Justin Alexander wrote:
> 
> > Thankyou so much!!!!!!!!!
> > 
> > I was able to locate and comment out the search code. Is there a  
> > configuration based way to do this that would be less hacky?
> > 
> > On Tue, Aug 27, 2013 at 7:42 PM, Noah Kantrowitz [noah@coderanger.net](mailto:noah@coderanger.net)  
> > wrote:  
> > The example as written is not compatible with chef-solo because it uses  
> > the search API. You can modify to hard-code the hostnames for the database  
> > server and application servers (presumably in your case both are just  
> > ['localhost']).
> > 
> > --Noah
> > 
> > On Aug 27, 2013, at 8:28 AM, Justin Alexander wrote:
> > 
> > > I keep getting the same error, no matter what I do. I am still a  
> > > Chef-Noob. Can anyone give me a clue?
> > > 
> > > Inside of a Vagrant image, I am trying to make a working test of the  
> > > demo at:  
> > > [GitHub - poise/application\_python: A Chef cookbook to deploy Python applications.](https://github.com/opscode-cookbooks/application_python)
> > > 
> > > It runs until I get the error:
> > > 
> > > [2013-08-27T14:41:21+00:00] INFO: Processing  
> > > application\_python\_django[packaginator] action before\_deploy  
> > > (bluevine::default line 115)  
> > > [2013-08-27T14:41:21+00:00] WARN: Failed to read the private key  
> > > /etc/chef/client.pem: #\<Errno::ENOENT: No such file or directory -  
> > > /etc/chef/client.pem\>
> 
> ================================================================================
> 
> > > Error executing action `before_deploy` on resource  
> > > 'application\_python\_django[packaginator]'
> 
> ================================================================================
> 
> > > ## Chef::Exceptions::PrivateKeyMissing
> > > 
> > > I cannot read /etc/chef/client.pem, which you told me to use to sign  
> > > requests!
> > > 
> > > ## Cookbook Trace:
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in  
> `find\_matching\_role'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in  
> `find\_database\_server'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in  
> `created\_settings\_file'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:40:in  
> `class\_from\_file'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in  
> `before\_deploy'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> `each'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> `before\_deploy'
> 
> > > Resource Declaration:
> > > 
> > > * * *
> > > 
> > > # In
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb
> 
> > > 114: Chef::Log.debug "Trying to load application resource  
> > > #{resource\_name} for #{name}"  
> > > 115: resource = super(resource\_name.to\_sym, self.name, &block)  
> > > 116: break
> > > 
> > > ## Compiled Resource:
> > > 
> > > # Declared in
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:115:in  
> `method\_missing'
> 
> > > application\_python\_django("packaginator") do  
> > > retry\_delay 2  
> > > type :django  
> > > database {"engine"=\>"postgresql\_psycopg2",  
> > > "password"=\>"awesome\_password", "username"=\>"packaginator",  
> > > "database"=\>"packaginator"}  
> > > settings\_template "settings.py.erb"  
> > > local\_settings\_file "local\_settings.py"  
> > > packages ["redis"]  
> > > retries 0  
> > > recipe\_name "default"  
> > > symlink\_before\_migrate {"local\_settings.py"=\>"local\_settings.py"}  
> > > migration\_command "/srv/packaginator/shared/env/bin/python manage.py  
> > > syncdb --noinput"  
> > > database\_master\_role "packaginator\_database\_master"  
> > > debug true  
> > > action [:nothing]  
> > > cookbook\_name :bluevine  
> > > requirements "requirements/mkii.txt"  
> > > collectstatic "build\_static --noinput"  
> > > end
> 
> ================================================================================
> 
> > > Error executing action `create` on resource 'ruby\_block[packaginator  
> > > before\_deploy]'
> 
> ================================================================================
> 
> > > ## Chef::Exceptions::PrivateKeyMissing
> > > 
> > > application\_python\_django[packaginator] (bluevine::default line 115)  
> > > had an error: Chef::Exceptions::PrivateKeyMissing: I cannot read  
> > > /etc/chef/client.pem, which you told me to use to sign requests!
> > > 
> > > ## Cookbook Trace:
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in  
> `find\_matching\_role'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in  
> `find\_database\_server'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in  
> `created\_settings\_file'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:40:in  
> `class\_from\_file'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in  
> `before\_deploy'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> `each'
> 
> > >
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> `before\_deploy'
> 
> > > ## Resource Declaration:
> > > 
> > > # In
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb
> 
> > > 106:  
> > > 107: ruby\_block "#{new\_resource.name} before\_deploy" do  
> > > 108: block do  
> > > 109: new\_resource.sub\_resources.each do |resource|  
> > > 110: resource.run\_action :before\_deploy  
> > > 111: end  
> > > 112: callback(:before\_deploy, new\_resource.before\_deploy)  
> > > 113: end  
> > > 114: end  
> > > 115: end
> > > 
> > > ## Compiled Resource:
> > > 
> > > # Declared in
> 
> /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:107:in  
> `before\_deploy'
> 
> > > ruby\_block("packaginator before\_deploy") do  
> > > retry\_delay 2  
> > > retries 0  
> > > action "create"  
> > > cookbook\_name :bluevine  
> > > block #\<Proc:0x00007f80a05da4a8@  
> > > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:108\>  
> > > end
> > > 
> > > [2013-08-27T14:41:21+00:00] ERROR: Running exception handlers  
> > > [2013-08-27T14:41:21+00:00] ERROR: Exception handlers complete  
> > > [2013-08-27T14:41:21+00:00] FATAL: Stacktrace dumped to  
> > > /tmp/vagrant-chef-1/chef-stacktrace.out  
> > > [2013-08-27T14:41:21+00:00] FATAL:  
> > > Chef::Exceptions::PrivateKeyMissing: ruby\_block[packaginator before\_deploy]  
> > > (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb  
> > > line 107) had an error: Chef::Exceptions::PrivateKeyMissing:  
> > > application\_python\_django[packaginator] (bluevine::default line 115) had an  
> > > error: Chef::Exceptions::PrivateKeyMissing: I cannot read  
> > > /etc/chef/client.pem, which you told me to use to sign requests!  
> > > Chef never successfully completed! Any errors should be visible in the  
> > > output above. Please fix your recipes so that they properly complete.

---

<div class="post-metadata">

**Author:** ![John\_E\_Vincent\_lusis](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@John\_E\_Vincent\_lusis](https://discourse.chef.io/u/John_E_Vincent_lusis)\
**Post date:** [August 27, 2013, 6:14pm UTC](https://discourse.chef.io/t/application-python/4367/6 "2013-08-27T18:14:49Z")

</div>

Honestly, while that plugin is hella cool you are MUCH better off making a  
decision one way or the other if a cookbook will or will not support solo.  
The changes needed for that are so minimal that I can see no real need to  
require something external that would have to track upstream changes in the  
chef search API.

The logic needed to make a search-based recipe support solo can be boiled  
down to:

- Add attribute support for static definition of anything that would  
normally come back from a search result
- Add a conditional logic to use static attributes instead of search results
- Additionally, you can also favor static definitions of attributes over  
search results either by default (use static first and fallback to search  
if available) or as an attribute flag (node['foobar']['use\_static'] = true)

I tend to prefer the second approach in the last bullet as I don't want an  
accidental attribute overriding search results.

Regardless, as a side effect you get a much more community friendly  
cookbook and one that is more testable.

On Tue, Aug 27, 2013 at 1:41 PM, Justin Alexander \<  
[justin.alexander@bluevine.com](mailto:justin.alexander@bluevine.com)\> wrote:

> THANKS!!!
> 
> also I found this: [GitHub - edelight/chef-solo-search: Data bag search for Chef Solo](https://github.com/edelight/chef-solo-search)
> 
> On Tue, Aug 27, 2013 at 8:22 PM, Noah Kantrowitz [noah@coderanger.net](mailto:noah@coderanger.net)wrote:
> 
> > Yes, both the database config in the django block and the nginx config  
> > accept a manual override (#host in the database, #hosts in the nginx) which  
> > if present will make it not fall back to search().
> > 
> > --Noah
> > 
> > On Aug 27, 2013, at 10:06 AM, Justin Alexander wrote:
> > 
> > > Thankyou so much!!!!!!!!!
> > > 
> > > I was able to locate and comment out the search code. Is there a  
> > > configuration based way to do this that would be less hacky?
> > > 
> > > On Tue, Aug 27, 2013 at 7:42 PM, Noah Kantrowitz [noah@coderanger.net](mailto:noah@coderanger.net)  
> > > wrote:  
> > > The example as written is not compatible with chef-solo because it uses  
> > > the search API. You can modify to hard-code the hostnames for the database  
> > > server and application servers (presumably in your case both are just  
> > > ['localhost']).
> > > 
> > > --Noah
> > > 
> > > On Aug 27, 2013, at 8:28 AM, Justin Alexander wrote:
> > > 
> > > > I keep getting the same error, no matter what I do. I am still a  
> > > > Chef-Noob. Can anyone give me a clue?
> > > > 
> > > > Inside of a Vagrant image, I am trying to make a working test of the  
> > > > demo at:  
> > > > [GitHub - poise/application\_python: A Chef cookbook to deploy Python applications.](https://github.com/opscode-cookbooks/application_python)
> > > > 
> > > > It runs until I get the error:
> > > > 
> > > > [2013-08-27T14:41:21+00:00] INFO: Processing  
> > > > application\_python\_django[packaginator] action before\_deploy  
> > > > (bluevine::default line 115)  
> > > > [2013-08-27T14:41:21+00:00] WARN: Failed to read the private key  
> > > > /etc/chef/client.pem: #\<Errno::ENOENT: No such file or directory -  
> > > > /etc/chef/client.pem\>
> > 
> > ================================================================================
> > 
> > > > Error executing action `before_deploy` on resource  
> > > > 'application\_python\_django[packaginator]'
> > 
> > ================================================================================
> > 
> > > > ## Chef::Exceptions::PrivateKeyMissing
> > > > 
> > > > I cannot read /etc/chef/client.pem, which you told me to use to sign  
> > > > requests!
> > > > 
> > > > ## Cookbook Trace:
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in  
> > `find\_matching\_role'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in  
> > `find\_database\_server'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in  
> > `created\_settings\_file'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:40:in  
> > `class\_from\_file'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in  
> > `before\_deploy'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> > `each'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> > `before\_deploy'
> > 
> > > > Resource Declaration:
> > > > 
> > > > * * *
> > > > 
> > > > # In
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb
> > 
> > > > 114: Chef::Log.debug "Trying to load application resource  
> > > > #{resource\_name} for #{name}"  
> > > > 115: resource = super(resource\_name.to\_sym, self.name, &block)  
> > > > 116: break
> > > > 
> > > > ## Compiled Resource:
> > > > 
> > > > # Declared in
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/resources/default.rb:115:in  
> > `method\_missing'
> > 
> > > > application\_python\_django("packaginator") do  
> > > > retry\_delay 2  
> > > > type :django  
> > > > database {"engine"=\>"postgresql\_psycopg2",  
> > > > "password"=\>"awesome\_password", "username"=\>"packaginator",  
> > > > "database"=\>"packaginator"}  
> > > > settings\_template "settings.py.erb"  
> > > > local\_settings\_file "local\_settings.py"  
> > > > packages ["redis"]  
> > > > retries 0  
> > > > recipe\_name "default"  
> > > > symlink\_before\_migrate {"local\_settings.py"=\>"local\_settings.py"}  
> > > > migration\_command "/srv/packaginator/shared/env/bin/python  
> > > > manage.py syncdb --noinput"  
> > > > database\_master\_role "packaginator\_database\_master"  
> > > > debug true  
> > > > action [:nothing]  
> > > > cookbook\_name :bluevine  
> > > > requirements "requirements/mkii.txt"  
> > > > collectstatic "build\_static --noinput"  
> > > > end
> > 
> > ================================================================================
> > 
> > > > Error executing action `create` on resource 'ruby\_block[packaginator  
> > > > before\_deploy]'
> > 
> > ================================================================================
> > 
> > > > ## Chef::Exceptions::PrivateKeyMissing
> > > > 
> > > > application\_python\_django[packaginator] (bluevine::default line 115)  
> > > > had an error: Chef::Exceptions::PrivateKeyMissing: I cannot read  
> > > > /etc/chef/client.pem, which you told me to use to sign requests!
> > > > 
> > > > ## Cookbook Trace:
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:102:in  
> > `find\_matching\_role'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/libraries/default.rb:120:in  
> > `find\_database\_server'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:131:in  
> > `created\_settings\_file'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application\_python/providers/django.rb:40:in  
> > `class\_from\_file'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:110:in  
> > `before\_deploy'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> > `each'
> > 
> > > >
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:109:in  
> > `before\_deploy'
> > 
> > > > ## Resource Declaration:
> > > > 
> > > > # In
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb
> > 
> > > > 106:  
> > > > 107: ruby\_block "#{new\_resource.name} before\_deploy" do  
> > > > 108: block do  
> > > > 109: new\_resource.sub\_resources.each do |resource|  
> > > > 110: resource.run\_action :before\_deploy  
> > > > 111: end  
> > > > 112: callback(:before\_deploy, new\_resource.before\_deploy)  
> > > > 113: end  
> > > > 114: end  
> > > > 115: end
> > > > 
> > > > ## Compiled Resource:
> > > > 
> > > > # Declared in
> > 
> > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:107:in  
> > `before\_deploy'
> > 
> > > > ruby\_block("packaginator before\_deploy") do  
> > > > retry\_delay 2  
> > > > retries 0  
> > > > action "create"  
> > > > cookbook\_name :bluevine  
> > > > block #\<Proc:0x00007f80a05da4a8@  
> > > > /tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb:108\>  
> > > > end
> > > > 
> > > > [2013-08-27T14:41:21+00:00] ERROR: Running exception handlers  
> > > > [2013-08-27T14:41:21+00:00] ERROR: Exception handlers complete  
> > > > [2013-08-27T14:41:21+00:00] FATAL: Stacktrace dumped to  
> > > > /tmp/vagrant-chef-1/chef-stacktrace.out  
> > > > [2013-08-27T14:41:21+00:00] FATAL:  
> > > > Chef::Exceptions::PrivateKeyMissing: ruby\_block[packaginator before\_deploy]  
> > > > (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application/providers/default.rb  
> > > > line 107) had an error: Chef::Exceptions::PrivateKeyMissing:  
> > > > application\_python\_django[packaginator] (bluevine::default line 115) had an  
> > > > error: Chef::Exceptions::PrivateKeyMissing: I cannot read  
> > > > /etc/chef/client.pem, which you told me to use to sign requests!  
> > > > Chef never successfully completed! Any errors should be visible in the  
> > > > output above. Please fix your recipes so that they properly complete.
