Closed ajarmoszuk closed 5 years ago
I have also now tested the issue further as someone else has have had it on #40, I have now ran the test alpine image with bash and the node that worked originally returns me with:
...------======------... MariaDB Galera Start Script ...------======------...
Got NODE_ADDRESS=10.0.9.105
also the node that doesn't work returns:
...------======------... MariaDB Galera Start Script ...------======------...
Got NODE_ADDRESS=10.0.9.127
So there is network connectivity, but I'm not sure what is the exact issue here...
Hmm, that line is this:
NODE_ADDRESS=$(getent hosts $(hostname) | awk '{print $1}' | grep -e "$NODE_ADDRESS")
But I don't know which of those commands would be failing...
I have found the issue to be related to IPv6.
Turns out because the docker swarm manager and other worker were running a IPv6 interface while the other worker was running IPv4 it would try to contact the server over IPv6 and fail.
Solution to this was to switch over the NODE_ADDRESS to eth0, it would get over the original error and still fail but eventually start up as Docker would tell it to run over IPv4 the second time round.
Obviously this was an issue with my network setup and not with the package. But I wanted to leave this note here would anyone else encounter a similar issue in the future.
It would be a good idea to put a disclaimer to make sure if you run IPv6 you should make sure it runs on all swarm nodes, or if you can't enable IPv6 everywhere, use eth0 instead of the IP address to get past the error.
Thanks.
Ahh, thanks for the update!
Hi all, I'm getting the following error on one of the nodes as soon as I want to start two after starting the seed:
start.sh: Trapped error on line 120
on the node that doesn't want to start.Here is my docker-compose.yml file: version: '3.4'
It's exactly the same as the one in the tutorial however I created an external network via overlay on subnet 10.0.9.0/24, it should work, I even tried copying directly from the tutorial and the issue is the same.