Content
Centos 7 - Migrate to 4.* using packaged solution
Added by Patrick _ about 10 years ago
I prefer to use the yum
for openproject in future. I assume upgrading will be easier that way. Therefore I followed the migration guide until step 5, assets:precompile. Things worked fine until here and database migration should already be done.
Now I login as root and execute
sudo rpm --import https://rpm.packager.io/key echo "[openproject] name=Repository for opf/openproject application. baseurl=https://rpm.packager.io/gh/opf/openproject/centos6/stable enabled=1" | sudo tee /etc/yum.repos.d/openproject.repo sudo yum install openproject
as told in the packaged solution manual. Configuring wizard runs fine, but the script fails after [openproject] ./bin/postinstall
. Here is the console output:
require 'rails/all'... 0.560s Bundler.require... /opt/openproject/vendor/bundle/ruby/2.1.0/gems/nokogiri-1.6.2.1/lib/nokogiri/version.rb:91:in `block in <class:VersionInfo>' : WARNING: Nokogiri was built against LibXML version 2.7.6, but has dynamically loaded 2.9.1 (StandardWarning) 2.350s DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /opt/openproject/Rakefile:35) DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /opt/openproject/Rakefile:35) Application.initialize!... rake aborted! LoadError: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (libmysqlclient_r.so.16: cannot open shared object file: No such file or directory - /opt/openproject/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/mysql2-0.3.11/mysql2/mysql2.so) /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/mysql2_adapter.rb:4:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:27:in `spec' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:25:in `each' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:25:in `on_load' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/railtie.rb:80:in `block in <class:Railtie>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `instance_exec' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `run' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:55:in `block in run_initializers' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `each' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `run_initializers' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:136:in `initialize!' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/railtie/configurable.rb:30:in `method_missing' /opt/openproject/config/environment.rb:36:in `block in <top (required)>' /opt/openproject/config/application.rb:44:in `block in bench' /opt/openproject/config/application.rb:43:in `bench' /opt/openproject/config/environment.rb:34:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:103:in `require_environment!' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks' LoadError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory - /opt/openproject/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/mysql2-0.3.11/mysql2/mysql2.so /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/mysql2_adapter.rb:4:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:27:in `spec' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:25:in `each' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:25:in `on_load' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/railtie.rb:80:in `block in <class:Railtie>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `instance_exec' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `run' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:55:in `block in run_initializers' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `each' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `run_initializers' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:136:in `initialize!' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/railtie/configurable.rb:30:in `method_missing' /opt/openproject/config/environment.rb:36:in `block in <top (required)>' /opt/openproject/config/application.rb:44:in `block in bench' /opt/openproject/config/application.rb:43:in `bench' /opt/openproject/config/environment.rb:34:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:103:in `require_environment!' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace) require 'rails/all'... 0.520s Bundler.require... /opt/openproject/vendor/bundle/ruby/2.1.0/gems/nokogiri-1.6.2.1/lib/nokogiri/version.rb:91:in `block in <class:VersionInfo>' : WARNING: Nokogiri was built against LibXML version 2.7.6, but has dynamically loaded 2.9.1 (StandardWarning) 1.750s DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /opt/openproject/Rakefile:35) DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /opt/openproject/Rakefile:35) Application.initialize!... rake aborted! LoadError: Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (libmysqlclient_r.so.16: cannot open shared object file: No such file or directory - /opt/openproject/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/mysql2-0.3.11/mysql2/mysql2.so) /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/mysql2_adapter.rb:4:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:27:in `spec' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:25:in `each' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:25:in `on_load' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/railtie.rb:80:in `block in <class:Railtie>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `instance_exec' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `run' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:55:in `block in run_initializers' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `each' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `run_initializers' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:136:in `initialize!' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/railtie/configurable.rb:30:in `method_missing' /opt/openproject/config/environment.rb:36:in `block in <top (required)>' /opt/openproject/config/application.rb:44:in `block in bench' /opt/openproject/config/application.rb:43:in `bench' /opt/openproject/config/environment.rb:34:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:103:in `require_environment!' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks' LoadError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory - /opt/openproject/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/mysql2-0.3.11/mysql2/mysql2.so /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/mysql2_adapter.rb:4:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:27:in `spec' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:25:in `each' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/lazy_load_hooks.rb:25:in `on_load' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-3.2.20/lib/active_record/railtie.rb:80:in `block in <class:Railtie>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `instance_exec' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:30:in `run' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:55:in `block in run_initializers' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `each' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/initializable.rb:54:in `run_initializers' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:136:in `initialize!' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/railtie/configurable.rb:30:in `method_missing' /opt/openproject/config/environment.rb:36:in `block in <top (required)>' /opt/openproject/config/application.rb:44:in `block in bench' /opt/openproject/config/application.rb:43:in `bench' /opt/openproject/config/environment.rb:34:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `block in require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.20/lib/active_support/dependencies.rb:251:in `require' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:103:in `require_environment!' /opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-3.2.20/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks' Tasks: TOP => setting:set => environment (See full trace by running task with --trace)
This happens in both cases, when trying to use the existing db or with a new one. gem install activerecord-mysql2-adapter
runs fine but doesn’t change this. This is being run from the root. Strange, that it uses the folder “ruby/2.1.0”, even though I’m on a higher version. Here my installed versions:
@
[root@Name ]# ruby -v]# rails -v
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux]
[root@Name
Rails 4.1.7
[root@Name~]# rvm current
ruby-2.1.4
[root@Name~]# rvm -v
rvm 1.26.0 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
[root@Name~]# npm -v
1.3.6
[root@Name~]# node -v
v0.10.32
@
Thanks for helping and for your awesome product!
Replies (3)
Hi,
you got it running?
I’m facing the same problem here with a yum-based fresh installation on centos7.
Sorry, I’m not sure if I was able to fix it or if I switched to the traditional installation. I think using different users for installing rvm and ruby etc. caused some problems, but again, I’m not sure if that was the problem.
With CentOS6 everything works like a charm, so i ended up to skip installation on CentOS7.