sermas-eu / sermas-toolkit-api

SERMAS Toolkit API
https://sermas-eu.github.io
Apache License 2.0
0 stars 0 forks source link

Getting started - Keycloak is unhealthy #1

Closed skitana closed 4 months ago

skitana commented 4 months ago

Hello,

I tried installing on Ubuntu 22 from Getting started web page and I get this error for keycloak container: dependency failed to start: container sermas-toolkit-api-keycloak-1 is unhealthy

No particular errors can be seen in any container. All other containers are up and running.

Should docker-compose file be altered before running somehow?

Getting 502 error on 8080 port as well. I am using a server for this, so I changed 0.0.0.0 for the ip of my server (locally).

image

lc-spxl commented 4 months ago

Hi @skitana to confirm, you have already port 8080 in use correct ?

skitana commented 4 months ago

Hi @lc-spxl, I started a brand new CT, 8080 port is not in use. But, docker-compose.yaml file actually has 8080 for keycloak and for caddy, though keycloak port is not exposed... The yaml file was not edited. image

lc-spxl commented 4 months ago

This is not an issue, keycloak has no exposed ports on the host while the proxy act as an api gateway.

Out of curiosity, have you tried finishing the tutorial or opening http://localhost:8080 ?

We will investigate the keycloak health issue

tiagorribeiro24 commented 4 months ago

I tried messing around with this keycloak container and still can't make it healthy. I've also tried to make it work on windows (I was on ubuntu) and still the same error happens. Can I get more information about which OS or tools have you installed to make this container/toolkit work?

Thank you.

arghideutis commented 4 months ago

It could be an issue with the recent version of keycloak. Can you please try changing the keycloak image version in the docker-compose.yml with the following:

keycloak:
    image: quay.io/keycloak/keycloak:24.0.4

Thanks

tiagorribeiro24 commented 4 months ago

Spot on. That was it. Thank you so much.

skitana commented 4 months ago

@lc-spxl @arghideutis Thanks! Keycloak version fixed it. closing the thread