Any ideas why Thinking Sphinx Rake tasks are not running?

前端 未结 5 1004
离开以前
离开以前 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 13:02

    The Problem

    This problem occurs if your searchd crashed or you killed it manually. On Windows it doesn't overwrite your searchd..pid, so still the old PID is saved and ThinkingSphinx doesn't check the real running processes in your taskmanager. So all these commands (rake ts:restart, rake ts:rebuild, ...) won't work, rake will always abort and you get the error rake aborted, ... searchd already running

    The solution

    Delete your path-to/your-app/log/searchd..pid.

    may be development or production, depending on your current stage.

    Hope this answer will help the googler's.

提交回复
热议问题