Redmine under nginx + mod_passenger
Added by Bogdan B over 14 years ago
Hello,
I am having trouble running redmine under nginx with mod_passenger.
Here is the relevant config:
server {
listen 80;
server_name redmine.local;
root /srv/http/redmine/public;
passenger_enabled on;
rails_env development;
}
It fails with:
TypeError in WelcomeController#index
instance of Date needs to have method `marshal_load'
RAILS_ROOT: /srv/http/redmine
Application Trace | Framework Trace | Full Trace
/srv/http/redmine/vendor/rails/activesupport/lib/active_support/message_verifier.rb:31:in `load'
/srv/http/redmine/vendor/rails/activesupport/lib/active_support/message_verifier.rb:31:in `verify'
/srv/http/redmine/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:156:in `unmarshal'
/srv/http/redmine/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:145:in `load_session'
/srv/http/redmine/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb:62:in `send'
/srv/http/redmine/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb:62:in `load!'
/srv/http/redmine/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb:70:in `stale_session_check!'
/srv/http/redmine/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb:61:in `load!'
/srv/http/redmine/vendor/rails/actionpack/lib/action_controller/session/abstract_store.rb:28:in `[]'
/srv/http/redmine/app/controllers/application_controller.rb:62:in `find_current_user'
/srv/http/redmine/app/controllers/application_controller.rb:56:in `user_setup'
It runs perfectly fine under thin, though.
I have googled around but didn't find anything, tried clearing the session but nothing changed. Any help would be great.
Thank you,
Bogdan
Replies (4)
RE: Redmine under nginx + mod_passenger - Added by Bogdan B over 14 years ago
Sorry, I forgot to add:
Ruby version: ruby 1.8.7 (2010-01-10 patchlevel 249)
Rails version: Rails 2.3.5
Operating system: Gentoo Linux
Database used: MySQL
RE: Redmine under nginx + mod_passenger - Added by Felix Schäfer over 14 years ago
Please post the full trace and see if there is an error log in REDMINE_DIR/logs/development.log.
RE: Redmine under nginx + mod_passenger - Added by Bogdan B over 14 years ago
Here is the full trace (from development.log):
TypeError (instance of Date needs to have method `marshal_load'):
app/controllers/application_controller.rb:62:in `find_current_user'
app/controllers/application_controller.rb:56:in `user_setup'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib64/ruby/site_ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
Rendered rescues/_trace (222.4ms)
Rendered rescues/_request_and_response (5.1ms)
Rendering rescues/layout (internal_server_error)
RE: Redmine under nginx + mod_passenger - Added by Bogdan B over 14 years ago
Well, after much fiddling around, I tried starting fresh from svn (0.9.4.stable.3733) and it works. I don't know why the other redmine didn't.
Thanks,
Bogdan