adorsys / keycloak-config-cli

Import YAML/JSON-formatted configuration files into Keycloak - Configuration as Code for Keycloak.
Apache License 2.0
778 stars 140 forks source link

Unable to invoke request #738

Closed jankomuzykant19 closed 2 years ago

jankomuzykant19 commented 2 years ago

Current Behavior

When trying to connect to Keycloak it ends up with: Could not connect to keycloak in 12 seconds: RESTEASY004655: Unable to invoke request: org.apache.http.conn.HttpHostConnectException: Connect to localhost:20180 [localhost/127.0.0.1] failed: Connection refused (Connection refused)

Expected Behavior

keycloak-config-cli successfully connects to Keycloak

Steps To Reproduce

Running following command:
docker run \
    -e KEYCLOAK_URL="http://localhost:20180/auth" \
    -e KEYCLOAK_USER="admin" \
    -e KEYCLOAK_PASSWORD="admin" \
    -e KEYCLOAK_LOGINREALM="selfservice" \
    -e KEYCLOAK_CLIENTID="admin-cli" \
    -e KEYCLOAK_AVAILABILITYCHECK_ENABLED=true \
    -e KEYCLOAK_AVAILABILITYCHECK_TIMEOUT=12s \
    -e LOGGING_LEVEL_ROOT=info \
    -e IMPORT_FILES='/home/janstawinski/Desktop/TestConfig/config/*.json' \
    -v /home/janstawinski/Desktop/TestConfig/config:/config \
    adorsys/keycloak-config-cli:v3.4.0-13.0.0

Path to config files, credentials and realm name are correct.

Environment

Anything else?

No response

luisscholl commented 2 years ago

What fixed your issue?

Froctnow commented 1 year ago

The same issue