- From: Mathieu Martin <
>
- To: "
" <
>
- Subject: [chef] can't start chef server
- Date: Thu, 20 Dec 2012 17:39:33 -0500
I've never installed chef server. But could this simply be that you need to run 'bundle install' from the Rails app's directory? This looks like a missing gem.
Mat
On Thursday, December 20, 2012, Tim Dunphy wrote:
Hello, list
I'm having a problem starting chef server under ubutnu 12.04. I hope you don't mind me including the problem in a pastebin format but I think that might be a clearer way to see what may be going on.
Thanks
Tim
chef server won't start on ubuntu 12.04
|
chef-server -N -e production
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- chef/couchdb (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef/environment.rb:25
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef/node.rb:31
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef/search/query.rb:22
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef/mixin/language.rb:19
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef/resource.rb:22
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef/resource/file.rb:20
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef/provider/file.rb:21
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef/provider/cookbook_file.rb:20
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef/providers.rb:20
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/vendor_ruby/chef.rb:25
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/gems/1.8/gems/chef-server-api-10.16.2/bin/chef-server:38
from /usr/bin/chef-server:19:in `load'
from /usr/bin/chef-server:19
|
followed all the steps in this document successfully
And couchdb is listening on 5984
|
[root@chef:~] #lsof -i :5984
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
beam 12399 couchdb 10u IPv4 92559 0t0 TCP localhost:5984 (LISTEN)
|
chef expander went fine
| [root@chef:/tmp/gecode-3.5.0] #chef-expander -n1
[Thu, 20 Dec 2012 12:28:22 -0500] WARN: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[Thu, 20 Dec 2012 12:28:22 -0500] WARN: Config file /etc/chef/solr.rb does not exist or cannot be read by user (0)
[Thu, 20 Dec 2012 12:28:22 -0500] WARN: Default configuration settings will be used
[Thu, 20 Dec 2012 12:28:22 -0500] WARN: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[Thu, 20 Dec 2012 12:28:22 -0500] INFO: Chef Expander 10.16.2 starting cluster with 1 nodes
[Thu, 20 Dec 2012 12:28:22 -0500] INFO: Starting cluster worker 1
[Thu, 20 Dec 2012 12:28:22 -0500] INFO: Starting Consumers for vnodes 0-1023
|
chef solr is running
|
[root@chef:~] #ps -ef | grep solr | grep -v grep
root 9106 9091 0 12:31 pts/2 00:00:04 java -Xmx256M -Xms256M -Dsolr.data.dir=/var/chef/solr/data -Dsolr.solr.home=/var/chef/solr -jar /var/chef/solr-jetty/start.jar
# machine info
[root@chef:~] #uname -a
Linux chef 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"
|
so what could be the prob?
Thanks,
Tim
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
--
----
I'm web and mobile consultant. My main field of expertise is Ruby on Rails and everything web, including mobile web solutions. Let me know if you need a great software artist.
If you're a tech person, the following may make sense to you.
I'm the author of git_remote_branch. A tool that's been helping common mortals like me share git branches for 5 years. Downloaded 40 000 times.
I've also contributed to some of the popular libraries in the Rails, jQuery and PhoneGap ecosystems:
paperclip, active_admin, AssetSync, jquery-ujs, jquery-rails, phonegap-plugin-facebook-connect, kaminari, shoulda, woulda, jeweler.
If you visit them on GitHub you'll see my face in the "Contributors" section :-)
Archive powered by MHonArc 2.6.16.