Project

General

Profile

Error while access Redmine

Added by George Wei about 15 years ago

Dear ll,

I've installed Redmine 0.8.1. When I access http://localhost:3000, I encounter this error "Action Controller: Exception caught". The detailed information is as follows:

------------------------------------
NoMethodError in WelcomeController#index

undefined method `each' for #<Mysql:0x4a79f8c>

RAILS_ROOT: D:/redmine-0.8.1
Application Trace | Framework Trace | Full Trace

vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:433:in `columns'
vendor/rails/activerecord/lib/active_record/base.rb:1149:in `columns'
vendor/rails/activerecord/lib/active_record/base.rb:1157:in `columns_hash'
vendor/rails/activerecord/lib/active_record/base.rb:1207:in `descends_from_active_record?'
vendor/rails/activerecord/lib/active_record/base.rb:1213:in `finder_needs_type_condition?'
vendor/rails/activerecord/lib/active_record/base.rb:1579:in `add_conditions!'
vendor/rails/activerecord/lib/active_record/base.rb:1476:in `construct_finder_sql'
vendor/rails/activerecord/lib/active_record/base.rb:1345:in `find_every'
vendor/rails/activerecord/lib/active_record/base.rb:1307:in `find_initial'
vendor/rails/activerecord/lib/active_record/base.rb:538:in `find'
app/models/user.rb:261:in `anonymous'
app/models/user.rb:257:in `current'
app/controllers/application.rb:62:in `check_if_login_required'

vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:433:in `columns'
vendor/rails/activerecord/lib/active_record/base.rb:1149:in `columns'
vendor/rails/activerecord/lib/active_record/base.rb:1157:in `columns_hash'
vendor/rails/activerecord/lib/active_record/base.rb:1207:in `descends_from_active_record?'
vendor/rails/activerecord/lib/active_record/base.rb:1213:in `finder_needs_type_condition?'
vendor/rails/activerecord/lib/active_record/base.rb:1579:in `add_conditions!'
vendor/rails/activerecord/lib/active_record/base.rb:1476:in `construct_finder_sql'
vendor/rails/activerecord/lib/active_record/base.rb:1345:in `find_every'
vendor/rails/activerecord/lib/active_record/base.rb:1307:in `find_initial'
vendor/rails/activerecord/lib/active_record/base.rb:538:in `find'
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `send'
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `evaluate_method'
vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:191:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:591:in `run_before_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:577:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
D:/ruby-1.8.7/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
vendor/rails/railties/lib/webrick_server.rb:112:in `handle_dispatch'
vendor/rails/railties/lib/webrick_server.rb:78:in `service'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:95:in `start'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `each'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `start'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:23:in `start'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:82:in `start'
vendor/rails/railties/lib/webrick_server.rb:62:in `dispatch'
vendor/rails/railties/lib/commands/servers/webrick.rb:66
D:/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
D:/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
vendor/rails/railties/lib/commands/server.rb:39
D:/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
D:/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3

vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:433:in `columns'
vendor/rails/activerecord/lib/active_record/base.rb:1149:in `columns'
vendor/rails/activerecord/lib/active_record/base.rb:1157:in `columns_hash'
vendor/rails/activerecord/lib/active_record/base.rb:1207:in `descends_from_active_record?'
vendor/rails/activerecord/lib/active_record/base.rb:1213:in `finder_needs_type_condition?'
vendor/rails/activerecord/lib/active_record/base.rb:1579:in `add_conditions!'
vendor/rails/activerecord/lib/active_record/base.rb:1476:in `construct_finder_sql'
vendor/rails/activerecord/lib/active_record/base.rb:1345:in `find_every'
vendor/rails/activerecord/lib/active_record/base.rb:1307:in `find_initial'
vendor/rails/activerecord/lib/active_record/base.rb:538:in `find'
app/models/user.rb:261:in `anonymous'
app/models/user.rb:257:in `current'
app/controllers/application.rb:62:in `check_if_login_required'
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `send'
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `evaluate_method'
vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:191:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:591:in `run_before_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:577:in `call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
D:/ruby-1.8.7/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
vendor/rails/railties/lib/webrick_server.rb:112:in `handle_dispatch'
vendor/rails/railties/lib/webrick_server.rb:78:in `service'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:95:in `start'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `each'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `start'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:23:in `start'
D:/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:82:in `start'
vendor/rails/railties/lib/webrick_server.rb:62:in `dispatch'
vendor/rails/railties/lib/commands/servers/webrick.rb:66
D:/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
D:/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
vendor/rails/railties/lib/commands/server.rb:39
D:/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
D:/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3

Request

Parameters:

None

Show session dump

---
flash: !map:ActionController::Flash::FlashHash {}

Response

Headers:

{"cookie"=>[],
"Cache-Control"=>"no-cache"}
------------------------------------

I'm not familiar with Ruby, I just want to use Redmine to manage my project. How can I avoid this error? Thanks for any clues.


Replies (1)

RE: Error while access Redmine - Added by Eric Davis about 15 years ago

What's the output from script/about? (See: http://www.redmine.org/boards/2/topics/667)

Eric Davis

    (1-1/1)