Having issues getting Puppet running under Passenger. From httpd error_log: [ pid=24647 thr=268010020 file=utils.rb:176 time=2011-10-04 11:45:10.892 ]: *** Exception LoadError in PhusionPassenger::Rack::ApplicationSpawner (no such file to load -- puppet/application/master) (process 24647, thread #<Thread: 0x0000001ff30448>): from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/ 1.9.1/rubygems/custom_require.rb:36:in `require'' from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/ 1.9.1/rubygems/custom_require.rb:36:in `require'' from config.ru:13:in `block in <main>'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/ rack/builder.rb:51:in `instance_eval'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/ rack/builder.rb:51:in `initialize'' from config.ru:1:in `new'' from config.ru:1:in `<main>'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/rack/application_spawner.rb:222:in `eval'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/rack/application_spawner.rb:222:in `load_rack_app'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/rack/application_spawner.rb:156:in `block in initialize_server'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/utils.rb:572:in `report_app_init_status'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/rack/application_spawner.rb:153:in `initialize_server'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/abstract_server.rb:204:in `start_synchronously'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/abstract_server.rb:180:in `start'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/rack/application_spawner.rb:128:in `start'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'' from <internal:prelude>:10:in `synchronize'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/ helper-scripts/passenger-spawn-server:99:in `<main>'' - Installed Puppet and Facter from the latest tarballs. - Installed Ruby 1.9.2 and rack/passenger gems from RVM. - Used httpd and config.ru snippets from latest git version. - Verified PassengerRoot, PassengerRuby, and all SSL-related directives in httpd are configured properly. - DocRoot is /etc/puppet/rack/puppetmaster/public/, config.ru lives in /etc/puppet/rack/puppetmaster and is owned by puppet:puppet. I''m not a Ruby master, but it just looks like the Puppet libraries aren''t being loaded for some reason and I can''t figure out why. I''m at the end of my rope, Google has exceeded its usefulness. Any help that could be lent would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> - Installed Puppet and Facter from the latest tarballs. > - Installed Ruby 1.9.2 and rack/passenger gems from RVM.If you installed puppet via tarball, and ruby/rack/passenger via RVM it could be that puppet isn''t in the RUBYLIB. You may need to edit the config.ru to specify where puppet is - the config.ru has a commented section with the following, which you may need to uncomment: # if puppet is not in your RUBYLIB: # $:.unshift(''/opt/puppet/lib'') -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks for your suggestion, Devon. I tried uncommenting that line in config.ru and restarting httpd, but continue to get the same error. I did verify that the libs are in the proper location. [root@server ~]# stat /opt/puppet/lib/puppet.rb File: `/opt/puppet/lib/puppet.rb'' Size: 3773 Blocks: 8 IO Block: 4096 regular file Device: 805h/2053d Inode: 42600516 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 501/ puppet) Gid: ( 502/ puppet) Access: 2011-09-21 15:56:12.000000000 -0400 Modify: 2011-08-06 15:27:03.000000000 -0400 Change: 2011-10-06 10:28:53.000000000 -0400 Any other ideas? On Oct 5, 1:24 pm, devon <devon.pet...@gmail.com> wrote:> > - Installed Puppet and Facter from the latest tarballs. > > - Installed Ruby 1.9.2 and rack/passenger gems from RVM. > > If you installed puppet via tarball, and ruby/rack/passenger via RVM > it could be that puppet isn''t in the RUBYLIB. You may need to edit > the config.ru to specify where puppet is - the config.ru has a > commented section with the following, which you may need to uncomment: > > # if puppet is not in your RUBYLIB: > # $:.unshift(''/opt/puppet/lib'')-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Correction. I''m not sure what config.ru I changed but it obviously wasn''t the right one. Now I''m getting errors about not being able to load Facter but I''m pretty sure I can sort it out from here. Thanks for your help Devon. On Oct 6, 10:40 am, William <wsti...@gmail.com> wrote:> Thanks for your suggestion, Devon. I tried uncommenting that line in > config.ru and restarting httpd, but continue to get the same error. I > did verify that the libs are in the proper location. > > [root@server ~]# stat /opt/puppet/lib/puppet.rb > File: `/opt/puppet/lib/puppet.rb'' > Size: 3773 Blocks: 8 IO Block: 4096 regular > file > Device: 805h/2053d Inode: 42600516 Links: 1 > Access: (0664/-rw-rw-r--) Uid: ( 501/ puppet) Gid: ( 502/ > puppet) > Access: 2011-09-21 15:56:12.000000000 -0400 > Modify: 2011-08-06 15:27:03.000000000 -0400 > Change: 2011-10-06 10:28:53.000000000 -0400 > > Any other ideas? > > On Oct 5, 1:24 pm, devon <devon.pet...@gmail.com> wrote: > > > > > > > > > > - Installed Puppet and Facter from the latest tarballs. > > > - Installed Ruby 1.9.2 and rack/passenger gems from RVM. > > > If you installed puppet via tarball, and ruby/rack/passenger via RVM > > it could be that puppet isn''t in the RUBYLIB. You may need to edit > > the config.ru to specify where puppet is - the config.ru has a > > commented section with the following, which you may need to uncomment: > > > # if puppet is not in your RUBYLIB: > > # $:.unshift(''/opt/puppet/lib'')-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
IIRC there are issues with Puppet and Ruby 1.9.2 specifically with ssl. You could be running into something like this, http://groups.google.com/group/puppet-users/browse_thread/thread/fa49f1b9b36ceac6/72bf694d4e2f3012 However if you''re planning to run this instance in production I''d use Ruby 1.8.7. Ramin On Oct 6, 10:44 am, William <wsti...@gmail.com> wrote:> Correction. I''m not sure what config.ru I changed but it obviously > wasn''t the right one. Now I''m getting errors about not being able to > load Facter but I''m pretty sure I can sort it out from here. Thanks > for your help Devon. > > On Oct 6, 10:40 am, William <wsti...@gmail.com> wrote: > > > > > > > > > Thanks for your suggestion, Devon. I tried uncommenting that line in > > config.ru and restarting httpd, but continue to get the same error. I > > did verify that the libs are in the proper location. > > > [root@server ~]# stat /opt/puppet/lib/puppet.rb > > File: `/opt/puppet/lib/puppet.rb'' > > Size: 3773 Blocks: 8 IO Block: 4096 regular > > file > > Device: 805h/2053d Inode: 42600516 Links: 1 > > Access: (0664/-rw-rw-r--) Uid: ( 501/ puppet) Gid: ( 502/ > > puppet) > > Access: 2011-09-21 15:56:12.000000000 -0400 > > Modify: 2011-08-06 15:27:03.000000000 -0400 > > Change: 2011-10-06 10:28:53.000000000 -0400 > > > Any other ideas? > > > On Oct 5, 1:24 pm, devon <devon.pet...@gmail.com> wrote: > > > > > - Installed Puppet and Facter from the latest tarballs. > > > > - Installed Ruby 1.9.2 and rack/passenger gems from RVM. > > > > If you installed puppet via tarball, and ruby/rack/passenger via RVM > > > it could be that puppet isn''t in the RUBYLIB. You may need to edit > > > the config.ru to specify where puppet is - the config.ru has a > > > commented section with the following, which you may need to uncomment: > > > > # if puppet is not in your RUBYLIB: > > > # $:.unshift(''/opt/puppet/lib'')-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Apparently Analagous Threads
- "GET /production/certificate/puppet-client2.tcl-oob.net? HTTP/1.1" 500 11298 "-" "-"
- Facing probme with image upload rails 2.3.4, ruby 1.9.2 with papaerclip
- active admin undefined method `' for nil:NilClass
- Sqlite gem not found with rails3
- dashboard 1.1.1 with filebucket doesn't show contents of the new file