Skip to content

Improve logging of connection validator#280

Merged
treydock merged 2 commits intomasterfrom
validator-relative
Mar 20, 2023
Merged

Improve logging of connection validator#280
treydock merged 2 commits intomasterfrom
validator-relative

Conversation

@treydock
Copy link
Owner

Fixes #279

@treydock
Copy link
Owner Author

@jonathanmarsaud Would you be able to test this? This should print extra logging about the path being used.

@jonathanmarsaud
Copy link

@treydock Thanks, I tested it and now I have:

Info: Applying configuration version '1678804853'
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak; sleeping 5 seconds before retry
Notice: Unable to connect to keycloak server (http://localhost:8080/authrealms/master/.well-known/openid-configuration): [404] Not Found
Notice: Failed to connect to keycloak within timeout window of 60 seconds; giving up.
Notice: Applied catalog in 65.06 seconds

@treydock treydock force-pushed the validator-relative branch from 7936e64 to e9361d4 Compare March 14, 2023 16:09
@treydock
Copy link
Owner Author

@jonathanmarsaud Try testing again. I think I fixed the relative path handling for validator.

Fix path handling for relative paths in validator
Fixes #279
@treydock treydock force-pushed the validator-relative branch from e9361d4 to 050a3c6 Compare March 17, 2023 14:47
@treydock
Copy link
Owner Author

I added an acceptance test that validate this now works

  Notice: Unable to connect to keycloak server (http://localhost:8080/auth/realms/master/.well-known/openid-configuration): Failed to open TCP connection to localhost:8080 (Cannot assign requested address - connect(2) for "localhost" port 8080)

Once the service was started those cleared up and things worked fine.

@treydock treydock force-pushed the validator-relative branch from 4de4ddc to 0264ce2 Compare March 17, 2023 16:47
@treydock treydock force-pushed the validator-relative branch from 0264ce2 to 179e4d3 Compare March 17, 2023 17:09
@treydock treydock merged commit 18b7456 into master Mar 20, 2023
@treydock treydock deleted the validator-relative branch March 20, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v9.3.3 relative_path parameter fix for keycloak_validator.rb does not work

2 participants