-
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] - Realm not found #2745
Comments
keycloak deployment occurs in two different stages,
Though, the error you are seen is coming from this part: nebari/src/_nebari/stages/kubernetes_keycloak_configuration/template/main.tf Lines 84 to 90 in b2afe1a
While the workaround above is a good short-term fix it would be important for us to understand why the realm is not created when the resource assumes so... one suggestion is to start by check the keycloak logs for any warnings/errors (they do appear in case a request is incorrectly made) |
Describe the bug
Occasionally when deploying I've seen the error
[terraform]: │ Error: error sending GET request to /auth/admin/realms/nebari/default-groups: 404 Not Found. Response body: {"error":"Realm not found."}
from Keycloak. I believe I've seen this when terraform fails during a deploy then I redeploy. I think it has something to do with terraform thinking the nebari realm should already exist, but it wasn't created yet.
I am able to get around the error most of the time by manually creating the realm.
I've gotten around this by manually adding the "nebari" realm in Keycloak then redeploying.
We should add this to the docs.
The text was updated successfully, but these errors were encountered: