Project

General

Profile

Actions

Defect #3246

closed

NoMethodError (undefined method `group_by=' for #<Query:0x2aaaafdfa960>)

Added by Philippe Lafoucrière over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-04-27
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi,

after upgrading this morning, I have an error in issues controller :

Processing IssuesController#index (for ww.xx.yy.aa at 2009-04-27 14:43:33) [GET]
  Parameters: {"project_id"=>"xxxx", "action"=>"index", "controller"=>"issues"}

NoMethodError (undefined method `group_by=' for #<Query:0x2aaaafdfa960>):
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:255:in `method_missing'
    /app/controllers/issues_controller.rb:497:in `retrieve_query'
    /app/controllers/issues_controller.rb:47:in `index'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `send'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in `cache'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/request_handler.rb:60:in `perform_action'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `send'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `process_without_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in `process'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in `process'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in `handle_request'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/request_handler.rb:45:in `process_request'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_request_handler.rb:203:in `main_loop'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/application_spawner.rb:340:in `start_request_handler'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/application_spawner.rb:298:in `handle_spawn_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/utils.rb:181:in `safe_fork'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/application_spawner.rb:296:in `handle_spawn_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:337:in `__send__'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:337:in `main_loop'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:154:in `start'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/railz/application_spawner.rb:192:in `start'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:257:in `spawn_rails_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:251:in `spawn_rails_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:250:in `spawn_rails_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/spawn_manager.rb:282:in `handle_spawn_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:337:in `__send__'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:337:in `main_loop'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/lib/phusion_passenger/abstract_server.rb:187:in `start_synchronously'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.1/bin/passenger-spawn-server:55

Rendering /var/www/redmine/public/500.html (500 Internal Server Error)

Thanks

Actions #1

Updated by Matteo Redaelli over 15 years ago

I have the same error

Thanks Matteo

Actions #2

Updated by Philippe Lafoucrière over 15 years ago

  • Status changed from New to Resolved

After checking for last commits, I've found the "issue" in r2696. Mondays are evil, really.
Just run a rake db:migrate and everything will be fine again...
Sorry.

Actions #3

Updated by Matteo Redaelli over 15 years ago

yes, now it works

I did rake db:migrate_plugins and not rake db:migrate

Actions #4

Updated by Nanda P over 15 years ago

I am still getting the same error message

500 Internal Server Error

/!\ FAILSAFE /!\  Mon Apr 27 09:25:33 -0400 2009
  Status: 500 Internal Server Error
  A secret is required to generate an integrity hash for cookie session data. Use config.action_controller.session = { :session_key => "_myapp_session", :secret => "some secret phrase of at least 30 characters" } in config/environment.rb
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session/cookie_store.rb:91:in `ensure_secret_secure'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session/cookie_store.rb:59:in `initialize'
    C:/Program Files/Ruby/lib/ruby/1.8/cgi/session.rb:273:in `new'
    C:/Program Files/Ruby/lib/ruby/1.8/cgi/session.rb:273:in `initialize_without_cgi_reader'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/cgi_ext/session.rb:19:in `initialize'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/cgi_process.rb:94:in `new'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/cgi_process.rb:94:in `session'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/cgi_process.rb:130:in `stale_session_check!'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/cgi_process.rb:78:in `session'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1205:in `assign_shortcuts_without_flash'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/flash.rb:166:in `assign_shortcuts'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:519:in `process_without_filters'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in `process'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in `process'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in `handle_request'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in `dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `synchronize'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:103:in `handle_dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:74:in `service'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in `dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick.rb:66
    C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49
    C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    C:/Program Files/redmine/current/script/server:3
Actions #5

Updated by Philippe Lafoucrière over 15 years ago

Nanda Palaniswamy wrote:

I am still getting the same error message

500 Internal Server Error

[...]

Did you restart redmine (or rails / passenger / ...) ?

Actions #6

Updated by Nanda P over 15 years ago

Philippe Lafoucrière wrote:

Nanda Palaniswamy wrote:

I am still getting the same error message

500 Internal Server Error

[...]

Did you restart redmine (or rails / passenger / ...) ?

I restarted WebRick & also the box itself.

Right now I am trying to install RedMine from the scratch. Hope this will work.

I will let you know how it goes in 15 mins.

Thanks for support.

Actions #7

Updated by Nanda P over 15 years ago

Nanda Palaniswamy wrote:

Philippe Lafoucrière wrote:

Nanda Palaniswamy wrote:

I am still getting the same error message

500 Internal Server Error

[...]

Did you restart redmine (or rails / passenger / ...) ?

I restarted WebRick & also the box itself.

Right now I am trying to install RedMine from the scratch. Hope this will work.

I will let you know how it goes in 15 mins.

Thanks for support.

It Worked.!! :)

Actions #8

Updated by Mischa The Evil over 15 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

Nanda Palaniswamy wrote:

Nanda Palaniswamy wrote:

Philippe Lafoucrière wrote:

Nanda Palaniswamy wrote:

I am still getting the same error message

500 Internal Server Error

[...]

Did you restart redmine (or rails / passenger / ...) ?

I restarted WebRick & also the box itself.

Right now I am trying to install RedMine from the scratch. Hope this will work.

I will let you know how it goes in 15 mins.

Thanks for support.

It Worked.!! :)

The second particular issue was due to the fact that you were missing the session store secret instead of being related to r2696.

Actions

Also available in: Atom PDF