bngsudheer/ansible-role-redmine

DB Migrate crashes!

vldanch opened this issue · 0 comments

How to fix it?

TASK [redmine : DB Migrate] ********************************************************************************************************************************************************************************************************* fatal: [10.100.143.40]: FAILED! => {"changed": true, "cmd": "/home/redmine/bin/bundle exec /home/redmine/bin/rake db:migrate", "delta": "0:00:02.512404", "end": "2020-10-01 10:34:11.611178", "msg": "non-zero return code", "rc": 1, "start": "2020-10-01 10:34:09.098774", "stderr": "rake aborted!\nMysql2::Error: Plugin sha256_password could not be loaded: lib64/mariadb/plugin/sha256_password.so: cannot open shared object file: No such file or directory\n/usr/share/gems/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in connect'\n/usr/share/gems/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in initialize'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in new'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in mysql2_connection'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in new_connection'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in checkout_new_connection'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in try_to_checkout_new_connection'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in acquire_connection'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in checkout'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in connection'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in retrieve_connection'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_handling.rb:118:in retrieve_connection'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_handling.rb:90:in connection'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:172:in migrate'\n/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/railties/databases.rake:60:in block (2 levels) in <top (required)>'\n/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in <top (required)>'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in load'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in kernel_load'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in run'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in exec'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in dispatch'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in dispatch'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in start'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in start'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/exe/bundle:46:in block in <top (required)>'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in with_friendly_errors'\n/home/redmine/.gem/ruby/gems/bundler-2.1.4/exe/bundle:34:in <top (required)>'\n/home/redmine/bin/bundle:23:in load'\n/home/redmine/bin/bundle:23:in

'\nTasks: TOP => db:migrate\n(See full trace by running task with --trace)", "stderr_lines": ["rake aborted!", "Mysql2::Error: Plugin sha256_password could not be loaded: lib64/mariadb/plugin/sha256_password.so: cannot open shared object file: No such file or directory", "/usr/share/gems/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in connect'", "/usr/share/gems/gems/mysql2-0.5.3/lib/mysql2/client.rb:90:in initialize'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in new'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in mysql2_connection'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:830:in new_connection'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:874:in checkout_new_connection'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in try_to_checkout_new_connection'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:814:in acquire_connection'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:538:in checkout'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:382:in connection'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1033:in retrieve_connection'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_handling.rb:118:in retrieve_connection'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/connection_handling.rb:90:in connection'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/tasks/database_tasks.rb:172:in migrate'", "/usr/share/gems/gems/activerecord-5.2.4.2/lib/active_record/railties/databases.rake:60:in block (2 levels) in <top (required)>'", "/usr/share/gems/gems/rake-13.0.1/exe/rake:27:in <top (required)>'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in load'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in kernel_load'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in run'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in exec'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in dispatch'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in dispatch'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in start'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in start'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/exe/bundle:46:in block in <top (required)>'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in with_friendly_errors'", "/home/redmine/.gem/ruby/gems/bundler-2.1.4/exe/bundle:34:in <top (required)>'", "/home/redmine/bin/bundle:23:in load'", "/home/redmine/bin/bundle:23:in <main>'", "Tasks: TOP => db:migrate", "(See full trace by running task with --trace)"], "stdout": "", "stdout_lines": []}