Whenever I try to reset password of elastic, I am getting bellow mention error:
Request:
curl -u user:Password -XPUT 'http://localhost:9200/_xpack/security/user/elastic/_password?pretty' -H 'Content-Type: application/json' -d'
{
"password" : "New Password"
}
'
Error:
{
"error" : {
"root_cause" : [
{
"type" : "cluster_block_exception",
"reason" : "index [.security-7] blocked by: [FORBIDDEN/4/index closed];"
}
],
"type" : "cluster_block_exception",
"reason" : "index [.security-7] blocked by: [FORBIDDEN/4/index closed];"
},
"status" : 403
}