Larry Fast
2013-Aug-12 19:53 UTC
[Puppet Users] Passenger-Rack error 500: no such file to load -- rack
I have a puppetmaster running within passenger+rack. It has been running properly for almost a year and decided to stop working on the weekend. Now I''m getting the Purple "Ruby (Rack) application could not be started" screen with Error: no such file to load -- rack Application: /data1/rack/puppetmaster The backtrace is uninspiring. Snippets include: /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb in `gem_original_require'' /usr/share/rubygems/gems/passenger-3.0.17/lib/phusion_passenger/rack/application_spawner.rb in `load_rack_app'' I can only guess that a file went missing or got corrupted but have no idea where to look. I tried reinstalling Puppet 3.2.2, passenger & rack with no change in behaviour. Suggestions? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Denmat
2013-Aug-12 22:21 UTC
Re: [Puppet Users] Passenger-Rack error 500: no such file to load -- rack
Hi, Try loading rack in the ruby irb console. The other thing is depending on your version of puppet an passenger you will need a particular rack version. Do a gem list and see if you have more than one rack gem installed and remove any that may have been recently upgraded. Can be a bit fiddly. Den On 13/08/2013, at 5:53, Larry Fast <lfast1234@gmail.com> wrote:> I have a puppetmaster running within passenger+rack. It has been running properly for almost a year and decided to stop working on the weekend. Now I''m getting the Purple "Ruby (Rack) application could not be started" screen with > Error: no such file to load -- rack > Application: /data1/rack/puppetmaster > The backtrace is uninspiring. Snippets include: > /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb in `gem_original_require'' > /usr/share/rubygems/gems/passenger-3.0.17/lib/phusion_passenger/rack/application_spawner.rb in `load_rack_app'' > > I can only guess that a file went missing or got corrupted but have no idea where to look. I tried reinstalling Puppet 3.2.2, passenger & rack with no change in behaviour. Suggestions? > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Larry Fast
2013-Aug-13 16:19 UTC
Re: [Puppet Users] Passenger-Rack error 500: no such file to load -- rack
Thanks Denmat, It was probably crosstalk between gems and RPMs. Turns out that the rubygems RPM was missing some files. Likely cause was accidentally installing and uninstalling rubygems via non-rpm. Reinstalling the RPM fixed the problem. For the benefit of others, here''s how we found the problem. rpm -V <packages> - this checks for pieces missing from the rpm rpm -e --nodeps <package> - this removes the offending package and ignores the dependencies yum install <package> - this reinstalls the package AND rebuilds the dependency tree -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.