Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup Race Condition - Solution I used - Delay Docker Start #125

Open
CircuitGuy opened this issue Dec 30, 2021 · 1 comment
Open

Startup Race Condition - Solution I used - Delay Docker Start #125

CircuitGuy opened this issue Dec 30, 2021 · 1 comment
Labels
bug Something isn't working TODO

Comments

@CircuitGuy
Copy link

CircuitGuy commented Dec 30, 2021

Using the Docker method, wg-manager has been running just fine.

However, on server reboots, it wouldn't always work. I was never able to trace the root cause. The web server came up, the wg0 interface showed green, everything seemed to work. Except clients couldn't connect.

My conclusion is that there's some sort of network race condition, but it's not making a lot of sense why. My solution is crude, but it works. I delayed Docker's start by 30 seconds.
In an Ubuntu host, I edited: /etc/systemd/system/multi-user.target.wants/docker.service
under [Service] right before ExecStart, I added ExecStartPre=/bin/sleep 30

The delay is definitely a band-aid that shouldn't be needed, but hopefully it helps someone.

@CircuitGuy CircuitGuy added the bug Something isn't working label Dec 30, 2021
@perara
Copy link
Owner

perara commented Jun 2, 2022

Perhaps docker starts up before networking? Maybe its possibly to delay this internally.

@perara perara added the TODO label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working TODO
Projects
None yet
Development

No branches or pull requests

2 participants