Created
January 3, 2022 09:47
-
-
Save jonathanvila/65315e79b776e0ef91214d18432f372d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh-4.4$ cd /probes | |
sh-4.4$ sed "s/curl -s/curl -v -s/g" readiness_probe.sh | bash -x | |
+ set -e | |
+ DATASOURCE_POOL_TYPE=data-source | |
+ DATASOURCE_POOL_NAME=KeycloakDS | |
+ PASSWORD_FILE=/tmp/management-password | |
+ PASSWORD='not set' | |
+ USERNAME=admin | |
+ AUTH_STRING= | |
+ '[' -d /opt/eap/bin ']' | |
+ pushd /opt/jboss/keycloak/bin | |
+ '[' -f /tmp/management-password ']' | |
++ cat /tmp/management-password | |
+ PASSWORD=wlK6E8bA0V5gjdeJvtleeB1zd7Th6MCy | |
+ AUTH_STRING='--digest -u admin:wlK6E8bA0V5gjdeJvtleeB1zd7Th6MCy' | |
+ curl -v -s --max-time 10 --fail http://localhost:9990/management --digest -u admin:wlK6E8bA0V5gjdeJvtleeB1zd7Th6MCy --header 'Content-Type: application/json' -d '{"operation":"test-connection-in-pool", "address":["subsystem","datasources","data-source","KeycloakDS"], "json.pretty":1}' | |
* Trying ::1... | |
* TCP_NODELAY set | |
* connect to ::1 port 9990 failed: Connection refused | |
* Trying 127.0.0.1... | |
* TCP_NODELAY set | |
* Connected to localhost (127.0.0.1) port 9990 (#0) | |
* Server auth using Digest with user 'admin' | |
> POST /management HTTP/1.1 | |
> Host: localhost:9990 | |
> User-Agent: curl/7.61.1 | |
> Accept: */* | |
> Content-Type: application/json | |
> Content-Length: 0 | |
> | |
< HTTP/1.1 401 Unauthorized | |
< Connection: keep-alive | |
< WWW-Authenticate: Digest realm="ManagementRealm", nonce="AAAAJQAAAmmYWLgUwX7fiGL6Q9+GtmzEY4P5v6TgidmWHuhjKGt7obHAk8g=", opaque="00000000000000000000000000000000", algorithm=MD5, qop=auth | |
< X-Frame-Options: SAMEORIGIN | |
< Content-Length: 77 | |
< Content-Type: text/html | |
< Date: Mon, 03 Jan 2022 09:46:04 GMT | |
< | |
* Ignoring the response-body | |
* Connection #0 to host localhost left intact | |
* Issue another request to this URL: 'http://localhost:9990/management' | |
* Found bundle for host localhost: 0x56101729da80 [can pipeline] | |
* Re-using existing connection! (#0) with host localhost | |
* Connected to localhost (127.0.0.1) port 9990 (#0) | |
* Server auth using Digest with user 'admin' | |
> POST /management HTTP/1.1 | |
> Host: localhost:9990 | |
> Authorization: Digest username="admin", realm="ManagementRealm", nonce="AAAAJQAAAmmYWLgUwX7fiGL6Q9+GtmzEY4P5v6TgidmWHuhjKGt7obHAk8g=", uri="/management", cnonce="ZGFlMGY4N2M4ZTUzMzI4MjQ1ZDEzZTVhZWM5Y2EzMmE=", nc=00000001, qop=auth, response="977560866b752baac1dc55d05d4d902f", opaque="00000000000000000000000000000000", algorithm="MD5" | |
> User-Agent: curl/7.61.1 | |
> Accept: */* | |
> Content-Type: application/json | |
> Content-Length: 122 | |
> | |
* upload completely sent off: 122 out of 122 bytes | |
< HTTP/1.1 401 Unauthorized | |
< Connection: keep-alive | |
* Authentication problem. Ignoring this. | |
< WWW-Authenticate: Digest realm="ManagementRealm", nonce="AAAAJgAAAmmYe4SBD+WnnbHT6/cslQAmEtZ20rz54rQPjyTKNvEddUPhajg=", opaque="00000000000000000000000000000000", algorithm=MD5, qop=auth | |
< X-Frame-Options: SAMEORIGIN | |
< Content-Length: 77 | |
< Content-Type: text/html | |
< Date: Mon, 03 Jan 2022 09:46:04 GMT | |
* The requested URL returned error: 401 | |
* Closing connection 0 | |
sh-4.4$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment