xdissent / chef-hatch-repo

Hatch - Easily create a live, self-managed Chef server
http://xdissent.github.com/chef-hatch-repo/
38 stars 10 forks source link

Failure at end of chef server provisioning #6

Open jperry opened 12 years ago

jperry commented 12 years ago

Hi,

I get a failure at the end of the chef server provisioning see output

root@chef:/vagrant# rake hatch:init['hatch']
Registering hatch
[2012-06-26T03:30:46+02:00] WARN: Failed to read the private key /etc/chef/validation.pem: #<Errno::ENOENT: No such file or directory - /etc/chef/validation.pem>
rake aborted!
I cannot read /etc/chef/validation.pem, which you told me to use to sign requests!

Tasks: TOP => hatch:init

Any suggestions?

jperry commented 12 years ago

I dug in a little further and it looks to be failing with memory issues.

[2012-06-27T22:08:48+02:00] INFO: Sending client(0fc4b3b8-bbd1-4c22-b8aa-2df45c916c93) to the index queue for deletion..
/usr/lib/ruby/gems/1.8/gems/bunny-0.8.0/lib/qrack/client.rb:191:in `read': failed to allocate memory (NoMemoryError)
jperry commented 12 years ago

When it goes to run the rake command:

cd /vagrant && rake hatch:init['hatch']

The server is down because of the memory issues. Increasing the memory on the vm didn't fix the issue. Please take a look when have a sec.

Thanks, Jay

scalp42 commented 12 years ago

I'm running into the same error.

jperry commented 12 years ago

Anthony,

Check out knife server:

http://fnichol.github.com/knife-server/

scalp42 commented 12 years ago

Jason

Thanks for the tip! Looking into it.