-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Headscale service restart timing out #1574
Comments
Judging from the error log, the main program cannot fetch machine information from the database. |
Hi @harvey-git , Headscale restarts just fine, and it seems to work. My interpretation of the logs is that the headscale process for some reason hangs around after receiving I'm not sure if it's related but I've also noticed that operations like deleting a route ( Regarding the specs, this is a VM running in OpenStack with 2 cores, 4G of memory and nvme backed storage. In terms of a workaround, I'm not sure about the impact (i.e. whether it's safe to kill it sooner) but restarts can be done faster by setting
Add:
Save and do Having to do Tangentially I also backed up the
This seems to have made commands like |
I can confirm that headscale.service seems to restart instantly on v0.23.0-alpha1 -- thanks! |
Wanted to chip in to comment that a smaller timeout in this case is fine is acceptable. As noted systemd waits 120s for shutdown and other parts as well, this can be changed on a global level or by package (do it by package for a server, especially if you have other things that SHOULD NOT be killed after 5 seconds :)). The KDE Wiki also recommends this (for desktops, not servers -- you probably do NOT want this globally on a server). |
I'm still experiencing this issue in the 0.23 alpha |
It looks like the beta was released today, try that first. |
I am on 0.23.0-beta1 and also still experience this issue. |
Bug description
After running
systemctl restart headscale
:These types of logs show up immediately afterward:
This finally ends with:
So for some reason SIGKILL is finally required and the restart takes about 90 seconds.
Is this a known issue?
Environment
To Reproduce
N/A
The text was updated successfully, but these errors were encountered: