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

Backend crashes upon disconnect with IAM server #410

Open
maia-iyer opened this issue Apr 23, 2024 · 2 comments
Open

Backend crashes upon disconnect with IAM server #410

maia-iyer opened this issue Apr 23, 2024 · 2 comments
Labels
backend Tornjak API (Backend) bug Something isn't working

Comments

@maia-iyer
Copy link
Collaborator

upon temporary disconnect, backend should be able to re-connect with IAM server.

Reported behavior states it crashes when the IAM server goes down.

@maia-iyer maia-iyer added bug Something isn't working backend Tornjak API (Backend) labels Apr 23, 2024
@mamy-CS
Copy link
Collaborator

mamy-CS commented Apr 24, 2024

Error log -
KeycloakAuth Usermanagement Data: &{Items:[0x400039fd40 0x400039fe00]}
2024/04/23 19:38:19 Cannot Configure: Cannot configure auth plugin: Couldn't configure Auth: Could not set up OIDC Discovery client with issuer = 'http://host.docker.internal:8080/realms/tornjak': error fetching http://host.docker.internal:8080/realms/tornjak/.well-known/openid-configuration: Get "http://host.docker.internal:8080/realms/tornjak/.well-known/openid-configuration": dial tcp 192.168.5.2:8080: connect: connection refused

@maia-iyer
Copy link
Collaborator Author

This error comes upon configuration/startup of the backend; I believe the desired behavior is that the backend can try to connect a couple times and ultimately crash if it can't to alert administrators something is wrong.

If the backend is running, it should also not crash. Do you happen to have an error from when the backend was running and then crashed upon disconnect/reconnect of the IAM server? The error would not have anything about configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Tornjak API (Backend) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants