charts icon indicating copy to clipboard operation
charts copied to clipboard

[bitnami/keycloak] cant see user federation cards

Open chominnn opened this issue 2 years ago • 6 comments

Name and Version

bitnami/keycloak

What architecture are you using?

None

What steps will reproduce the bug?

keycloak@keycloak-0:/$ kc.sh show-config
Appending additional Java properties to JAVA_OPTS: -Djgroups.dns.query=keycloak-headless.keycloak.svc.cluster.local
Current Mode: production
Current Configuration:
        kc.cache =  ispn (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.cache-stack =  kubernetes (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.config.built =  true (SysPropConfigSource)
        kc.db =  postgres (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.db-password =  ******* (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.db-url =  jdbc:postgresql://keycloak-postgresql:5432/bitnami_keycloak?currentSchema=public (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.db-username =  bn_keycloak (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.health-enabled =  false (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.hostname-strict =  false (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.http-enabled =  true (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.http-port =  8080 (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.http-relative-path =  / (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.https-port =  8443 (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.log-console-output =  default (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.log-file =  ${kc.home.dir:default}${file.separator}data${file.separator}log${file.separator}keycloak.log (PropertiesConfigSource[source=jar:file:///opt/bitnami/keycloak/lib/lib/main/org.keycloak.keycloak-quarkus-server-23.0.5.jar!/META-INF/keycloak.conf])
        kc.log-level =  INFO (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.metrics-enabled =  false (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.optimized =  true (PersistedConfigSource)
        kc.provider.file.keycloak-metrics-spi-4.0.0.jar.last-modified =  1706521031000 (PersistedConfigSource)
        kc.provider.file.user-storage-jpa-example.jar.last-modified =  1723436775564 (PersistedConfigSource)
        kc.proxy =  passthrough (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.spi-connections-infinispan-quarkus-stack =  kubernetes (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.spi-hostname-default-strict =  false (PropertiesConfigSource[source=file:/opt/bitnami/keycloak/bin/../conf/keycloak.conf])
        kc.version =  23.0.5 (SysPropConfigSource)

Additional information

When I checked through the kc.sh show-config, it looks like it was applied, but I can't see the card on the web page. image

chominnn avatar Aug 12 '24 04:08 chominnn

Hi!

Could you share the values to reproduce the issue?

javsalgar avatar Aug 12 '24 09:08 javsalgar

Hi!

Could you share the values to reproduce the issue?

Of course, I can share it with you. But I think everything will be solved if I find a way to restart keycloak. values.yaml.txt

my custom docker image ---

root@master01:~/keycloak/keycloak/Dockerfile# cat startup.sh
#!/bin/sh

mkdir -p /opt/bitnami/keycloak/conf
mkdir -p /opt/bitnami/keycloak/providers
mkdir -p /opt/bitnami/keycloak/themes

cp -R /mydir/* /opt/bitnami/keycloak/

exec "$@"
root@master01:~/keycloak/keycloak/Dockerfile# cat Dockerfile
FROM alpine:latest

COPY mydir /mydir
CMD ["sh"]

chominnn avatar Aug 12 '24 09:08 chominnn

cp -R /mydir/* /opt/bitnami/keycloak/

https://github.com/bitnami/charts/issues/15930

I think the init dbscripts here helped.

chominnn avatar Aug 13 '24 00:08 chominnn

Indeed, using init scripts could help to restart keycloak.

javsalgar avatar Aug 13 '24 08:08 javsalgar

Indeed, using init scripts could help to restart keycloak.

it worked!

initscripts is execute before keycloak start!

chominnn avatar Aug 13 '24 09:08 chominnn

Thanks for letting us know!

javsalgar avatar Aug 14 '24 07:08 javsalgar