Не удалось установить MySQL, используя рецепт шеф-повара

Я хочу установить и установить исходный пароль root для сервера MySQL, используя рецепт шеф-повара. Я включил depends 'mysql', '~> 8.5.1' в файле metadtata.rb. И мой default.rb выглядит так.

mysql_service 'default' do
  initial_root_password 'Password@123'
  action [:create, :start]
end

Процесс установки успешен, но установка пароля root не работает, появляется ошибка.

192.168.94.186 Running handlers:
192.168.94.186 [2019-01-16T12:40:01+05:30] ERROR: Running exception handlers
192.168.94.186 Running handlers complete
192.168.94.186 [2019-01-16T12:40:01+05:30] ERROR: Exception handlers complete
192.168.94.186 Chef Client failed. 4 resources updated in 07 seconds
192.168.94.186 [2019-01-16T12:40:01+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
192.168.94.186 [2019-01-16T12:40:01+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
192.168.94.186 [2019-01-16T12:40:01+05:30] FATAL: Mixlib::ShellOut::ShellCommandFailed: mysql_service[default] (sql_test::default line 10) had an error: Mixlib::ShellOut::ShellCommandFailed: mysql_service_manager_systemd[default] (/var/chef/cache/cookbooks/mysql/libraries/mysql_service.rb line 50) had an error: Mixlib::ShellOut::ShellCommandFailed: service[mysql-default] (/var/chef/cache/cookbooks/mysql/libraries/mysql_service_manager_systemd.rb line 81) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
192.168.94.186 ---- Begin output of /bin/systemctl --system start mysql-default ----
192.168.94.186 STDOUT:
192.168.94.186 STDERR: Job for mysql-default.service failed because the control process exited with error code. See "systemctl status mysql-default.service" and "journalctl -xe" for details.
192.168.94.186 ---- End output of /bin/systemctl --system start mysql-default ----
192.168.94.186 Ran /bin/systemctl --system start mysql-default returned 1

0 ответов

Другие вопросы по тегам