Thinking sphinx doesn't start - “Failed to start searchd daemon”

后端 未结 3 1495
无人及你
无人及你 2021-02-15 13:09

I try to start thinking sphinx on my server but it doesn\'t want to work.

I do:

$ rake thinking_sphinx:index && rake thinking_sphinx:start


        
相关标签:
3条回答
  • 2021-02-15 13:19

    I solved it. I had sphinx process in the background, so i just killed it:

    $ ps -efa | grep sphinx
    root     23823     1  0 14:12 ?        00:00:00 searchd --pidfile --config /vol/www/apps/ror_tutorial/releases/20120202111104/config/production.sphinx.conf
    root     27069 20413  0 14:49 pts/1    00:00:00 grep sphinx
    $ kill 23823 
    

    Then i started sphinx:

    $ rake ts:start RAILS_ENV=production
    Started successfully (pid 27097).
    
    0 讨论(0)
  • 2021-02-15 13:24

    In my case I checked this file: ../yourdirectory/log/searchd.log and it was written that: /usr/local/var/data/binlog.002: No such file or directory I only do this:

    touch /usr/local/var/data/binlog.002

    Done, works fine.

    0 讨论(0)
  • It sounds like init has already started an instance of searchd bound to port 9312.

    There are a few solutions:

    1. Kill the system instance of searchd: sudo service sphinxsearch stop.
    2. Modify config/sphinx.yml and tell Sphinx to use a different port in production. (config/thinking_sphinx.yml if you're using TS 3.x)
    3. Configure your server to not start searchd when the system boots up. On Ubuntu 14.04 you can do that by editing /etc/defaults/sphinxsearch and setting START=no.

    Our server runs Ubuntu, and I installed Sphinx from the Debian package available on the Sphinx website.

    0 讨论(0)
提交回复
热议问题