A
A
Alexey Bespalov2019-10-07 04:59:01
1C-Bitrix
Alexey Bespalov, 2019-10-07 04:59:01

Why does Sphinx swear at template code?

There was a server failure. After that, a number of configs flew off, including Sphinx stopped working. When I set it up, there seemed to be no problems, I copied the typical config and everything started up.
Now it won't start and throws an error:


[[email protected] ~]# 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.
[[email protected] ~]# 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. en 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]

Line 421 is the following:
ob_start();
Tell me where to dig?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
M
ManticoreSearch, 2019-10-08
@ManticoreSearch

FATAL: failed to open log file '/var/log/sphinxsearch/searchd.log': No such file or directory

Make sure the /var/log/sphinxsearch/ directory exists.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question