Closed link178 closed 1 year ago
Hi @link178. At what point did you get that error? I can't reproduce it when running the Keycloak container from this Docker Compose file: https://github.com/ThomasVitale/cloud-native-spring-in-action/blob/main/Chapter11/11-end/polar-deployment/docker/docker-compose.yml#L127
Hi, I tried with this config:
` keycloak: image: quay.io/keycloak/keycloak:18.0 command: start-dev --import-realm volumes:
but same error message:
2022-08-01 20:13:43,549 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (development) mode
2022-08-01 20:13:43,550 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to import realm: eauction
2022-08-01 20:13:43,550 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Script upload is disabled
if you check keycloak docs, they indeed say that script upload have been disabled. So, I can´t move forward from here, unless I use the keycloak config I showed before....
@link178 thanks for your reply. The feature used in the book is the one for exporting/importing realms. Since Quarkus became the default distribution, importing realms can be done as explained in this guide: https://www.keycloak.org/server/importExport#_importing_a_realm_during_startup
The "upload-script" feature has ben deprecated for a long time and it's been removed in Keycloak 18. It's not needed to import a realm, but it looks like the import might fail depending on your Keycloak configuration regarding clients and authentication providers (which might rely on "uploading scripts"). I found this issue on the GitHub Keycloak project that might help you solve the problem: https://github.com/keycloak/keycloak/issues/11664
Does the import work when you use the JSON file I provide with the source code?
I'm closing the issue for now since the image runs correctly when using the configuration provided with the repository. Feel free to open a new issue should you find errors with the provided source code. Thank you.
Hello,
there is an issue with keycloack, script upload is disabled, so it is not loading realms from files:
So it is not loading realm. I found a workaround, with a different image and a parameter:
what do you think about this? am I doing sth incorrectly? or the docker compose file needs to be updated ?
Regards