Skip to content

Commit

Permalink
[#403] Services fail to start
Browse files Browse the repository at this point in the history
Problem: If node needs more time to start responding,
than baker/endorser services can wait for it, systemd
restart all the tezos services indefinetily.

Solution: Made tezos-node service be started only after it can respond.
  • Loading branch information
krendelhoff committed May 2, 2022
1 parent 236f1bc commit 8a76f7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/package/scripts/tezos-baker-start
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ launch_baker() {
fi
}

# TODO we should use --keep-alive instead of this loop once
# https://gitlab.com/tezos/tezos/-/issues/2873 is fixed
# Waiting till node start to respond

while ! "$tezos_client" --endpoint "$NODE_RPC_ENDPOINT" rpc list &> /dev/null; do sleep 1; done

if [[ -z "$BAKER_ADDRESS_ALIAS" ]]; then
launch_baker "$@"
else
Expand Down

0 comments on commit 8a76f7d

Please sign in to comment.