-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
admin console url becomes erroneous (502 bad gateway) after some inactivity time #16850
Comments
I had this problem also. The solution turned out to be increasing the buffer size used by nginx. It seems that reauthenticating an old session was causing a lot more data between nginx and the upstream server, causing nginx to choke with its default settings. See Why do I get 502 when trying to authenticate. Add these directives to the
|
@gaetanquentin Does that solution work for you? Do you mind if I close this issue? |
Thank you so much! It's working for me! nginx.ingress.kubernetes.io/proxy-buffer-size: "128k" |
it looks like it is working, with this global conf in configmap (microk8s):
|
OK. I don't think this is a UI problem so I will change the area to core. |
about ' proxy_buffers 4 256k;' : in nginx doc, there is no proxy_buffers but [proxy-buffers-number] instead and '4 256k' what does that mean ? 4256k? regards, |
ok so with global configmap, it doesn't work nginx.ingress.kubernetes.io/proxy-buffer-size: "128k" it works fine. thank you @tyokyo320 |
It seems like this particular nginx option might not be configurable through the k8s ingress ConfigMap? Here is the documentation from nginx for |
Related to #17167; more information here. |
Closing as this is not a Keycloak issue. |
Before reporting an issue
Area
core
Describe the bug
not sure about the area i indicated above ^^
it is about "administration console"
After beeing loggued in administration console , and switched to my realm, a few minutes later after inactivity , if i refresh the page (F5), i have a "502 bad gateway"
If i come back to administration console main link: same thing.
i had to delete this cookie in the browser for the page come pack ok: KEYCLOAK_LEGACY_IDENTITY
in the ingress nginx log, i can see that:
192.168.1.1 - - [05/Feb/2023:20:56:39 +0000] "GET /realms/master/protocol/openid-connect/auth?client_id=security-admin-console&redirect_uri=https%3A%2F%2Fkc.mysite.net%2Fadmin%2Fmaster%2Fconsole%2F&state=e2c141dd-5942-47d9-870e-fc5253c579a2&response_mode=fragment&response_type=code&scope=openid&nonce=f8100cc7-2535-450c-810d-ea97e2082339&prompt=none&code_challenge=gXdHqXCTwULscs_dC9iQHYiBzS3WKzV78gdgLOmwqV0&code_challenge_method=S256 HTTP/2.0" 502 552 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36" 300 0.008 [keycloak-kc-service-8443] [] 10.1.39.189:8443 0 0.008 502 db914cfb2f0a9a4e729ccfa54ccc5990
Version
kc: 20.0.3, kubernetes 1.26.0
Expected behavior
url stays ok all the time
Actual behavior
After loggued into admin console , and switched to myrealm, the url https://myurl.net/admin/master/console/#/myrealm become erroneous, after some minutes (don't know how much, more that 15 min i think), wwith 502 bad gateway
How to Reproduce?
kubernetes 1.26.0
ingress controler nginx
Anything else?
No response
The text was updated successfully, but these errors were encountered: