@FreeArcher
Senior 1С; php, JS Starter

Почему Sphinx ругаться на код шаблона?

Был сбой сервера. После чего слетели ряд конфигов, в том числе и Sphinx перестал работать. Когда настраивал вроде никаких проблем не было скопировал типовой конфиг и все завелось.

Сейчас не стартует и выдает ошибку:

[root@mirpnevmatiki ~]# systemctl start sphinx
Job for searchd.service failed because the control process exited with error code. See "systemctl status searchd.service" and "journalctl -xe" for details.
[root@mirpnevmatiki ~]# journalctl -xe
Oct 07 04:48:08 mirpnevmatiki.ru httpd[5133]:

Oct 07 04:48:08 mirpnevmatiki.ru httpd[5133]: Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers in /home/bitrix/www/bitrix/templates/sm_default/header.php on line 421

Oct 07 04:48:08 mirpnevmatiki.ru httpd[5133]:

Oct 07 04:48:08 mirpnevmatiki.ru httpd[5133]: Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers in /home/bitrix/www/bitrix/templates/sm_default/header.php on line 421

Oct 07 04:48:27 mirpnevmatiki.ru sshd[23362]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=117.73.2.103 user=root
Oct 07 04:48:27 mirpnevmatiki.ru sshd[23362]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root"
Oct 07 04:48:29 mirpnevmatiki.ru polkitd[475]: Registered Authentication Agent for unix-process:23365:40324805 (system bus name :1.32100 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/Authenticati
Oct 07 04:48:29 mirpnevmatiki.ru systemd[1]: Starting SphinxSearch Search Engine...
-- Subject: Unit searchd.service has begun start-up
-- Defined-By: systemd
-- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit searchd.service has begun starting up.
Oct 07 04:48:30 mirpnevmatiki.ru searchd[23375]: [Mon Oct 7 04:48:30.009 2019] [23375] using config file '/etc/sphinx/sphinx.conf'...
Oct 07 04:48:30 mirpnevmatiki.ru searchd[23375]: [Mon Oct 7 04:48:30.009 2019] [23375] FATAL: failed to open log file '/var/log/sphinxsearch/searchd.log': No such file or directory
Oct 07 04:48:30 mirpnevmatiki.ru searchd[23375]: Sphinx 2.2.11-id64-release (95ae9a6)
Oct 07 04:48:30 mirpnevmatiki.ru searchd[23375]: Copyright (c) 2001-2016, Andrew Aksyonoff
Oct 07 04:48:30 mirpnevmatiki.ru searchd[23375]: Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Oct 07 04:48:30 mirpnevmatiki.ru searchd[23375]: WARNING: key 'enable_star' was permanently removed from Sphinx configuration. Refer to documentation for details.
Oct 07 04:48:30 mirpnevmatiki.ru searchd[23375]: WARNING: key 'charset_type' was permanently removed from Sphinx configuration. Refer to documentation for details.
Oct 07 04:48:30 mirpnevmatiki.ru systemd[1]: searchd.service: control process exited, code=exited status=1
Oct 07 04:48:30 mirpnevmatiki.ru systemd[1]: Failed to start SphinxSearch Search Engine.
-- Subject: Unit searchd.service has failed
-- Defined-By: systemd
-- Support: lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit searchd.service has failed.
--
-- The result is failed.
Oct 07 04:48:30 mirpnevmatiki.ru systemd[1]: Unit searchd.service entered failed state.
Oct 07 04:48:30 mirpnevmatiki.ru systemd[1]: searchd.service failed.
Oct 07 04:48:30 mirpnevmatiki.ru polkitd[475]: Unregistered Authentication Agent for unix-process:23365:40324805 (system bus name :1.32100, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected fr
Oct 07 04:48:30 mirpnevmatiki.ru sshd[23362]: Failed password for root from 117.73.2.103 port 45028 ssh2
Oct 07 04:48:31 mirpnevmatiki.ru sshd[23362]: Received disconnect from 117.73.2.103 port 45028:11: Bye Bye [preauth]
Oct 07 04:48:31 mirpnevmatiki.ru sshd[23362]: Disconnected from 117.73.2.103 port 45028 [preauth]


Строка 421 следующая:
ob_start();
Подскажите, куда копать?
  • Вопрос задан
  • 367 просмотров
Пригласить эксперта
Ответы на вопрос 1
ManticoreSearch
@ManticoreSearch
FATAL: failed to open log file '/var/log/sphinxsearch/searchd.log': No such file or directory


Убедитесь, что директория /var/log/sphinxsearch/ существует.
Ответ написан
Комментировать
Ваш ответ на вопрос

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

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