Created
September 8, 2012 16:52
-
-
Save eklein/3677089 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trying to run chef-solo to bootstrap chef-server on OEL 6.2.. I installed chef-client via the omnibus installer. | |
I went through and modified all the recipes to include support for the oracle platform type, but now i'm getting a ruby error: | |
[2012-09-08T10:51:32-06:00] INFO: *** Chef 10.14.0 *** | |
[2012-09-08T10:51:33-06:00] INFO: Setting the run_list to ["recipe[chef-server::rubygems-install]"] from JSON | |
[2012-09-08T10:51:33-06:00] INFO: Run List is [recipe[chef-server::rubygems-install]] | |
[2012-09-08T10:51:33-06:00] INFO: Run List expands to [chef-server::rubygems-install] | |
[2012-09-08T10:51:33-06:00] INFO: Starting Chef Run for bld-chefserver-01.f4tech.com | |
[2012-09-08T10:51:33-06:00] INFO: Running start handlers | |
[2012-09-08T10:51:33-06:00] INFO: Start handlers complete. | |
================================================================================ | |
Recipe Compile Error in /tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb | |
================================================================================ | |
Errno::ENOENT | |
------------- | |
No such file or directory - nil/gems/chef-10.14.0/distro/redhat/etc/sysconfig/chef-solr | |
Cookbook Trace: | |
--------------- | |
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:203:in `read' | |
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:203:in `block in from_file' | |
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:202:in `each' | |
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb:202:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/tmp/chef-solo/cookbooks/chef-server/recipes/rubygems-install.rb: | |
196: ["redhat", "centos", "fedora", "amazon", "oracle"] => { "default" => "sysconfig"} | |
197: ) | |
198: | |
199: chef_version = node['chef_packages']['chef']['version'] | |
200: gems_dir = node['languages']['ruby']['gems_dir'] | |
201: | |
202: server_services.each do |svc| | |
203>> conf_content = IO.read("#{gems_dir}/gems/chef-#{chef_version}/distro/#{dist_dir}/etc/#{conf_dir}/#{svc}") | |
204: | |
205: template "/etc/init.d/#{svc}" do | |
206: source "#{dist_dir}/init.d/#{svc}.erb" | |
207: mode 0755 | |
208: end | |
209: | |
210: file "/etc/#{conf_dir}/#{svc}" do | |
211: content conf_content | |
212: mode 0644 | |
[2012-09-08T10:51:33-06:00] ERROR: Running exception handlers | |
[2012-09-08T10:51:33-06:00] ERROR: Exception handlers complete | |
[2012-09-08T10:51:33-06:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out | |
[2012-09-08T10:51:33-06:00] FATAL: Errno::ENOENT: No such file or directory - nil/gems/chef-10.14.0/distro/redhat/etc/sysconfig/chef-solr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turns out this was a problem with trying to run the chef-server bootstrap after installing chef via omnibus. I went back and installed chef via "gem install chef" and everything worked great with the chef-server bootstrap.