dispatch.fcgi has failed to remain running
Added by Den Iskandarov about 12 years ago
now i have problem with fastCGI which can't execute dispatch.fcgi
Getting next error:
[Thu Aug 30 18:23:46 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 18:23:46 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 18:23:49 2012] [error] [client 192.168.0.11] FastCGI: comm with (dynamic) server "/var/www/redmine/public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec) [Thu Aug 30 18:23:49 2012] [error] [client 192.168.0.11] FastCGI: incomplete headers (0 bytes) received from server "/var/www/redmine/public/dispatch.fcgi" [Thu Aug 30 18:23:49 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 18:23:49 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 18:23:49 2012] [error] [client 192.168.0.11] File does not exist: /var/www/html/favicon.ico
I read that problem can be in passenger
removed it via yum (because initialy i've installed it from repository)
and installed it via passenger-install-apache2-module
While installing like this i'm showed with interactive automated setup which find all requirments in system. But not installing mod_passenger.so in httpd modules folder.
Tried several times and nothing.
- LOCAL GEMS ***
passenger (3.0.12)
after this retried to install it via yum
but same error with FastCGI
Can't get redmine working...
System parameters
CentOS 6.3 i386 Httpd 2.2.15 PHP 5.3.3 Redmine 2.0.3 ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-linux] gem -v 1.3.7
RAILS_ENV=production script/about Environment: Redmine version 2.0.3.stable Ruby version 1.8.7 (i386-linux) Rails version 3.2.6 Environment production Database adapter MySQL Redmine plugins: no plugin installed
gem query *** LOCAL GEMS *** actionmailer (3.2.6) actionpack (3.2.6) activemodel (3.2.6) activerecord (3.2.6) activeresource (3.2.6) activesupport (3.2.6) arel (3.0.2) builder (3.0.0) bundler (1.1.5) coderay (1.0.7) daemon_controller (0.2.6) erubis (2.7.0) fastercsv (1.5.5) fastthread (1.0.7) fcgi (0.8.8) hike (1.2.1) i18n (0.6.0) journey (1.0.4) json (1.7.5) mail (2.4.4) mime-types (1.19) multi_json (1.3.6) mysql (2.8.1) mysql2 (0.3.11) net-ldap (0.3.1) passenger (3.0.12) polyglot (0.3.3) prototype-rails (3.2.1) rack (1.4.1, 1.1.0) rack-cache (1.2) rack-openid (1.3.1) rack-ssl (1.3.2) rack-test (0.6.1) rails (3.2.6) railties (3.2.6) rake (0.9.2.2, 0.8.7) rdoc (3.12) rmagick (2.13.1) ruby-openid (2.1.8) sprockets (2.1.3) thor (0.16.0) tilt (1.3.3) treetop (1.4.10) tzinfo (0.3.33)
Replies (2)
RE: dispatch.fcgi has failed to remain running
-
Added by Den Iskandarov about 12 years ago
Heeeelp, whats wrong. I have exactly followed all tutorials. what did i miss?
Removed yum installed and gem installed passenger "i have left both"
Installed from tarball 3.0.17 which did all compilation and creaded mod_passenger.so
No luck.
Full httpd error_log:
[Thu Aug 30 22:02:55 2012] [notice] caught SIGTERM, shutting down [Thu Aug 30 22:02:55 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Aug 30 22:02:55 2012] [notice] Digest: generating secret for digest authentication ... [Thu Aug 30 22:02:55 2012] [notice] Digest: done [Thu Aug 30 22:02:55 2012] [notice] FastCGI: process manager initialized (pid 5704) [Thu Aug 30 22:02:55 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fastcgi/2.4.6 Phusion_Passenger/3.0.17 PHP/5.3.3 configured -- resuming normal operations [Thu Aug 30 22:03:02 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" started (pid 5738) /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:396:in `real_connect': Access denied for user 'root'@'localhost' (using password: NO) (Mysql::Error) from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:396:in `connect' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:131:in `initialize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `new' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `mysql_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `send' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:319:in `checkout_new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:241:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `loop' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `checkout' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:233:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:96:in `connection' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:95:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:404:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/model_schema.rb:308:in `clear_cache!' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/railtie.rb:97:in `_callback_before_3' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:418:in `_run__798977579__prepare__4__callbacks' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `send' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `send' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application/finisher.rb:47 from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `send' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing' from /var/www/redmine/public/../config/environment.rb:14 from /var/www/redmine/public/dispatch.fcgi:4:in `require' from /var/www/redmine/public/dispatch.fcgi:4 [Thu Aug 30 22:03:03 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" (pid 5738) terminated by calling exit with status '1' [Thu Aug 30 22:03:07 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" restarted (pid 5746) [Thu Aug 30 22:03:08 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" started (pid 5747) /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:396:in `real_connect': Access denied for user 'root'@'localhost' (using password: NO) (Mysql::Error) from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:396:in `connect' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:131:in `initialize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `new' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `mysql_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `send' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:319:in `checkout_new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:241:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `loop' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `checkout' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:233:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:96:in `connection' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:95:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:404:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/model_schema.rb:308:in `clear_cache!' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/railtie.rb:97:in `_callback_before_3' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:418:in `_run__522667987__prepare__4__callbacks' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `send' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `send' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application/finisher.rb:47 from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `send' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing' from /var/www/redmine/public/../config/environment.rb:14 from /var/www/redmine/public/dispatch.fcgi:4:in `require' from /var/www/redmine/public/dispatch.fcgi:4 [Thu Aug 30 22:03:10 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" (pid 5746) terminated by calling exit with status '1' /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:396:in `real_connect': Access denied for user 'root'@'localhost' (using password: NO) (Mysql::Error) from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:396:in `connect' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:131:in `initialize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `new' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `mysql_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `send' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:319:in `checkout_new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:241:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `loop' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `checkout' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:233:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:96:in `connection' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:95:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:404:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/model_schema.rb:308:in `clear_cache!' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/railtie.rb:97:in `_callback_before_3' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:418:in `_run__456855353__prepare__4__callbacks' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `send' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `send' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application/finisher.rb:47 from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `send' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing' from /var/www/redmine/public/../config/environment.rb:14 from /var/www/redmine/public/dispatch.fcgi:4:in `require' from /var/www/redmine/public/dispatch.fcgi:4 [Thu Aug 30 22:03:11 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" (pid 5747) terminated by calling exit with status '1' [Thu Aug 30 22:03:13 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" restarted (pid 5750) /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:396:in `real_connect': Access denied for user 'root'@'localhost' (using password: NO) (Mysql::Error) from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:396:in `connect' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:131:in `initialize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `new' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:38:in `mysql_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `send' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:319:in `checkout_new_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:241:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `loop' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `checkout' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:233:in `checkout' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:96:in `connection' from /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:95:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:404:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:168:in `retrieve_connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:142:in `connection' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/model_schema.rb:308:in `clear_cache!' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/railtie.rb:97:in `_callback_before_3' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:418:in `_run__239376754__prepare__4__callbacks' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `send' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `send' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!' from /usr/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application/finisher.rb:47 from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `send' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing' from /var/www/redmine/public/../config/environment.rb:14 from /var/www/redmine/public/dispatch.fcgi:4:in `require' from /var/www/redmine/public/dispatch.fcgi:4 [Thu Aug 30 22:03:15 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" (pid 5750) terminated by calling exit with status '1' [Thu Aug 30 22:03:15 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:17 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:20 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:20 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:23 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:23 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:26 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:26 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:29 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:29 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:32 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:32 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:35 2012] [error] [client 192.168.0.198] FastCGI: comm with (dynamic) server "/var/www/redmine/public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec) [Thu Aug 30 22:03:35 2012] [error] [client 192.168.0.198] FastCGI: incomplete headers (0 bytes) received from server "/var/www/redmine/public/dispatch.fcgi" [Thu Aug 30 22:03:35 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Aug 30 22:03:35 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
RE: dispatch.fcgi has failed to remain running
-
Added by Den Iskandarov about 12 years ago
From this lines
[Thu Aug 30 22:03:03 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" (pid 5738) terminated by calling exit with status '1' [Thu Aug 30 22:03:07 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" restarted (pid 5746) [Thu Aug 30 22:03:08 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" started (pid 5747) /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:396:in `real_connect': Access denied for user 'root'@'localhost' (using password: NO) (Mysql::Error)
And also appeared development.log file in log dir.
I begin to think that redmine trying to load development environment.
How should i change environment to production?
Tried:
ENV['RAILS_ENV'] ||= 'production' - adding this line in begging of config/environment.rb (added because thre is no such line like it was written in TUTORIAL!) Getting this error:
[Thu Aug 30 23:06:53 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" started (pid 7142) /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require': no such file to load -- fcgi (LoadError) from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require' from /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/handler/fastcgi.rb:1 from /var/www/redmine/public/dispatch.fcgi:20 [Thu Aug 30 23:06:56 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" (pid 7142) terminated by calling exit with status '1' [Thu Aug 30 23:06:58 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" restarted (pid 7144) [Thu Aug 30 23:07:00 2012] [warn] FastCGI: (dynamic) server "/var/www/redmine/public/dispatch.fcgi" started (pid 7146) /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require': no such file to load -- fcgi (LoadError) from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require' from /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/handler/fastcgi.rb:1 from /var/www/redmine/public/dispatch.fcgi:20
in .htaccess tried to add "*RAILS_ENV=production*" - not even starting and
"RailsEnv production" - this time application starting with same mysql connect error like in my second message, and still creates development.log