-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Cannot export/import realms via bin/kc.sh #13907
Comments
Thanks, it should be fixed by #13942. |
@pedroigor I've just tried Keycloak 19.0.2. Still have the same error during the import:
Am I doing something wrong? Maybe I need to pass some additional parameters as well? |
Also getting the same error with Keycloak
Keycloak installed as an Argo Application on a Kubernetes cluster with the following manifest:
|
This thread suggests that "as part of [import/export, Keycloak] spins up the http server, so when that port is blocked (e.g. keycloak runs or another app has a binding) this could cause the error you are observing" - that is, that you can't export from a pod with a running server. That's unexpected! The workaround mentioned in that discussion (
I also can't see any way of temporarily stopping the server - It looks like the option introduced here is not in my version of
|
Whoops, sorry, just saw that this issue is closed. Will replicate to a fresh issue. |
Re-opened here. |
Describe the bug
I installed a new version of Keycloak 19.0.1 running in the Kubernetes pod using Postgress 14.5 and tried to migrate the database from Keycloak 17 (Postgres 11) using Keycloak scripts.
While I managed to export the json file from Keycloak 17 (Postgres 11) like it is described in this guide: https://github.com/keycloak/keycloak-documentation/blob/main/server_admin/topics/export-import.adoc
Yet, I did not manage to import realms form Keycloak 17 (Postgres 11) to Keycloak 19.0.1 (Postgress 14.5) using the new Keycloak script: https://www.keycloak.org/server/importExport
When I import a json file in Keycloak 19.0.1 pod, I am getting this error:
Also, I tested export with
kc.sh
and it did not work either - I got the same error when running this:Eventually, I had to change my strategy and imported the sql database via Postgres migration tools.
But I'm still wondering how to fix this error.
Version
19.0.1
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: