Привет! После неожиданного отключения питания у меня не получилось подключиться к Unifi Protect. Просмотрев этот форум, я попробовал несколько команд, чтобы выяснить причину проблемы. Я выполнил следующее:
root@ubnt:/# service unifi-protect start
A dependency job for unifi-protect.service failed. See 'journalctl -xe' for details.
root@ubnt:/# journalctl -u unifi-protect
Dec 06 18:45:43 ubnt systemd[1]: unifi-protect.service: Bound to unit postgresql@9.6-protect.service, but unit isn't active.
Dec 06 18:45:43 ubnt systemd[1]: Dependency failed for UniFi Protect.
Dec 06 18:45:43 ubnt systemd[1]: unifi-protect.service: Job unifi-protect.service/start failed with result 'dependency'.
При проверке, работает ли postgresql, похоже, что конфигурация отсутствует:
root@ubnt:/# systemctl status postgresql@pro-service
● postgresql@9.6-protect.service - PostgreSQL Cluster 9.6-protect
Loaded: loaded (/lib/systemd/system/postgresql@.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/postgresql@9.6-protect.service.d
└─db-migrate.conf, unifi-protect.conf
Active: inactive (dead)
Condition: start condition failed at Mon 2021-12-06 18:45:43 CET; 5min ago
└─ ConditionPathExists=/etc/postgresql/9.6/protect/postgresql.conf was not met
Dec 06 18:10:58 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:11:08 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:13:51 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:15:20 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:21:43 ubnt systemd[1]: /lib/systemd/system/postgresql@.service:12: PIDFile= ссылается на путь в устаревшей директории /var/run/, обновлено на /run/postgresql/9.6-protect.pid; пожалуйста, обновите unit-файл соответственно.
... (повторяется несколько раз)
Dec 06 18:21:45 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:45:43 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
К сожалению, я не могу исправить проблему. Даже переустановка только Unifi Protect не решила её. Что теперь лучше сделать? Заранее спасибо за любую помощь!
root@ubnt:/# service unifi-protect start
A dependency job for unifi-protect.service failed. See 'journalctl -xe' for details.
root@ubnt:/# journalctl -u unifi-protect
Dec 06 18:45:43 ubnt systemd[1]: unifi-protect.service: Bound to unit postgresql@9.6-protect.service, but unit isn't active.
Dec 06 18:45:43 ubnt systemd[1]: Dependency failed for UniFi Protect.
Dec 06 18:45:43 ubnt systemd[1]: unifi-protect.service: Job unifi-protect.service/start failed with result 'dependency'.
При проверке, работает ли postgresql, похоже, что конфигурация отсутствует:
root@ubnt:/# systemctl status postgresql@pro-service
● postgresql@9.6-protect.service - PostgreSQL Cluster 9.6-protect
Loaded: loaded (/lib/systemd/system/postgresql@.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/postgresql@9.6-protect.service.d
└─db-migrate.conf, unifi-protect.conf
Active: inactive (dead)
Condition: start condition failed at Mon 2021-12-06 18:45:43 CET; 5min ago
└─ ConditionPathExists=/etc/postgresql/9.6/protect/postgresql.conf was not met
Dec 06 18:10:58 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:11:08 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:13:51 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:15:20 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:21:43 ubnt systemd[1]: /lib/systemd/system/postgresql@.service:12: PIDFile= ссылается на путь в устаревшей директории /var/run/, обновлено на /run/postgresql/9.6-protect.pid; пожалуйста, обновите unit-файл соответственно.
... (повторяется несколько раз)
Dec 06 18:21:45 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
Dec 06 18:45:43 ubnt systemd[1]: Condition check resulted in PostgreSQL Cluster 9.6-protect being skipped.
К сожалению, я не могу исправить проблему. Даже переустановка только Unifi Protect не решила её. Что теперь лучше сделать? Заранее спасибо за любую помощь!
