Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sphinx 在cap部署期间,斯芬克斯无法启动,我做错了什么?_Sphinx_Passenger_Capistrano_Thinking Sphinx - Fatal编程技术网

Sphinx 在cap部署期间,斯芬克斯无法启动,我做错了什么?

Sphinx 在cap部署期间,斯芬克斯无法启动,我做错了什么?,sphinx,passenger,capistrano,thinking-sphinx,Sphinx,Passenger,Capistrano,Thinking Sphinx,在将rails应用程序部署到我的VPS后,我正在努力让Sphinx恢复运行 具体来说,我遇到了以下错误: **[out::myapp.com]=>混入锁定版本:1.6.4 **[out::myapp.com] **[out::myapp.com]无法启动searchd守护程序。检查/var/www/myapp/releases/2010022724936/log/searchd.log. **[out::myapp.com]无法启动searchd守护程序。检查/var/www/myapp/rel

在将rails应用程序部署到我的VPS后,我正在努力让Sphinx恢复运行

具体来说,我遇到了以下错误:

**[out::myapp.com]=>混入锁定版本:1.6.4
**[out::myapp.com]
**[out::myapp.com]无法启动searchd守护程序。检查/var/www/myapp/releases/2010022724936/log/searchd.log.
**[out::myapp.com]无法启动searchd守护程序。检查/var/www/myapp/releases/2010022724936/log/searchd.log

但是,不会创建日志文件

这是我正在使用的deploy.rb(感谢Updrift:)

我用的是斯芬克斯宝石,v1.3.16,乘客2.2.10。如果您有任何想法,我们将不胜感激

非常感谢

格雷格

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


有人知道这是什么原因吗?谢谢。

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


重新启动服务器会释放端口。

哦,对于没有遇到IT人群的人来说…:)
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