A rails application server where homebrew is used, is getting the following console messages invoking org.thinking_sphinx.sphinx (redacted)
posix_spawn("usr/local/sphinx/bin/searchd", ...): no such file or directory
Existed with exit code : 1
Throttling respawn: Will start in 10 seconds
So this thing is looping every 10 seconds and (?) pointlessly generating these errors.
searchd does exist, and being installed via homebrew lies in
usr/local/Cellar/sphinx/[sphinx_version_number]/bin/
Idea where the problem gets generated and how to fix?
As made clear from the comments, it looks like that the file mentioned (org.thinking_sphinx.sphinx
) was from an old approach to managing Sphinx for a specific Rails app and/or Sphinx installation that perhaps no longer exists?
Sphinx certainly runs as a daemon, and Thinking Sphinx manages this via rake tasks (ts:start
, ts:stop
, ts:rebuild
, etc). Of course, something to start the daemon automatically when the OS boots is also useful, but that's up to whoever's managing the servers. And it's worth noting that the Sphinx daemon runs on a per-app basis, not a per-system basis, which is why stopping this rogue process will not have affected Sphinx searches in other apps.