open-datenschutzcenter icon indicating copy to clipboard operation
open-datenschutzcenter copied to clipboard

Keycloak fails with 404 error

Open jonas2515 opened this issue 1 year ago • 4 comments

We're trying to setup open Datenschutzcenter on Ubuntu 22.04 LTS here and ran into a few issues with the install scripts:

  • the commands to generate a random string from /dev/urandom never return, what works instead of cat is dd if=/dev/urandom count=1 2>/dev/null as that specifies the number of bytes to be read.
  • after the install is done, the containers get started and the services should be available. When accessing the service, a redirect to keycloak.domain.tld happens as expected, but that returns a 404 error. We tried with both the "prod" and the "dev" installations as well as "http" and "https".

jonas2515 avatar Nov 03 '23 13:11 jonas2515

Hello @jonas2515,

I will try to reproduce the error. The last time I started the installation script it worked. Did you start the installation script with http and then change to https?

Try to completly clean up your installation by

docker-compose down -v
bash installOdcDocker.sh

holema avatar Nov 03 '23 15:11 holema

Did you start the installation script with http and then change to https?

Nope, tried to completely re-run it a few times with different configurations, none of them worked I'm afraid? What's the recommended settings? For me "prod" and "http" would be good, as it's supposed to run behind a reverse proxy.

jonas2515 avatar Nov 03 '23 17:11 jonas2515

Hello @jonas2515,

We suggest du run the installation directly with the traefik reverse proxy to the internet. I think that your reverse proxy is doing the ssl termination. Is the domain only internal accessable?

holema avatar Nov 06 '23 09:11 holema

Hello @jonas2515 ,

I would recommend to still to prod and https because http is only working together with dev. That is a limitation of symfony, because in prod, the login must be over https. However, the reverse proxy must have an valide certificate to use prod again.

holzi1005 avatar Dec 06 '23 20:12 holzi1005