[英]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.