Actions
Defect #10484
closed'ruby script\about -e production' always used redmine_development database
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
It seems ruby script\about -e production always tries to connect to redmine_development database. My environment is:
Windows XP SP3 MySQL 5.0.51b Ruby 1.8.7 p352 rails 8.3.14 Redmine trunk r9244 (The same happens with Redmine 1.3.2 too.)Redmine starts successfully:
D:\biz\apps\redmine_trunk>ruby script\server -e production => Booting WEBrick => Rails 2.3.14 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2012-03-19 18:51:07] INFO WEBrick 1.3.1 [2012-03-19 18:51:07] INFO ruby 1.8.7 (2010-08-16) [i386-mingw32] [2012-03-19 18:51:07] INFO WEBrick::HTTPServer#start: pid=8056 port=3000 [2012-03-19 18:51:17] INFO going to shutdown ... [2012-03-19 18:51:17] INFO WEBrick::HTTPServer#start done. Exiting D:\biz\apps\redmine_trunk>ruby script\about -e production tries to connect to redmine_development database:
D:\biz\apps\redmine_trunk>ruby script\about -e production d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/mysql_adapter.rb:620:in `real_connect': Unknown database 'redmine_development' (Mysql::Error) from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/mysql_adapter.rb:620:in `connect' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/mysql_adapter.rb:203:in `initialize' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/mysql_adapter.rb:75:in `new' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/mysql_adapter.rb:75:in `mysql_connection' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout' from d:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connec tion_pool.rb:183:in `checkout' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection' from D:/biz/apps/redmine_trunk/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:218:in `quoted_left_column_name' from D:/biz/apps/redmine_trunk/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:93:in `acts_as_nested_set' from D:/biz/apps/redmine_trunk/app/models/project.rb:60 from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:406:in `load_without_new_constant_marking' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:406:in `load_file' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:405:in `load_file' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:285:in `require_or_load_without_engine_additions' from D:/biz/apps/redmine_trunk/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:451:in `load_missing_constant' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:118:in `const_missing' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:463:in `load_missing_constant' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:122:in `const_missing' from D:/biz/apps/redmine_trunk/app/models/attachment.rb:37 from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:406:in `load_without_new_constant_marking' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:406:in `load_file' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:405:in `load_file' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:285:in `require_or_load_without_engine_additions' from D:/biz/apps/redmine_trunk/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:451:in `load_missing_constant' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:118:in `const_missing' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:463:in `load_missing_constant' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:463:in `load_missing_constant' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:463:in `load_missing_constant' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:463:in `load_missing_constant' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing' from D:/biz/apps/redmine_trunk/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33:in `acts_as_attachable' from D:/biz/apps/redmine_trunk/app/models/message.rb:23 from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:406:in `load_without_new_constant_marking' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:406:in `load_file' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:405:in `load_file' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:285:in `require_or_load_without_engine_additions' from D:/biz/apps/redmine_trunk/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:451:in `load_missing_constant' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:118:in `const_missing' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/inflector.rb:364:in `constantize' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/inflector.rb:363:in `each' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/inflector.rb:363:in `constantize' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/string/inflections.rb:162:in `constantize' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:157:in `observed_class' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:183:in `observed_classes' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:166:in `initialize' from d:/Ruby187/lib/ruby/1.8/singleton.rb:94:in `new' from d:/Ruby187/lib/ruby/1.8/singleton.rb:94:in `instance' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:38:in `instantiate_observers' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:36:in `each' from d:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:36:in `instantiate_observers' from d:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:15:in `define_dispatcher_callbacks' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:182:in `call' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:182:in `evaluate_method' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:166:in `call' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:90:in `run' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:90:in `each' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:90:in `send' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:90:in `run' from d:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:276:in `run_callbacks' from d:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:51:in `send' from d:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks' from d:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:631:in `prepare_dispatcher' from d:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:185:in `process' from d:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `send' from d:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `run' from D:/biz/apps/redmine_trunk/config/environment.rb:21 from d:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/about.rb:1:in `require' from d:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/about.rb:1 from script/about:4:in `require' from script/about:4 D:\biz\apps\redmine_trunk>
Updated by Ivan Cenov almost 12 years ago
- Status changed from New to Resolved
Please close this issue. It is obsolete.
Updated by Etienne Massip almost 12 years ago
- Status changed from Resolved to Closed
- Resolution set to Invalid
Actions