Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to bootstrap chef-server on Amazon Linux 64-bit instance, but for some reason chef-solo gives some errors. It seems that chef can't determine that Amazon Linux is actually a RedHat derivate and use redhat config. Is there any easy workaround for that?

Here is crash dump:

[Fri, 02 Mar 2012 07:52:44 +0000] INFO: Start handlers complete.
[Fri, 02 Mar 2012 07:52:44 +0000] ERROR: Running exception handlers
[Fri, 02 Mar 2012 07:52:44 +0000] ERROR: Exception handlers complete
[Fri, 02 Mar 2012 07:52:44 +0000] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[Fri, 02 Mar 2012 07:52:44 +0000] FATAL: Errno::ENOENT: No such file or directory 
- /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/distro//etc/init.d/chef-solr
share|improve this question
How are you invoking chef-solo? – cjc Mar 2 '12 at 12:28
I am getting the same error and I invoke it as follows (just as detailed on the wiki): sudo chef-solo -c /etc/chef/solo.rb -j chef.json -r – user112787 Mar 3 '12 at 20:53

Although, amazon is based of Fedora/EL, the problem is that the platform is known as "amazon". The cookbooks are hardcoded to run on "centos", "redhat", "fedora" or "ubuntu", etc.

The solution is to host a custom version of the bootstrap.tar.gz somewhere, which has 'amazon' as the list of the supported platforms inside the metadata.rb of all cookbooks.


share|improve this answer
This is the correct answer. Testing is done by Opscode on Ubuntu, Debian, CentOS, and RHEL. We do not test on Fedora, AmazonLinux or other "EL-alike" flavors because simply, they're not nearly as widely used, and testing takes time. – jtimberman Mar 13 '12 at 1:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.