Hi, I’m having a strange issue that appears to be tied to logroate with Passenger. I’ve upgraded everything associated with the project but still encounter this error.
Passenger 4.0.5
Apache/2.2.15
Rvm 1.20.13
The problem occurs daily and here is the error in passenger_debug.log
[ 2013-06-19 04:41:50.4874 5612/7fbc25204700 agents/HelperAgent/RequestHandler.h:1889 ]: [Client 22] Cannot checkout session. An error occured while starting up the preloader.
Error page:
Could not find i18n-0.6.4 in any of the sources (Bundler::GemNotFound)
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize'
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
/home/localruby/.rvm/gems/ruby-1.9.3-p429@global/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>'
/home/localruby/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
/home/localruby/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
/home/localruby/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/home/localruby/.rvm/gems/ruby-1....@redmine-2.2.3/gems/passenger-4.0.5/lib/phusion_passenger/loader_shared_helpers.rb:212:in `run_load_path_setup_code'
/home/localruby/.rvm/gems/ruby-1....@redmine-2.2.3/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:73:in `preload_app'
/home/localruby/.rvm/gems/ruby-1....@redmine-2.2.3/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:127:in `<module:App>'
/home/localruby/.rvm/gems/ruby-1....@redmine-2.2.3/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:6:in `<module:PhusionPassenger>'
/home/localruby/.rvm/gems/ruby-1....@redmine-2.2.3/gems/passenger-4.0.5/helper-scripts/rack-preloader.rb:5:in `<main>'
[ 2013-06-19 04:46:50.1980 5612/7fbc247c2700 Pool2/Spawner.h:739 ]: [App 9189 stdout]
[ 2013-06-19 04:46:50.3672 5612/7fbc247c2700 Pool2/Implementation.cpp:774 ]: Could not spawn process for group /var/www/redmine#default: An error occured while starting up the preloader.
in 'void Passenger::ApplicationPool2::SmartSpawner::handleErrorResponse(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:455)
in 'std::string Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:558)
in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:206)
in 'virtual Passenger::ApplicationPool2::ProcessPtr Passenger::ApplicationPool2::SmartSpawner::spawn(const Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:744)
in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const Passenger::ApplicationPool2::SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:707)
Here are the passenger configs:
LoadModule passenger_module /home/localruby/.rvm/gems/ruby-1....@redmine-2.2.3/gems/passenger-4.0.5/libout/apache2/mod_passenger.so
PassengerSpawnMethod smart
PassengerPoolIdleTime 1000
RailsAppSpawnerIdleTime 0
PassengerMaxRequests 5000
PassengerMinInstances 1
PassengerLogLevel 3
PassengerDebugLogFile /var/log/httpd/passenger_debug.log
Restarting apache fixes the problem, which is occurring daily at around 3:30 AM.
Any ideas as to what would cause this?
Hongli,
I have the debug value for the log set at PassengerLogLevel 3 The process died again yesterday after the lograte command was issued. Is there somewhere I can send you the passenger_debug.log or a unique link to download it? I can paste a subset of the log but I don't want to leave something out that might help track this down. It happens nearly every week and when it does it always after this appears in the log:
[Sun Jun 30 03:33:12 2013] [notice] SIGHUP received. Attempting to restart
For now I've attached a snippet of the log.