我一直在用思维-狮身人面像来打击奇怪的行为。目前的情况是索引没有出现。
我得到了不同的行为与不同的命令。在重建狮身人面像的命令下,盖帽部署停止。
invoke_command "cd #{release_path} && RAILS_ENV=#{rails_env} bundle exec rake ts:rebuild"要索引的手动命令
$ bundle exec rake ts:index --trace
** Invoke ts:index (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
FATAL: sorry, too many clients already
/Users/me/app/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1216:in `initialize'使用手动包执行rake的行为:重建是一个非常长的失速,我最终打断了它。
试图停止引擎有一个不同的错误。THere是一个足够长到Ctrl并返回的失速:
$ bundle exec rake ts:stop --trace
** Invoke ts:stop (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute ts:stop
^Crake aborted!
/Users/me/app/shared/bundle/ruby/1.9.1/gems/thinking-sphinx-3.0.3/lib/thinking_sphinx/rake_interface.rb:56:in `sleep'更新 wooops..。我跑了
bundle exec rake ts:index --trace直接进入服务器上的终端窗口。索引开始写。但最后收到了两次警告。
PID 82805没有找到任何进程 指数未旋转
那画得更好吗?
**更新2 **数据
?? S 11:28AM 0:06.93 /usr/local/bin/searchd --pidfile --config /Users/me/app/releases/20140127084810/config/development.sphinx.conf
?? S 11:28AM 0:00.00 /usr/local/bin/searchd --pidfile --config /Users/me/app/releases/20140127084810/config/development.sphinx.conf
?? S 13Jan14 1:16.68 /usr/local/bin/searchd --pidfile --config /Users/me/rails/releases/20140113100039/config/development.sphinx.conf
s001 R+ 1:23PM 0:00.00 grep searchd对那些感兴趣的人来说,这些问题通过两次讨论( 一次关于设置 )和另一次讨论( 确定过程并对其采取行动 )得到解决。
发布于 2014-01-28 11:32:23
首先,对于Capistrano和Thinking Sphinx,强烈建议您将生成的Sphinx配置文件设置为驻留在共享目录中。这可能就是重建上限任务挂起的原因。
至于警告--您能确认狮身人面像守护进程是否正在运行吗?ps aux | grep searchd应该能做到这一点。如果是,则值得检查pid文件是否包含正确的pid。如果它没有运行,那么最好删除pid文件,因为Sphinx/Thinking Sphinx假定没有运行。
https://stackoverflow.com/questions/21402960
复制相似问题