【问题标题】:What am I doing wrong for Sphinx to fail to start during cap deploy?Sphinx 在 cap 部署期间无法启动,我做错了什么?
【发布时间】:2010-02-27 23:06:28
【问题描述】:

在将 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。您的任何想法将不胜感激。

非常感谢!

格雷格

更新:除了一些更多的谷歌搜索,我发现其他几个人有类似的错误 - 似乎与端口监听错误有关,例如here 和 [我不允许链接到另一个]。我的 production.sphinx.conf 同样使用了端口 9312,尽管我在 sphinx.yml 中指定使用 3312。

有人知道是什么原因造成的吗?谢谢。

【问题讨论】:

    标签: sphinx passenger capistrano thinking-sphinx


    【解决方案1】:

    我应该打电话给 IT 人群:“你试过关掉它然后再打开吗?”

    http://groups.google.com/group/thinking-sphinx/browse_thread/thread/dde565ea40e31075

    重启服务器释放端口。

    【讨论】:

    猜你喜欢
    • 2020-09-08
    • 2021-02-26
    • 2018-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-21
    相关资源
    最近更新 更多