portal icon indicating copy to clipboard operation
portal copied to clipboard

Update KeyCloak version

Open SubOptimal opened this issue 2 years ago • 1 comments

As discussed in today's community meeting this issue is to collect discovered needed changes on the Docker files.

Starting point was a post from user HortusNanum.

SubOptimal avatar Mar 13 '23 20:03 SubOptimal

An updated docker-compose.yaml was pushed to https://github.com/openbikesensor/portal/tree/issue_322.

docker compose up

  • it's failing to access http://keycloak:8080/auth/realms/obs-dev/, it works after the realm has been configured correctly
  • the URL is defined in https://github.com/openbikesensor/portal/blob/main/api/config.dev.py#L11
  • there the hostname keycloak could be changed to localhost
  • with the amended hostname it still fails accessing the realm, I could not figure out, where the realm obs-dev gets defined

docker-compose up keycloak

  • fails with
portal-keycloak-1  | 2023-03-13 23:54:07,102 TRACE [io.quarkus.bootstrap.classloading.QuarkusClassLoader] (main) Class quarkus.properties not found in parent first load from java.net.URLClassLoader@ed7f8b4
portal-keycloak-1  | 
portal-keycloak-1  | ERROR: Failed to run 'build' command.
portal-keycloak-1  | Error details:
portal-keycloak-1  | java.lang.reflect.InvocationTargetException
portal-keycloak-1  | 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  • it often fails on the very first invocation (after clean install), consecutive invocations are not failing

docker-compose up postgres

  • fails related to the different user/password for the keycloak start-dev
portal-postgres-1  | FATAL:  password authentication failed for user "obs"

SubOptimal avatar Mar 14 '23 00:03 SubOptimal