waldur / waldur-docker-compose

Docker-compose configuration for quick setup of Waldur for demo purposes
MIT License
2 stars 11 forks source link

cannot access web gui waldur #9

Open avenbreaks opened 1 year ago

avenbreaks commented 1 year ago

i can't access web gui (blank screen) after deploying waldur using docker, and I can't access into the keycloak container (a few seconds it always restarts itself)

docker exec keycloak /opt/jboss/keycloak/bin/add-user-keycloak.sh -u demo -p demo

OCI runtime exec failed: exec failed: unable to start container process: exec: "/opt/jboss/keycloak/bin/add-user-keycloak.sh": stat /opt/jboss/keycloak/bin/add-user-keycloak.sh: no such file or directory: unknown

Docker version : 24.0.2 Docker compose version : v2.18.1

Logs Keycloak :

2023-07-05 14:48:01,113 WARN  [io.agroal.pool] (agroal-11) Datasource '<default>': FATAL: password authentication failed for user "keycloak"
2023-07-05 14:48:01,312 WARN  [org.infinispan.CONFIG] (keycloak-cache-init) ISPN000569: Unable to persist Infinispan internal caches as no global state enabled
2023-07-05 14:48:01,367 WARN  [org.infinispan.PERSISTENCE] (keycloak-cache-init) ISPN000554: jboss-marshalling is deprecated and planned for removal
2023-07-05 14:48:01,407 INFO  [org.infinispan.CONTAINER] (keycloak-cache-init) ISPN000556: Starting user marshaller 'org.infinispan.jboss.marshalling.core.JBossUserMarshaller'
2023-07-05 14:48:01,790 INFO  [org.infinispan.CONTAINER] (keycloak-cache-init) ISPN000128: Infinispan version: Infinispan 'Triskaidekaphobia' 13.0.9.Final
2023-07-05 14:48:01,984 INFO  [org.infinispan.CLUSTER] (keycloak-cache-init) ISPN000078: Starting JGroups channel `ISPN`
2023-07-05 14:48:01,984 INFO  [org.infinispan.CLUSTER] (keycloak-cache-init) ISPN000088: Unable to use any JGroups configuration mechanisms provided in properties {}. Using default JGroups configuration!
2023-07-05 14:48:02,144 WARN  [org.jgroups.protocols.UDP] (keycloak-cache-init) JGRP000015: the send buffer of socket MulticastSocket was set to 1.00MB, but the OS only allocated 212.99KB
2023-07-05 14:48:02,145 WARN  [org.jgroups.protocols.UDP] (keycloak-cache-init) JGRP000015: the receive buffer of socket MulticastSocket was set to 20.00MB, but the OS only allocated 212.99KB
2023-07-05 14:48:02,145 WARN  [org.jgroups.protocols.UDP] (keycloak-cache-init) JGRP000015: the send buffer of socket MulticastSocket was set to 1.00MB, but the OS only allocated 212.99KB
2023-07-05 14:48:02,145 WARN  [org.jgroups.protocols.UDP] (keycloak-cache-init) JGRP000015: the receive buffer of socket MulticastSocket was set to 25.00MB, but the OS only allocated 212.99KB
2023-07-05 14:48:04,209 INFO  [org.jgroups.protocols.pbcast.GMS] (keycloak-cache-init) b1a878d9e0db-20291: no members discovered after 2018 ms: creating cluster as coordinator
2023-07-05 14:48:04,224 INFO  [org.infinispan.CLUSTER] (keycloak-cache-init) ISPN000094: Received new cluster view for channel ISPN: [b1a878d9e0db-20291|0] (1) [b1a878d9e0db-20291]
2023-07-05 14:48:04,230 INFO  [org.infinispan.CLUSTER] (keycloak-cache-init) ISPN000079: Channel `ISPN` local address is `b1a878d9e0db-20291`, physical addresses are `[172.19.0.6:37035]`
2023-07-05 14:48:05,000 INFO  [org.infinispan.CLUSTER] (main) ISPN000080: Disconnecting JGroups channel `ISPN`
2023-07-05 14:48:05,086 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (production) mode
2023-07-05 14:48:05,087 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to obtain JDBC connection
2023-07-05 14:48:05,088 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: FATAL: password authentication failed for user "keycloak"
2023-07-05 14:48:05,088 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command.

waldur-db.log :

2023-07-05 14:38:09.912 UTC [95] STATEMENT:  SELECT "constance_config"."id", "constance_config"."key", "constance_config"."value" FROM "constance_config" WHERE "constance_config"."key" = 'SITE_NAME' LIMIT 21
2023-07-05 14:40:46.545 UTC [143] ERROR:  duplicate key value violates unique constraint "django_content_type_app_label_model_76bd3d3b_uniq"
2023-07-05 14:40:46.545 UTC [143] DETAIL:  Key (app_label, model)=(structure, project) already exists.
2023-07-05 14:40:46.545 UTC [143] STATEMENT:  INSERT INTO "django_content_type" ("app_label", "model") VALUES ('structure', 'project') RETURNING "django_content_type"."id"
2023-07-05 14:40:46.556 UTC [142] ERROR:  duplicate key value violates unique constraint "django_content_type_app_label_model_76bd3d3b_uniq"
2023-07-05 14:40:46.556 UTC [142] DETAIL:  Key (app_label, model)=(structure, customer) already exists.
2023-07-05 14:40:46.556 UTC [142] STATEMENT:  INSERT INTO "django_content_type" ("app_label", "model") VALUES ('structure', 'customer') RETURNING "django_content_type"."id"
livenson commented 1 year ago

looks like mangled db migrations can you try from a scratch?

avenbreaks commented 1 year ago

is this from scratch