Failed to parse indices privileges for role . expected but – How to solve this Elasticsearch error

Opster Team

, Version: 1.7-8.0

Log Context

Log “failed to parse indices privileges for role [{}]. expected {} but”classname  is RoleDescriptor.java We extracted the following from Elasticsearch source code for those seeking an in-depth context :

} else {
 if (token == XContentParser.Token.END_OBJECT) {
 throw new ElasticsearchParseException("failed to parse indices privileges for role [{}]. " +
 "\"{}\"" must not be empty.""; roleName; Fields.FIELD_PERMISSIONS);

 

Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content