Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/keycloak] It says "It works!", but not actually works as expected. #76684

Open
imchaitu opened this issue Jan 27, 2025 · 4 comments
Open
Assignees
Labels
in-progress keycloak tech-issues The user has a technical issue about an application

Comments

@imchaitu
Copy link

Name and Version

latest

What architecture are you using?

None

What steps will reproduce the bug?

Just run the yaml example given in the docker hub page.

What is the expected behavior?

  1. When I run the compose file, and access localhost:80, it says " It works! ". Really?? Is this keycloak UI? Did you mention any base url to access? Atlease is it written in logs?
  2. Image should be self-complete. When I run the official image, it runs, and I am able to access the UI. But this image needs db and it is not mentioned as prerequisite.
  3. Even to configure db (postgresql), it is so complicated, that we have to do so many customizations to the DB container as-well as keycloak container.
  4. Please keep it simple to get started.

What do you see instead?

  1. Atleast give the base URL which takes me to the keycloak UI.
  2. Try to keep it simple, atleast for dev env.
  3. Should work fine with official postgresql image with fewer configurations.

Additional information

No response

@imchaitu imchaitu added the tech-issues The user has a technical issue about an application label Jan 27, 2025
@github-actions github-actions bot added the triage Triage is needed label Jan 27, 2025
@javsalgar javsalgar changed the title It says "It works!", but not actually works as expected. [bitnami/keycloak] It says "It works!", but not actually works as expected. Jan 28, 2025
@github-actions github-actions bot removed the triage Triage is needed label Jan 28, 2025
@github-actions github-actions bot assigned migruiz4 and unassigned javsalgar Jan 28, 2025
@migruiz4
Copy link
Member

Hi @imchaitu,

Could you please provide more details? What docker-compose did you use?

We do provide an example docker-compose in this repository that can be used as base for a development deployment:
https://github.com/bitnami/containers/blob/main/bitnami/keycloak/docker-compose.yml

I deployed it and wasn't able to reproduce your issue, and Keycloak UI is available at localhost.

As a side note, I would like to mention that the docker-composes are community-maintained and they are not recommended for production use, as mentioned in the README: https://github.com/bitnami/containers/tree/main/bitnami/keycloak#using-docker-composeyaml

I recommend using our keycloak Helm chart instead of the docker-compose, you will have a ready-to-use deployment quick and easy, and you could use that as a starting point to move from a development environment to a production-ready environment.

To Install the Helm chart you only need a Kubernetes environment of your choice and run the command:

helm install my-release oci://registry-1.docker.io/bitnamicharts/keycloak

That command will deploy for you the latest version of the chart with default settings, and you can find further information about how to further customize your deployment in the README and the values.yaml.

@imchaitu
Copy link
Author

imchaitu commented Feb 5, 2025 via email

@migruiz4
Copy link
Member

migruiz4 commented Feb 5, 2025

Hi @imchaitu,

I'm sorry but I'm unable to reproduce your issue.

I would say the "It works!" page corresponds to the default page from an apache webserverm but the bitnami/keycloak image does not use Apache webserver, so I think it that page is coming from connecting to a different service.

I suspect you may have the port localhost:80 occupied by another service (an Apache webserver, maybe not deployed with docker) and that is the reason why you are seeing that instead of the Keycloak UI.

Please try using a different port in your Keycloak docker compose (81:8080) and give it a try at http://localhost:81

Additionally, you can see what process is actually using the port 80 using the commands lsof or netstat. E.g lsof -P -iTCP -sTCP:LISTEN.

@imchaitu
Copy link
Author

imchaitu commented Feb 5, 2025

Hello @migruiz4 ,
I feel very silly!
Yes, you are correct! I have an apache servie running on port 80.
The reason why I overlooked is, in the past, when I try to use the port in docker compose which is already under use, I used to get an error saying that the port is already blocked. I did get any of that, so I thought this is what running on 80.
Howerever, this might be the special case with the wsl setup on windows. Apache service was running as windows servce and I was running docker in WSL (ubunt).

Anyway, thank you for taking the issue seriously.
I am very sorry to waste your time with my sillyness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-progress keycloak tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

3 participants