Redmine 2, Passenger and missing gem activerecord-mysql-adapter
Added by Julien Strulens over 12 years ago
Hello,
I have installed Redmine 2.0.0 but I have a problem when tying to view the website. I have the following message:
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (mysql is not part of the bundle. Add it to Gemfile.)
The "bundle install" has been done successfully and also the "db:migrate" and the "redmine:load_default_data". All data are on the database. And also, the database adapter has been set to mysql2. But Passenger keeps displaying the previous error. Do you have an idea?
Here is the full backtrace:
# File Line Location 0 /home/testaccount/gems/gems/bundler-1.1.3/lib/bundler/rubygems_integration.rb 147 in `block in replace_gem' 1 /home/testaccount/gems/gems/activerecord-3.2.3/lib/active_record/connection_adapters/mysql_adapter.rb 5 in `' 2 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/dependencies.rb 251 in `require' 3 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/dependencies.rb 251 in `block in require' 4 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/dependencies.rb 236 in `load_dependency' 5 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/dependencies.rb 251 in `require' 6 /home/testaccount/gems/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_specification.rb 48 in `resolve_hash_connection' 7 /home/testaccount/gems/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_specification.rb 39 in `resolve_string_connection' 8 /home/testaccount/gems/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_specification.rb 23 in `spec' 9 /home/testaccount/gems/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_specification.rb 127 in `establish_connection' 10 /home/testaccount/gems/gems/activerecord-3.2.3/lib/active_record/railtie.rb 76 in `block (2 levels) in ' 11 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb 36 in `instance_eval' 12 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb 36 in `execute_hook' 13 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb 43 in `block in run_load_hooks' 14 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb 42 in `each' 15 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb 42 in `run_load_hooks' 16 /home/testaccount/gems/gems/activerecord-3.2.3/lib/active_record/base.rb 721 in `' 17 /home/testaccount/sites/live/testaccount-redmine/lib/plugins/acts_as_activity_provider/init.rb 2 in `block in ' 18 /home/testaccount/sites/live/testaccount-redmine/config/initializers/00-core_plugins.rb 12 in `eval' 19 /home/testaccount/sites/live/testaccount-redmine/config/initializers/00-core_plugins.rb 12 in `block in ' 20 /home/testaccount/sites/live/testaccount-redmine/config/initializers/00-core_plugins.rb 2 in `each' 21 /home/testaccount/sites/live/testaccount-redmine/config/initializers/00-core_plugins.rb 2 in `' 22 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/dependencies.rb 245 in `load' 23 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/dependencies.rb 245 in `block in load' 24 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/dependencies.rb 236 in `load_dependency' 25 /home/testaccount/gems/gems/activesupport-3.2.3/lib/active_support/dependencies.rb 245 in `load' 26 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/engine.rb 588 in `block (2 levels) in ' 27 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/engine.rb 587 in `each' 28 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/engine.rb 587 in `block in ' 29 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/initializable.rb 30 in `instance_exec' 30 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/initializable.rb 30 in `run' 31 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/initializable.rb 55 in `block in run_initializers' 32 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/initializable.rb 54 in `each' 33 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/initializable.rb 54 in `run_initializers' 34 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/application.rb 136 in `initialize!' 35 /home/testaccount/gems/gems/railties-3.2.3/lib/rails/railtie/configurable.rb 30 in `method_missing' 36 /home/testaccount/sites/live/testaccount-redmine/config/environment.rb 14 in `' 37 /usr/lib/ruby/1.9.1/phusion_passenger/railz/application_spawner.rb 318 in `require' 38 /usr/lib/ruby/1.9.1/phusion_passenger/railz/application_spawner.rb 318 in `preload_application' 39 /usr/lib/ruby/1.9.1/phusion_passenger/railz/application_spawner.rb 267 in `block in initialize_server' 40 /usr/lib/ruby/1.9.1/phusion_passenger/utils.rb 323 in `report_app_init_status' 41 /usr/lib/ruby/1.9.1/phusion_passenger/railz/application_spawner.rb 246 in `initialize_server' 42 /usr/lib/ruby/1.9.1/phusion_passenger/abstract_server.rb 194 in `start_synchronously' 43 /usr/lib/ruby/1.9.1/phusion_passenger/abstract_server.rb 163 in `start' 44 /usr/lib/ruby/1.9.1/phusion_passenger/railz/application_spawner.rb 222 in `start' 45 /usr/lib/ruby/1.9.1/phusion_passenger/spawn_manager.rb 253 in `block (2 levels) in spawn_rails_application' 46 /usr/lib/ruby/1.9.1/phusion_passenger/abstract_server_collection.rb 126 in `lookup_or_add' 47 /usr/lib/ruby/1.9.1/phusion_passenger/spawn_manager.rb 247 in `block in spawn_rails_application' 48 /usr/lib/ruby/1.9.1/phusion_passenger/abstract_server_collection.rb 80 in `block in synchronize' 49 prelude> 10:in `synchronize' 50 /usr/lib/ruby/1.9.1/phusion_passenger/abstract_server_collection.rb 79 in `synchronize' 51 /usr/lib/ruby/1.9.1/phusion_passenger/spawn_manager.rb 246 in `spawn_rails_application' 52 /usr/lib/ruby/1.9.1/phusion_passenger/spawn_manager.rb 145 in `spawn_application' 53 /usr/lib/ruby/1.9.1/phusion_passenger/spawn_manager.rb 278 in `handle_spawn_application' 54 /usr/lib/ruby/1.9.1/phusion_passenger/abstract_server.rb 352 in `main_loop' 55 /usr/lib/ruby/1.9.1/phusion_passenger/abstract_server.rb 196 in `start_synchronously' 56 /usr/lib/phusion_passenger/passenger-spawn-server 61 in `'
Thanks for your help!
Replies (1)
RE: Redmine 2, Passenger and missing gem activerecord-mysql-adapter
-
Added by Julien Strulens over 12 years ago
I have found a solution… Just leave the configuration about the production database environment in « config/database.yml » and remove the others parts.