首页 > 解决方案 > 如何解决heroku上的elasticsearch index not found错误?

问题描述

我正在尝试在heroku上推送我的rails应用程序,在应用程序中使用弹性搜索,所以在heroku上我添加了盆景插件,一切都在开发中运行,但是在heroku上,Application error当我检查我发现的日志时,它给出了:

Bonsai: Initializing default Elasticsearch client with https://rppeji3zrn:FILTERED@redwood-5622314.us-east-1.bonsaisearch.net
2018-09-05T10:04:37.828500+00:00 app[web.1]: [!!!] Index does not exist (Elasticsearch::Transport::Transport::Errors::NotFound)
2018-09-05T10:04:37.875396+00:00 app[web.1]: [4] ! Unable to load application: Elasticsearch::Transport::Transport::Errors::Forbidden: [403] {"code":403,"message":"Updates to this cluster have been disabled. Please contact support@bonsai.io for further details."}
2018-09-05T10:04:37.875554+00:00 app[web.1]: bundler: failed to load command: puma (/app/vendor/bundle/ruby/2.4.0/bin/puma)
2018-09-05T10:04:37.875661+00:00 app[web.1]: Elasticsearch::Transport::Transport::Errors::Forbidden: [403] {"code":403,"message":"Updates to this cluster have been disabled. Please contact support@bonsai.io for further details."}

我对 Rails 很陌生,所以没有得到导致错误的原因,任何帮助将不胜感激。

标签: ruby-on-railselasticsearchherokubonsai-elasticsearch

解决方案


推荐阅读