-
Notifications
You must be signed in to change notification settings - Fork 93
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
[BUG] - Keycloak does not start on the first try #2579
Comments
I'm trying to understand the issue. I guess when you reboot, the k8s pods restart and run the init containers again, but somehow the file system of the keycloak pod is from the prior run? The PR I opened might fix it, but I haven't tested it. |
I am also not entirely sure; in theory, unless the keycloak metadata for the Kubernetes resource has changed, it should not restart. @krassowski why do you need it to restart? Also, because the helm provider handles this, some changes made to the values.yaml, do not trigger a change in the pod. This is a bug with the provider itself, as it can be seen in some other cases (I think this is related to how the provider calculates the diff) |
I need to restart it because when I boot my laptop it is always dead, I do not recall if it stuck in a restart loop or not but simply put nebari does not work until I get to k9s and restart it manually. I applied @Adam-D-Lewis's patch and will let you know if this helped or not as soon as I restart my laptop (but I think that patch is useful anyways because even if it is not the root cause, the logs will now be cleaner). |
I am not sure if I follow you here @viniciusdc, my problem is not during redeployment but after rebooting. |
Describe the bug
Locally I always have to restart keycloak after reboot. I see the following:
nebari/src/_nebari/stages/kubernetes_keycloak/template/modules/kubernetes/keycloak-helm/values.yaml
Lines 26 to 40 in 2000996
This code was most recently modified in #1810 (CC @Adam-D-Lewis)
It also means that the jupyterhub pod does not start up: #2547
Expected behavior
Keycloak starts on the first try
OS and architecture in which you are running Nebari
Ubuntu
How to Reproduce the problem?
Command output
No response
Versions and dependencies used.
No response
Compute environment
None
Integrations
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: