gpt4 book ai didi

ruby-on-rails - 思考 Sphinx 增量索引在生产中失败

转载 作者:太空宇宙 更新时间:2023-11-03 16:39:45 29 4
gpt4 key购买 nike

这是我确定的:

  1. Delta 索引在开发中运行良好
  2. 当我推送到生产服务器时,Delta 索引不起作用,并且 searchd.log 中没有记录任何操作
  3. 我正在运行 Phusion Passenger,并且按照 the basic troubleshooting guide 中的建议,已确认:
    1. www-data 有权运行索引 rake 任务(从命令行手动运行它们)
    2. indexer 和 searchd 的路径是正确的 (/usr/local/bin)
    3. production.log 中没有错误

我到底会错过什么?我正在运行 Ruby Enterprise 1.8.6、Rails 2.3.4、Sphinx 0.9.8.1 和 Thinking Sphinx 1.2.11。

谢谢!

最佳答案

昨晚我 sleep 的时候它击中了我。不出所料,这是一个涉及错误配置的愚蠢问题,尽管我对它产生的结果感到相当惊讶。我想我不太了解 Thinking Sphinx 的内部结构。

最近我迁移了服务器。 sphinx.yml 看起来像这样:

production:
bin_path: '/usr/local/bin'
host: mysql.mysite.com

在新服务器上,MySQL 只是一个本地服务,但我忘了删除那一行。有趣的是,手动 rake 重建索引仍然工作得很好。我很好奇 Thinking Sphinx 在尝试重新加载增量时没有抛出错误,因为 mysql.mysite.com 不再存在,尽管这显然是问题的根源。

感谢您的帮助,很抱歉提出这样一个愚蠢的问题。

关于ruby-on-rails - 思考 Sphinx 增量索引在生产中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1622821/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com