Skip to content

Instantly share code, notes, and snippets.

@topfunky
Created October 10, 2012 23:34
Show Gist options
  • Save topfunky/3869224 to your computer and use it in GitHub Desktop.
Save topfunky/3869224 to your computer and use it in GitHub Desktop.
Troubleshooting chef-solo

Troubleshooting chef-solo

Re: PeepCode screencast on Meet Chef

  • Is the VM running? Try vagrant up
  • Can you connect to the VM? Try vagrant ssh
  • Did chef-solo -j /etc/chef/node.json run without error?
  • Did chef-solo install the nginx package? You should see Run List is [recipe[nginx]]
  • Is Nginx running on the VM? Try ps aux | grep nginx
  • Does the webserver respond on the VM? Run curl -I http://localhost from inside the VM. You should see Server: nginx in the output.
  • Can you view http://33.33.33.10/ in your desktop browser? It will show a 404 error, but from Nginx (which proves that it's running).
  • On your laptop, open the Virtual Box GUI and look at the settings. Does the Network tab show Host-only Adapter?

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment