Content
Cannot use openproject 5.0.13 with Oracle MySQL 5.7.10
Added by Anvar Kuchkartaev about 9 years ago
I’ve installing latest version of openproject 5.0.13 to Oracle Linux 7.2 using packaged installation method and after running sudo openproject configure and configure parameters as reuse existing database configuration has following error:
Launching installer for openproject…
Selected addons: legacy-installer mysql apache2 repositories smtp memcached openproject
[legacy-installer] ./bin/configure
[mysql] ./bin/configure
Package mysql-community-client-5.7.10-1.el7.x86_64 already installed and latest version
MySQL connection OK
DONE
[apache2] ./bin/configure
DONE
[repositories] ./bin/configure
DONE
[smtp] ./bin/configure
DONE
[memcached] ./bin/configure
DONE
[openproject] ./bin/configure
[legacy-installer] ./bin/preinstall
[mysql] ./bin/preinstall
[apache2] ./bin/preinstall
Note: Forwarding request to ‘systemctl enable httpd.service’.
[repositories] ./bin/preinstall
[smtp] ./bin/preinstall
[memcached] ./bin/preinstall
Note: Forwarding request to ‘systemctl enable memcached.service’.
[openproject] ./bin/preinstall
[legacy-installer] ./bin/postinstall
[mysql] ./bin/postinstall
Generating /etc/openproject/conf.d/database…
[apache2] ./bin/postinstall
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details.
[repositories] ./bin/postinstall
Setting up SVN integration for Apache
Setting up Git integration for Apache
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details.
[smtp] ./bin/postinstall
[memcached] ./bin/postinstall
[openproject] ./bin/postinstall
rake aborted!
Incorrect MySQL client library version! This gem was compiled for 5.5.44-MariaDB but the client library is 5.6.25.
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.20/lib/mysql2.rb:31:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/mysql2_adapter.rb:4:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/connection_specification.rb:175:in `spec’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_handling.rb:50:in `establish_connection’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/railtie.rb:120:in `block (2 levels) in class:Railtie’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:27:in `each’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/lazy_load_hooks.rb:27:in `on_load’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/railtie.rb:116:in `block in class:Railtie’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in `instance_exec’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:30:in `run’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:55:in `block in run_initializers’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/initializable.rb:54:in `run_initializers’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:352:in `initialize!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `public_send’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `method_missing’
/opt/openproject/config/environment.rb:34:in `<top (required)>’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:328:in `require_environment!’
/opt/openproject/vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:457:in `block in run_tasks_blocks’
Tasks: TOP => db:migrate => environment
(See full trace by running task with —trace)
Replies (1)
Hey Anvar,
we currently do not provide packages for Oracle Linux. You’re seeing the error since packager builds all dependencies for the given target distribution, and yours is not compatible with the version you chose.
What you probably could do is to remove the mysql2 and build it yourself again:
gem uninstall mysql2
gem install mysql2
But keep in mind: Whenever the package is updated, the contents of
/opt/openproject
(and thus,/opt/openproject/vendor/bundle/*
) is going to be replaced and your changes will be lost.For the time being, it might be better to use the manual installation mode:
https://github.com/opf/openproject/blob/release/5.0/doc/operation_guides/manual/installation-guide.md
Best,
Oliver