Chef Server start problem


#1

Hello,

I am trying to configure Chef server piece-by-piece. I have successfully
installed all the required components. When I try to start the Chef Server
using the command “sudo chef-server -N -e production”, I get the following
error:

Merb root at:
/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/chef-server-api-10.24.0
~ No Gemfile found! If you’re generating new app with merb-gen this is fine,
otherwise run: bundle init to create Gemfile
Loading init file from ./config/init.rb
/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in
require': no such file to load -- chef/webui_user (LoadError) from /home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:inrescue in require’
from
/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in
require' from /home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/chef-server-api-10.24.0/config/init.rb:34:in<top (required)>'
from
/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in
load' from /home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:inload_initfile’
from
/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in
run' from /home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:inrun’
from
/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in
bootup' from /home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:instart’
from
/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core.rb:165:in
start' from /home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/chef-server-api-10.24.0/bin/chef-server:84:in<top (required)>‘
from /home/epius/.rvm/rubies/ruby-1.9.2-p320/bin/chef-server:19:in
load' from /home/epius/.rvm/rubies/ruby-1.9.2-p320/bin/chef-server:19:in


#2
  1. chef server does not belong to any environment, you can run chef client
    in the server which may belong to some environment
  2. which version you are using? starting chef 11, servers are distributed
    as omnibus installer. And they are written in erlang, it relatively easy to
    install / manage them

On Thu, Mar 14, 2013 at 11:12 AM, Edward Pius epius@expedia.com wrote:

Hello,

I am trying to configure Chef server piece-by-piece. I have successfully
installed all the required components. When I try to start the Chef Server
using the command “sudo chef-server -N -e production”, I get the following
error:

Merb root at:

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/chef-server-api-10.24.0
~ No Gemfile found! If you’re generating new app with merb-gen this is
fine,
otherwise run: bundle init to create Gemfile
Loading init file from ./config/init.rb

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in
`require’: no such file to load – chef/webui_user (LoadError)
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in
`rescue in require’
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in
`require’
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/chef-server-api-10.24.0/config/init.rb:34:in
`<top (required)>'
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in
`load’
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:529:in
`load_initfile’
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:377:in
`run’
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/bootloader.rb:97:in
`run’
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/server.rb:172:in
`bootup’
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core/server.rb:42:in
`start’
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/merb-core-1.1.3/lib/merb-core.rb:165:in
`start’
from

/home/epius/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/gems/1.9.1/gems/chef-server-api-10.24.0/bin/chef-server:84:in
<top (required)>' from /home/epius/.rvm/rubies/ruby-1.9.2-p320/bin/chef-server:19:inload’
from /home/epius/.rvm/rubies/ruby-1.9.2-p320/bin/chef-server:19:in
`’