a-chernykh / railsbox

Fast and easy Ruby on Rails virtual machines
https://railsbox.io
MIT License
320 stars 52 forks source link

vagrant up stuck at "create and migrate db". log says "I cannot read /etc/chef/validation.pem" #15

Closed lmorris99 closed 9 years ago

lmorris99 commented 9 years ago

My first attempt to use Vagrant (I set it up with Railsbox); After unzipping the myapp-railsbox.zip file, and cd-ing to the railsbox directory, "vagrant up" went happily through many steps, but is now stuck here:

TASK: [unicorn | Create upstart config] ***

changed: [myapp]

TASK: [webserver | Create and migrate DB] *****

I poked around in /var/log, and found this in /var/log/chef/client.log [2015-03-10T19:14:21+00:00] WARN: Failed to read the private key /etc/chef/validation.pem: #<Errno::ENOENT: No such file or directory - /etc/chef/validation.pem>

[2015-03-10T19:14:21+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out

[2015-03-10T19:14:21+00:00] ERROR: I cannot read /etc/chef/validation.pem, which you told me to use to sign requests!

[2015-03-10T19:14:21+00:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

[2015-03-10T19:14:21+00:00] ERROR: Sleeping for 1800 seconds before trying again

So I guess that's the source of the problem: missing /etc/chef/validation.pem.

Googling around hasn't helped.

Any thoughts or advice?

a-chernykh commented 9 years ago

Well I don't think it's related to chef anyhow because railsbox is not using chef. Can you post full output of vagrant up?