简体   繁体   English

FORBIDDEN / 12 / index只读/允许删除(api)问题

[英]FORBIDDEN/12/index read-only / allow delete (api) problem

When importing items into my Rails app I keep getting the above error being raised by SearchKick on behalf of Elasticsearch. 将项目导入我的Rails应用程序时,我不断收到SearchKick代表Elasticsearch引发的上述错误。

I'm running Elasticsearch in a Docker. 我在Docker中运行Elasticsearch。 I start my app by running docker-compose up. 我通过运行docker-compose来启动我的应用程序。 I've tried running the command recommended above but i just get "No such file or directory" returned. 我已经尝试运行上面推荐的命令,但我只是得到“没有这样的文件或目录”返回。 Any ideas? 有任何想法吗?

I do have port 9200 exposed to outside but nothing seems to help. 我确实将端口9200暴露在外面,但似乎没有任何帮助。 Any ideas? 有任何想法吗?

Indeed, running curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}' as suggested by @ Nishant Saini resolves the very similar issue I ran just into. 确实,运行curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'正如@ Nishant Saini所建议的那样我遇到的非常相似的问题。

I hit disk watermarks limits on my machine. 我在我的机器上达到了磁盘水印限制。

Use the following command: 使用以下命令:

 curl -s -H 'Content-Type: application/json' -XPUT '[IP-server]:9200/_all/_settings?pretty' -d ' {
    "index":{
             "blocks" : {"read_only_allow_delete":"false"}
    }
}'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Ruby on Rails - searchkick gem:cluster_block_exception - FORBIDDEN/12/index 只读/允许删除(api) - 状态”:403 - Ruby on Rails - searchkick gem : cluster_block_exception - FORBIDDEN/12/index read-only / allow delete (api) - status":403 Searchkick:Elasticsearch 没有索引“FORBIDDEN/12/index read-only”? - Searchkick: Elasticsearch not indexing "FORBIDDEN/12/index read-only"? Rails:将模型属性设置为只读,但允许通过方法更新 - Rails: set a model attribute as read-only, but allow updating via method 如何在开发中使 Paperclip 只读? (防止上传/删除/覆盖) - How to make Paperclip read-only on development? (prevent upload/delete/overwrite) 使用Mongoid将整个模型设为只读 - Making an entire model read-only with Mongoid 使用Rspec / Rails模拟只读数据库 - Simulate read-only database with Rspec / Rails Rails 中是否有特定位置 Devise 删除用户的 session? 由于只读数据库,无法删除 session - Is there a specific place in Rails where Devise deletes a user's session? Can't delete session due to read-only database 在Rails中访问只读数据库的最佳方法 - Best way to access read-only database in rails 通过 Ruby 将 Active Admin 中的 jsoneditor 设为只读? - Make jsoneditor in Active Admin read-only through Ruby? Heroku上的延迟作业工作者尝试连接只读关注者 - Delayed Job worker on Heroku tries to connect read-only follower
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM