Elastic Password reset

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
}

Did you run out of disk space on your cluster/nodes?
If so check out Why am I seeing a "FORBIDDEN/N/index read-only / allow delete" response against my index? and then try again.

Won't that give a read-only error? This index seems closed, which seems weird for the security index unless it was done by someone, etc.

Thank you Steve,

It was closed at that time and now It's working after opening the indices.

Yep, good catch.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.