收到“Elastic 未正确加载。请检查服务器输出以获取更多信息。” 通过网守访问时

Oha*_*sky 5 single-sign-on econnreset kibana keycloak keycloak-gatekeeper

我在 Kibana (docker.elastic.co/kibana/kibana) 上使用带有 keycloak (docker.io/jboss/keycloak:11.0.2) 的 Gatekeeper (quay.io/keycloak/keycloak-gatekeeper:10.0.0) 进行 SSO -oss:7.10.1)

我的网守配置:

discovery-url: http://{{ index .Values.gatekeeper.config "keycloak-url" }}/auth/realms/{{ .Values.gatekeeper.config.realm }}
skip-openid-provider-tls-verify: true
client-id: {{ index .Values.gatekeeper.config "client-id" }}
client-secret: {{ index .Values.gatekeeper.config "client-secret" }}
listen: :3000
enable-refresh-tokens: true
enable-default-deny: true
enable-session-cookies: true
tls-cert:
tls-private-key:
redirection-url: http://{{ index .Values.gatekeeper.config "redirection-url" }}:{{ .Values.service.nodePort }}
secure-cookie: false
encryption-key: {{ index .Values.gatekeeper.config "encryption-key" }}
upstream-url: http://127.0.0.1:5601/
forbidden-page: /html/access-forbidden.html
upstream-keepalives: true
resources:
- uri: /*
Run Code Online (Sandbox Code Playgroud)

我能够进入 keycloak 登录页面,但在成功登录后(并且在 Kibana 加载程序完成加载后),我收到一个错误页面:

在此输入图像描述

从 kibana 日志中我看到:

{"type":"log","@timestamp":"2020-12-19T15:50:58Z","tags":["debug","connection","econnreset"],"pid":8,"message":"ECONNRESET: Socket was closed by the client (probably the browser) before
Run Code Online (Sandbox Code Playgroud)

它可以完全读取"} {"type":"log","@timestamp":"2020-12-19T15:51:00Z","tags":["debug","connection","econnreset"] ,"pid":8,"message":"ECONNRESET: 套接字在完全读取之前已被客户端(可能是浏览器)关闭"} {"type":"log","@timestamp":"2020- 12-19T15:51:01Z","tags":["debug","connection","econnreset"],"pid":8,"message":"ECONNRESET: 套接字被客户端关闭(可能是浏览器) ) 才能完全读取”}

以前有人遇到过这种情况吗?我怎样才能解决这个问题?

谢谢

Moh*_*eli 8

对我来说,我禁用了 adBlocker 或类似的功能,这是正确的。