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

could not connect to Keycloak #1813

Open
Tim-herbie opened this issue Dec 5, 2023 · 3 comments
Open

could not connect to Keycloak #1813

Tim-herbie opened this issue Dec 5, 2023 · 3 comments

Comments

@Tim-herbie
Copy link

Hello,

I installed terraformer today and it´s not possible for me to get the terraform resources from Keycloak.

I exported the following Parameters:

  • KEYCLOAK_URL
  • KEYCLOAK_CLIENT_ID
  • KEYCLOAK_USER
  • KEYCLOAK_PASSWORD
    I am sure that these are correct and Keycloak is working for me. I can access it via the GUI and Applications redirect to Keycloak for the authentication already.

I created also the terraform provider for keycleak code and run terraform init

terraformer import keycloak --resources=realms

2023/12/05 15:41:17 keycloak importing all realms
2023/12/05 15:41:17 keycloak importing... realms
2023/12/05 15:41:17 keycloak error initializing resources in service realms, err: keycloak: could not connect to Keycloak
2023/12/05 15:41:17 keycloak Connecting....

System: Mac with M1
Terraformer version: version v0.8.24
Terraform version: v1.5.7
Keycloak version: 22.0.5

Copy link

github-actions bot commented Feb 4, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 4, 2024
@Tim-herbie
Copy link
Author

still not working...

@github-actions github-actions bot removed the Stale label Feb 5, 2024
@mosmianiv
Copy link

Yeah wanted to follow up on this, am getting the same issue.

2024/03/29 10:34:22 keycloak importing all realms
2024/03/29 10:34:23 keycloak importing... realms
2024/03/29 10:34:23 keycloak error initializing resources in service realms, err: keycloak: could not connect to Keycloak
2024/03/29 10:34:23 keycloak Connecting....

I've tried multiple provider versions including the 4.0.1 that is listed in the docs as supported. No logs on the keycloak side. It's able to get the bearer token though as expected but cant connect. I see the log line in the verbose output

[DEBUG] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants