-
-
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
panic: send on closed channel #342
Comments
I ran into the danger problem too: panic: send on closed channel goroutine 5023 [running]: |
I ran into this as well. It does not have to do with suspend/resume as my machine kept running all the time |
Hi guys, are you using old machine to run headscale? or was the machine heavy loaded? I did some preliminary RCA, and found it may due to lag between If the execution sequence is as follows, headscale may panic:
|
Just a dedicated (but small) VM with just headscale and nginx as reverse proxy. Will increase log verbosity and report back, in case there is something interesting. |
Same issue here. The last request before the panic took 34 minutes. The machine with uuid1 is suspended every night but the headscale controller (v0.15.0-beta6) has crashed even when the machine is not suspended. I'll keep an eye on my logs and see if any other machines on my tailnet are causing problems. More logs with trace enabled
|
Some more logs from 0.15.0-beta2
|
I see the same issue on v0.15.0:
|
I have another log that has a very important error message I think
|
I'm getting these regularly as well - this is on 0.15.0:
I've just edited |
It just crashed on me - but the messages look slightly different, but perhaps that's because of trace?
|
Same here,
For me, it's pretty much transparent because I'm running Headscale on a Systemd unit with |
This commit fixes the issue of headscale crashing after sending on a closed channel by moving the channel close to the sender side, instead of the creator. closeChanWithLog is also implemented with generics now. Fixes: juanfont#342 Signed-off-by: Moritz Poldrack <[email protected]>
Bug description
Crash of
headscale serve
after a while:Context info
The text was updated successfully, but these errors were encountered: