@bladeh3ro

Не могу зайти в панель управления FreePBX. Can't connect to local MySQL server through socket. Куда копать?

При подключении к сайту настройки freepbx появилась такая ошибка:
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

. Freepbx установлен на виртуальной машине, она перед этой ошибкой перезагружалась. Перестал подниматься mariadb.service и openssh.service.
Ошибка из journalctl для openssh:
freepbx.sangoma.local systemd[1]: Unit sshd.service entered failed state.
freepbx.sangoma.local systemd[1]: sshd.service failed.
freepbx.sangoma.local polkitd[4439]: Registered Authentication Agent for unix-process:5993:105463 (system bus name :1.61 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
freepbx.sangoma.local systemd[1]: Stopped OpenSSH server daemon/
-- Subject: Unit sshd.service has finished shutting down
-- Defined-By: systemd
--
-- Unit sshd.service has begun starting up.
freepbx.sangoma.local sshd[6000]: Missing privilege separation directory: /var/empty/sshd
freepbx.sangoma.local systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
freepbx.sangoma.local systemd[1]: Failed to start OpenSSH server daemon.
-- Subject: Unit sshd.service has failed
-- Defined-By: systemd
--
-- Unit sshd.service has failed
--
-- The result is failed
freepbx.sangoma.local systemd[1]: Unit sshd.service entered failed state.
freepbx.sangoma.local systemd[1]: sshd.service failed.
freepbx.sangoma.local polkitd[4439]: Unregistered Authentication Agent for unix-process:5994:105463 (system bus name :1.61, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

Ошибка для mariadb:
[root@freepbx ~]# systemctl -l status mariadb

= mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service: enabled: vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2024-02-04 10:51:40 UTC: 45min ago

Process: 4911 ExecStartPost=/usr/ibexec/mariadb-wait-ready SMAINPID (code=exited, status=1/FAILUR
ED

Process: 4910 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)

Process: 4777 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir /m (code=exited, status=0/SUCCESS)

Main PID: 4910 (code=exited, status=0/SUCCESS)

Feb 04 10:51:34 freepbx.sangoma.local systemd[1]: Starting MariaDB database server...
Feb 04 10:51:35 freepbx.sangoma.local mariadb-prepare-db-dir[4777]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.

Feb 04 10:51:35 freepbx.sangoma.local mysqld_safe[4910]: 240204 10:51:35 mysqld_safe Logging to ’/var/log/mariadb/mariadb. log’ .

Feb 04 10:51:35 freepbx.sangoma.local mysqld_safe[4910]: 240204 10:51:35 mysqld_safe Starting mysqld
daemon with databases from /var/lib/mysql

Feb 04 10:51:48 freepbx.sangoma.local systemd[1]: mariadb.service: control process exited, code-exit

Feb 04 10:51:40 freepbx.sangoma.local system[1]: Failed to start MariaDB database server.
Feb 04 10:51:48 freepbx.sangoma.local systemi[1]: Unit mariadb.service entered failed state.
Feb 04 10:51:40 freepbx.sangoma.local systemd[1]: mariadb.service failed.

Телефония при этом отрабатывает нормально, единственное зайти на сайт для настройки нельзя.
  • Вопрос задан
  • 241 просмотр
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы