-
Notifications
You must be signed in to change notification settings - Fork 52
Client fails to setup due to race during docker node startup #36
Comments
Found the best solution so far and it is: https://docs.docker.com/compose/startup-order/ |
Unfortunately that wasn't enough. On a more complex case other than 1 client 1 authority, the problem remains. That's because each authority node is configured so that other authorities are set as reserved nodes. So This results in the following dead loop:
We need either to solve nameserver issues, retry resolution after some time or bring all hosts up and then actually start the business logic. |
I believe a fix was introduced for this. Can you please retest. |
@0x7CFE is this still any issue? |
@0x7CFE any update on this? |
@ddorgan, sorry for the late response. I haven't used docker recently. Probably would be better to ask someone, who is working on it now. |
@0x7CFE Thanks! Closing issue. |
When deploy is invoked with like
./parity-deploy.sh --config aura -n 1 -r nightly --min-gas-price 0 --enable-client --reserved-only
, client node is created.Unfortunately the following scenario is possible: https://gist.github.com/0x7CFE/df64afad8244e74156a772a6b2df28f0
tl;dr: Client fails to start due to failed name resolution (related to openethereum/parity-ethereum#6907). Looks like this happens because of a race between nodes. If
host1
starts beforeclient
all is working as expected. However,client
may try to resolvehost1
before latter obtains an IP address.In order to fix that, we need either fix the order in which nodes start or assign static addresses to nodes.
The text was updated successfully, but these errors were encountered: