juanfont / headscale

An open source, self-hosted implementation of the Tailscale control server
BSD 3-Clause "New" or "Revised" License
22.01k stars 1.22k forks source link

[Bug] systemctl stop headscale is very slow! #1968

Open 1298391314 opened 3 months ago

1298391314 commented 3 months ago

Is this a support request?

Is there an existing issue for this?

Current Behavior

systemctl stop headscale will takes a long time to stop every time!

By debugging, I found that blocking at [h.pollNetMapStreamWG.Wait()] (https://github.com/juanfont/headscale/blob/main/hscontrol/app.go#L816).

Expected Behavior

to be resolved

Steps To Reproduce

1.make a node online 2.systemctl stop headscale

Environment

- OS:Ubuntu 20.04
- Headscale version: headscale_0.22.3_linux_amd64
- Tailscale version: 1.66

Runtime environment

Anything else?

No response

kradalby commented 3 months ago

please try the new alpha, the 0.22.3 wont receive any other fixes.

1298391314 commented 3 months ago

please try the new alpha, the 0.22.3 wont receive any other fixes.

I compiled headscale myself using the latest code, and the problem still exists.

bottiger1 commented 2 months ago

I am also getting this problem with v0.23.0-alpha12

nblock commented 18 hours ago

Problem also exists on 0.23.0-beta3