You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance wait_for_internal_ip function to check for HOSTNAME alongside INTERNAL_IP and improve error messaging; add wait for maindb.json file existence in macOS non-server patch function
die "Timed out after ${timeout_seconds}s waiting for INTERNAL_IP from dappmanager (expected HTTP 200 with a non-empty value). Last seen: code=${http_code:-?}, value=${value:-<empty>}"
100
+
die "Timed out after ${timeout_seconds}s waiting for INTERNAL_IP and HOSTNAME from dappmanager (expected HTTP 200 with non-empty values). Last seen: INTERNAL_IP code=${internal_http_code:-?} value=${internal_value:-<empty>}; HOSTNAME code=${hostname_http_code:-?}value=${hostname_value:-<empty>}"
97
101
fi
98
102
99
-
# Must be executed inside the dappmanager container
100
-
# Wait until we get HTTP 200 and a non-empty value back.
103
+
# Must be executed inside the dappmanager container.
101
104
# Return format is:
102
105
# <body>\n<http_code>
103
106
# Parse in bash (not inside container sh) to avoid shell portability issues.
hostname_value="$(printf '%s\n'"$hostname_result"| head -n 1 | tr -d '\r'| xargs)"
110
119
111
-
if [[ "$http_code"=="200"&&-n"$value"&&"$value"!="null" ]];then
112
-
echo"INTERNAL_IP is ready: $value"
120
+
if [[ "$internal_http_code"=="200"&&-n"$internal_value"&&"$internal_value"!="null"&&"$hostname_http_code"=="200"&&-n"$hostname_value"&&"$hostname_value"!="null" ]];then
121
+
echo"INTERNAL_IP is ready: $internal_value"
122
+
echo"HOSTNAME is ready: $hostname_value"
113
123
return 0
114
124
fi
115
125
116
-
echo"INTERNAL_IP not ready yet (code=${http_code:-?}). Retrying..."
126
+
echo"INTERNAL_IP/HOSTNAME not ready yet (INTERNAL_IP code=${internal_http_code:-?}, HOSTNAME code=${hostname_http_code:-?}). Retrying..."
0 commit comments