Application error
Added by Niko Hallikainen about 13 years ago
I installed Redmine according this guide http://www.redmine.org/projects/redmine/wiki/HowTo_install_Redmine_on_CentOS_5. Something must be wrong because it give error:
Application error
Rails application failed to start properly"
I use Centos 5.7 and (cPanel).
Installed gems:
actionmailer 2.3.11
actionpack 2.3.11
activerecord 2.3.11
activeresource 2.3.11
activesupport 2.3.11
daemon_controller 0.2.6
fastthread 1.0.7
i18n 0.4.2
passenger 3.0.9
rack 1.1.0
rails 2.3.11
rake 0.9.2
When I use webrick, I get next error:
theocbas@theocbase.me [~/redmine]# ruby script/server webrick -e production
=> Booting WEBrick
=> Rails 2.3.11 application starting on http://0.0.0.0:3000
/home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:178:in `ensure_session_key': A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb (ArgumentError)
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:81:in `initialize'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:72:in `new'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:72:in `build'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:116:in `build'
from /home/theocbas/redmine/vendor/rails/activesupport/lib/active_support/inflector.rb:364:in `inject'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:116:in `each'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:116:in `inject'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/middleware_stack.rb:116:in `build'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:81:in `initialize'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `new'
from /home/theocbas/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks'
from /home/theocbas/redmine/config/../vendor/rails/railties/lib/initializer.rb:631:in `prepare_dispatcher'
from /home/theocbas/redmine/config/../vendor/rails/railties/lib/initializer.rb:185:in `process'
from /home/theocbas/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
from /home/theocbas/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
from /home/theocbas/redmine/config/environment.rb:22
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /home/theocbas/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
from /home/theocbas/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /home/theocbas/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
from /home/theocbas/redmine/vendor/rails/railties/lib/commands/server.rb:84
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script/server:3
theocbas@theocbase.me [~/redmine]#
Can someone help me. I'm in pain...
Regards,
Niko H.