Briefly, this error occurs when there is an invalid entry for a role in the users roles file in Elasticsearch. This could be due to a syntax error, incorrect role name, or the role does not exist. To resolve this issue, you can check the syntax of the roles file, ensure the role names are correct, and verify that the roles exist in Elasticsearch. If the problem persists, you may need to recreate the roles file or update the roles in Elasticsearch.
This guide will help you check for common problems that cause the log ” invalid entry for role [{}] in users_roles file [{}]; line [{}]. no users found. skipping… ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.
Log Context
Log “invalid entry for role [{}] in users_roles file [{}]; line [{}]. no users found. skipping…” classname is FileUserRolesStore.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
validationError); continue; } String usersStr = line.substring(i + 1).trim(); if (Strings.isEmpty(usersStr)) { logger.error("invalid entry for role [{}] in users_roles file [{}]; line [{}]. no users found. skipping..."; role; path.toAbsolutePath(); lineNr); continue; } String[] roleUsers = USERS_DELIM.split(usersStr); if (roleUsers.length == 0) {