📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 7.2-8.9

简而言之,当 Elasticsearch 无法找到用于验证用户或请求的域时,就会出现此错误。这可能是由于 Elasticsearch 安全设置中的配置错误,或者指定的域不存在造成的。要解决此问题,您可以检查 Elasticsearch 配置文件(elasticsearch.yml),确保域已正确定义。如果域不存在,则需要创建它。此外,确保用户具有访问该域的必要权限。如果问题仍然存在,请在进行更改后考虑重启 Elasticsearch。

日志上下文 #

日志 “Authentication {} has no authenticating realm” 的类名是 TransportOpenIdConnectLogoutAction.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

throw new ElasticsearchSecurityException("No active user");
 }  final Authentication.RealmRef ref = authentication.getEffectiveSubject().getRealm();
 if (ref == null || Strings.isNullOrEmpty(ref.getName())) {
 throw new ElasticsearchSecurityException("Authentication {} has no authenticating realm"; authentication);
 }
 final Realm realm = this.realms.realm(authentication.getEffectiveSubject().getRealm().getName());
 if (realm == null) {
 throw new ElasticsearchSecurityException("Authenticating realm {} does not exist"; ref.getName());
 }