[root@server init.d]# systemctl status mysqld.service
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: activating (start) since Пт 2020-12-25 10:50:24 +06; 4s ago
Docs: man:mysqld(8)
dev.mysql.com/doc/refman/en/using-systemd.html
Process: 3860 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Control: 3888 (mysqld)
CGroup: /system.slice/mysqld.service
├─3888 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
└─3891 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
дек 25 10:50:24 server systemd[1]: Starting MySQL Server...
[root@server init.d]# journalctl -xe
-- Subject: Начинается запуск юнита mysqld.service
-- Defined-By: systemd
-- Support:
lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Начат процесс запуска юнита mysqld.service.
дек 25 10:50:30 server mysqld[3888]: Initialization of mysqld failed: 0
дек 25 10:50:30 server systemd[1]: mysqld.service: control process exited, code=exited status=1
дек 25 10:50:30 server systemd[1]: Failed to start MySQL Server.
-- Subject: Ошибка юнита mysqld.service
-- Defined-By: systemd
-- Support:
lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Произошел сбой юнита mysqld.service.
--
-- Результат: failed.
дек 25 10:50:30 server systemd[1]: Unit mysqld.service entered failed state.
дек 25 10:50:30 server systemd[1]: mysqld.service failed.
дек 25 10:50:30 server systemd[1]: mysqld.service holdoff time over, scheduling restart.
дек 25 10:50:30 server systemd[1]: Stopped MySQL Server.
-- Subject: Завершена остановка юнита mysqld.service.
-- Defined-By: systemd
-- Support:
lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Процесс остановки юнита mysqld.service был завершен.
дек 25 10:50:30 server systemd[1]: Starting MySQL Server...
-- Subject: Начинается запуск юнита mysqld.service
-- Defined-By: systemd
-- Support:
lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Начат процесс запуска юнита mysqld.service.
дек 25 10:50:36 server mysqld[3953]: Initialization of mysqld failed: 0
дек 25 10:50:36 server systemd[1]: mysqld.service: control process exited, code=exited status=1
дек 25 10:50:37 server systemd[1]: Failed to start MySQL Server.
-- Subject: Ошибка юнита mysqld.service
-- Defined-By: systemd
-- Support:
lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Произошел сбой юнита mysqld.service.
--
-- Результат: failed.
дек 25 10:50:37 server systemd[1]: Unit mysqld.service entered failed state.
дек 25 10:50:37 server systemd[1]: mysqld.service failed.
дек 25 10:50:37 server systemd[1]: mysqld.service holdoff time over, scheduling restart.
дек 25 10:50:37 server systemd[1]: Stopped MySQL Server.
-- Subject: Завершена остановка юнита mysqld.service.
-- Defined-By: systemd
-- Support:
lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Процесс остановки юнита mysqld.service был завершен.
дек 25 10:50:37 server systemd[1]: Starting MySQL Server...
-- Subject: Начинается запуск юнита mysqld.service
-- Defined-By: systemd
-- Support:
lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Начат процесс запуска юнита mysqld.service.
дек 25 10:50:37 server sshd[3986]: Invalid user 113.53.251.125 from 142.93.169.136 port 51602
дек 25 10:50:37 server sshd[3986]: input_userauth_request: invalid user 113.53.251.125 [preauth]
дек 25 10:50:37 server sshd[3986]: pam_unix(sshd:auth): check pass; user unknown
дек 25 10:50:37 server sshd[3986]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=142.93.169.136
дек 25 10:50:39 server sshd[3986]: Failed password for invalid user 113.53.251.125 from 142.93.169.136 port 51602 ssh2
дек 25 10:50:39 server sshd[3986]: Received disconnect from 142.93.169.136 port 51602:11: Normal Shutdown, Thank you for playing [preauth]
дек 25 10:50:39 server sshd[3986]: Disconnected from 142.93.169.136 port 51602 [preauth]
В логах задачи виртуалки битрикса указано это:
PLAY [bitrix-hosts] ************************************************************
TASK [setup] *******************************************************************
ok: [server]
TASK [mysql : include variables from mysql group] ******************************
ok: [server]
TASK [mysql : include variables from web group] ********************************
ok: [server]
TASK [mysql : include variables from temporary config] *************************
ok: [server]
TASK [mysql : additional gathering facts] **************************************
ok: [server]
TASK [mysql : set_fact] ********************************************************
TASK [mysql : gathering facts about installed sites] ***************************
TASK [mysql : set_fact] ********************************************************
TASK [mysql : debug] ***********************************************************
TASK [mysql : create variable bx_sites_info] ***********************************
TASK [mysql : debug] ***********************************************************
TASK [mysql : include] *********************************************************
TASK [mysql : include] *********************************************************
TASK [mysql : include] *********************************************************
included: /etc/ansible/roles/mysql/tasks/mysql-start_service.yml for server
TASK [mysql : include] *********************************************************
included: /etc/ansible/roles/mysql/tasks/mysql-enable_service.yml for server
TASK [mysql : defined bx_system variable] **************************************
ok: [server]
TASK [mysql : recreate links] **************************************************
TASK [mysql : reload systemd configuration] ************************************
TASK [mysql : start mysql service] *********************************************
fatal: [server]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to start service mysqld: Job for mysqld.service failed because the control process exited with error code. See \"systemctl $
NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @/etc/ansible/mysql.retry
PLAY RECAP *********************************************************************
server : ok=8 changed=0 unreachable=0 failed=1