在将 Rails 应用程序部署到我的 VPS 后,我正在努力让 Sphinx 恢复并运行。
具体来说,我抛出了这个错误:
** [out :: myapp.com] => 混入锁定版本:1.6.4
** [out :: myapp.com]
** [out :: myapp.com] 无法启动 searchd 守护进程。检查 /var/www/myapp/releases/20100227224936/log/searchd.log。
** [out :: myapp.com] 无法启动 searchd 守护进程。检查 /var/www/myapp/releases/20100227224936/log/searchd.log
但是,不会创建日志文件!
这是我正在使用的 deploy.rb(感谢 Updrift :))
namespace :deploy do
desc "Restart the app"
task :restart, :roles => :app do
# This regen's the config file, stops Sphinx if running, then starts it.
# No indexing is done, just a restart of the searchd daemon
# thinking_sphinx.running_start
# The above does not re-index. If any of your define_index blocks
# in your models have changed, you will need to perform an index.
# If these are changing frequently, you can use the following
# in place of running_start
thinking_sphinx.stop
thinking_sphinx.index
thinking_sphinx.start
# Restart the app
run "touch #{current_path}/tmp/restart.txt"
end
desc "Cleanup older revisions"
task :after_deploy do
cleanup
end
end
我正在使用 Thinking Sphinx gem,v 1.3.16,passenger 2.2.10。您的任何想法将不胜感激。
非常感谢!
格雷格
更新:除了一些更多的谷歌搜索,我发现其他几个人有类似的错误 - 似乎与端口监听错误有关,例如这里和 [我不允许链接到另一个]。我的 production.sphinx.conf 同样使用了端口 9312,尽管我在 sphinx.yml 中指定使用 3312。
有谁知道可能是什么原因造成的?谢谢。