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

panic: close of closed channel during "telemetry is stopping" #836

Closed
dmachard opened this issue Oct 7, 2024 · 0 comments · Fixed by #890
Closed

panic: close of closed channel during "telemetry is stopping" #836

dmachard opened this issue Oct 7, 2024 · 0 comments · Fixed by #890
Labels
bug Something isn't working

Comments

@dmachard
Copy link
Owner

dmachard commented Oct 7, 2024

Describe the bug

DNS collector is stopping and a second SIGTERM is received.

INFO: 2024/10/07 20:55:59.716423 main - telemetry is stopping
INFO: 2024/10/07 20:55:59.716495 worker - [sniffer] afpacket sniffer - stopping monitor...
INFO: 2024/10/07 20:55:59.716507 worker - [sniffer] afpacket sniffer - monitor terminated
INFO: 2024/10/07 20:55:59.716513 worker - [sniffer] afpacket sniffer - stopping collect...
INFO: 2024/10/07 20:55:59.716522 worker - [sniffer] afpacket sniffer - stop to listen...

^CINFO: 2024/10/07 20:56:00.368060 worker - [sniffer] afpacket sniffer - stopping sniffer...
INFO: 2024/10/07 20:56:00.371885 worker - [sniffer] dns processor - stopping monitor...
INFO: 2024/10/07 20:56:00.371913 worker - [sniffer] dns processor - monitor terminated
INFO: 2024/10/07 20:56:00.371923 worker - [sniffer] dns processor - stopping collect...
INFO: 2024/10/07 20:56:00.371931 worker - [sniffer] dns processor - collection terminated
INFO: 2024/10/07 20:56:00.371947 worker - [sniffer] afpacket sniffer - read data terminated
INFO: 2024/10/07 20:56:00.371959 worker - [sniffer] afpacket sniffer - collection terminated
INFO: 2024/10/07 20:56:00.371972 worker - [console] stdout - stopping monitor...
INFO: 2024/10/07 20:56:00.371980 worker - [console] stdout - monitor terminated
INFO: 2024/10/07 20:56:00.371992 worker - [console] stdout - stopping collect...
INFO: 2024/10/07 20:56:00.372003 worker - [console] stdout - logging terminated
INFO: 2024/10/07 20:56:00.372017 worker - [console] stdout - collection terminated
WARNING: 2024/10/07 20:56:00.372029 main - exiting...
INFO: 2024/10/07 20:56:00.372035 main - telemetry is stopping
INFO: 2024/10/07 20:56:00.372088 main - stopped
panic: close of closed channel

goroutine 24 [running]:
github.com/dmachard/go-dnscollector/telemetry.(*PrometheusCollector).Stop(...)
/home/denis/Lab/go-dnscollector/telemetry/prometheus.go:149
main.main.func1()
/home/denis/Lab/go-dnscollector/dnscollector.go:225 +0x354
created by main.main in goroutine 1
/home/denis/Lab/go-dnscollector/dnscollector.go:191 +0x9e5
exit status 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant