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、パッセンジャー 2.2.10 を使用しています。ご意見をお待ちしております。
どうもありがとう!
グレッグ
更新: Google 検索をさらに行ったところ、同様のエラーが発生した他の人が何人か見つかりました。ポート リスニング エラーに関連しているようです。私の production.sphinx.conf も同様にポート 9312 を使用していますが、sphinx.yml で 3312 を使用するように指定しています。
誰がこれを引き起こしているのか考えていますか? ありがとう。