sphinx rc.searchd not starting

Issue #844 closed
Stefan Scholz created an issue

Hello Janos,

after postinstall I tried to start rc.searchd and the result is:

root@serverlein:/usr/local/etc/piler# /etc/init.d/rc.searchd start starting searchd . . . Sphinx 2.2.11-id64-release (95ae9a6) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/usr/local/etc/piler/sphinx.conf'... listening on 127.0.0.1:9312 bind() failed on 127.0.0.1, retrying... bind() failed on 127.0.0.1, retrying... bind() failed on 127.0.0.1, retrying...

the sphinx.conf begins with:

minimal sphinx configuration suited to piler

source base { type = mysql sql_host = localhost sql_db = piler sql_user = piler sql_pass = **

sql_attr_uint = size sql_attr_uint = sent sql_attr_uint = attachments }

source delta : base { sql_query_pre = SET NAMES utf8........

Any ideas would be preciated, many thanks

Stefan

Comments (5)

  1. Janos SUTO repo owner

    I suspect that searchd is already running. Make sure to disable the sphinx installer shipped version, and use rc.searchd provided by piler.

  2. Stefan Scholz reporter

    Hello Janos, I found /etc/sphinxsearch/searchd.conf und replaced it with the one from /usr/local/etc/piler/. Killing searchd ist instantly restarts itself and with a fresh ./rc.searchd start starting searchd . . . Sphinx 2.2.11-id64-release (95ae9a6) Copyright (c) 2001-2016, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)

    using config file '/usr/local/etc/piler/sphinx.conf'... FATAL: failed to create pid file '/var/run/piler/searchd.pid': Permission denied Looking with ps -A|grep search I observe that searchd is already running. So the errormessage is OK?

  3. Janos SUTO repo owner

    Make sure, that the shipped init script (or systemd) won't start searchd. Also it's not good to replace sphinx.conf, with the piler shipped version. You should follow the installation guide, and let the piler shipped rc.searchd script start searchd using proper permissions.

    So my bet is that your problem stems from deviating from the installation manual. Note that I'm not saying you must not deviate from it as long as you know what you are doing.

  4. Log in to comment