chef-hatch-repo icon indicating copy to clipboard operation
chef-hatch-repo copied to clipboard

Failure at end of chef server provisioning

Open jperry opened this issue 13 years ago • 5 comments

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 avatar Jun 26 '12 01:06 jperry

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 avatar Jun 28 '12 13:06 jperry

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

jperry avatar Jul 02 '12 19:07 jperry

I'm running into the same error.

scalp42 avatar Jul 16 '12 00:07 scalp42

Anthony,

Check out knife server:

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

jperry avatar Jul 16 '12 00:07 jperry

Jason

Thanks for the tip! Looking into it.

scalp42 avatar Jul 16 '12 00:07 scalp42