Any ideas why Thinking Sphinx Rake tasks are not running?

前端 未结 5 1021
离开以前
离开以前 2021-02-15 12:21

I\'m finding that Thinking Sphinx sometimes errors out when I try to run its Rake tasks. Sometimes the tasks work fine, and sometimes I get errors like the one below.

I\

5条回答
  •  后悔当初
    2021-02-15 12:59

    I believe this error is caused when you have a search daemon already running.

    Try

    ps | grep searchd
    

    if that gives you something like this...

    73470 ttys002    0:00.03 searchd --pidfile --config /Users/dwickwire/Projects/production/config/development.sphinx.conf
    81907 ttys002    0:00.00 grep searchd
    

    then kill the searchd

    sudo kill -9 process_id
    

    process_id in my case would be 73470

    Then try rake ts:rebuild again.

提交回复
热议问题