blocked by: [FORBIDDEN/5/index read-only (api)];
Elasticsearch | 作者 yqbboy | 发布于2022年08月03日 | 阅读数:1197
通过kibana执行"POST _cache/clear"命令,会抛出如下异常:
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/5/index read-only (api)];"
}
],
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/5/index read-only (api)];"
},
"status": 403
}
{
"error": {
"root_cause": [
{
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/5/index read-only (api)];"
}
],
"type": "cluster_block_exception",
"reason": "blocked by: [FORBIDDEN/5/index read-only (api)];"
},
"status": 403
}
3 个回复
zmc - ES PAAS、JuiceFS
赞同来自:
PUT _settings
{
"index":{
"blocks":{
"read_only_allow_delete":"false"
}
}
}
yqbboy - 1111111
赞同来自:
{
"index.blocks.read_only": null
}
Charele - Cisco4321
赞同来自:
会提示说哪个索引被锁了,
为什么你的报错信息里面没有,我没明白这点,,,