Browse Source

chg: dev: when waiting for database to start up, wait longer and display clearer message.

hostresources
Valentin Lab 6 years ago
parent
commit
1e4afe89fe
  1. 4
      bin/compose-core

4
bin/compose-core

@ -831,7 +831,7 @@ wait_for_docker_ip() {
done < <(image_exposed_ports_0 "$container_id") done < <(image_exposed_ports_0 "$container_id")
## Checking direct connection ## Checking direct connection
timeout=10
timeout=30
start=$SECONDS start=$SECONDS
while true; do while true; do
if err=$(echo "SELECT 1;" | ddb 2>&1 >/dev/null); then if err=$(echo "SELECT 1;" | ddb 2>&1 >/dev/null); then
@ -847,7 +847,7 @@ wait_for_docker_ip() {
fi fi
return 18 return 18
fi fi
debug "Got starting up error '$err'."
debug "Got 'database system is starting up' error."
elapsed=$((SECONDS - start)) elapsed=$((SECONDS - start))
if ((elapsed > timeout)); then if ((elapsed > timeout)); then
err "${RED}db connection error${NORMAL}:"\ err "${RED}db connection error${NORMAL}:"\

Loading…
Cancel
Save