Services return HTTPS required

I have been able to run Camunda stack without problems for a while. Lately, though, I receive the message HTTPS required when I try to access a number of services (ie Keycloak).

For sanity check, I downloaded the docker-compose from the oficial documentation and followed the instructions, but I’m getting the same behaviour.

Is this expected? How can I address this?

Would you please share your Camunda version details and link.

hey, @cpbpm, I just followed the instructions from official Camunda documentation (at Docker Compose | Camunda 8 Docs) and had this problem when accessing the web interface of these services. Today, I removed all docker images, redid all steps and it worked fine. Probably it was a transient problem or something on my machine. Thank you for your attention.

I talked too soon; last night my computer (Mac) restarted to some mandatory update and today the problem is back. Most likely, this is due to services Camunda itself depends on, still it’s quite frustrating the time I’ve already lost trying to fix this.

image

Would you mind sharing your docker compose file?

Please do share if you change from http://localhost to https://localhost what would be the output?

You can download the docker-compose file here (this is provided by Camunda and it’s referred on the page I shared above).

It’s working as expected in Linux, not sure whether it’s mac related issue or not. I have not changed any values in the docker compose file.

This is new setup to simulate your issue, only difference is i do not have Macbook, instead tested with Fedora 64 bit.

Yes, recent Keycloak versions enforce HTTPS by default for security. To bypass in local/dev setups, set KEYCLOAK_FRONTEND_URL and KEYCLOAK_ENABLE_HTTPS=false in your Docker config, or use a reverse proxy with TLS.

Best Regards,
Thomas Batson

You are right, these are solutions, @thomas598batson, but there is some some edge condition when the containers lose these ENV variables and the solution of setting KEYCLOAK_ENABLE_HTTPS to false eventually does not work.

I’ve moved on to other subjects and I’m not being affected anymore, nor following this thread, but I suspect that this edge condition is related to when the Docker containers are restarted.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.