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

🐛 Birdnet-Go <title> #1763

Open
WvanWaas opened this issue Feb 11, 2025 · 0 comments
Open

🐛 Birdnet-Go <title> #1763

WvanWaas opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@WvanWaas
Copy link

Description

Birdnet Go installation crashing after about 24 hours

tphakala/birdnet-go#448

Reproduction steps

1. Start
2. Wait 24 hours
3. See 502 Bad Gateway error

Addon Logs

2025/02/11 11:36:11 Buffer wrapped during write, adjusting start time to 2025-02-11 11:35:11.82406529 +0100 CET m=+91513.771871031
2025/02/11 11:36:29 Buffer wrapped during write, adjusting start time to 2025-02-11 11:35:29.270999753 +0100 CET m=+91531.218805453
2025/02/11 11:36:41 Buffer wrapped during write, adjusting start time to 2025-02-11 11:35:41.818074125 +0100 CET m=+91543.765879866
2025/02/11 11:37:01 Buffer wrapped during write, adjusting start time to 2025-02-11 11:36:01.975614565 +0100 CET m=+91563.923420306
2025/02/11 11:37:01 Buffer for stream rtsp://192.168.86.64:8554/achtertuin has 0 bytes free, tried to write 32768 bytes
2025/02/11 11:37:01 Unexpected error writing to buffer for stream rtsp://192.168.86.64:8554/achtertuin: too many data to write
2025/02/11 11:37:01 Buffer for stream rtsp://192.168.86.64:8554/achtertuin has 0 bytes free, tried to write 4096 bytes
2025/02/11 11:37:01 Buffer for stream rtsp://192.168.86.64:8554/achtertuin is full. Waiting before retry 1/3
2025/02/11 11:37:02 Abnormal event detected. Debug information written to: /root/.config/birdnet-go/debug_2025-02-11_11-37-02.txt
2025/02/11 11:37:02 Abnormal event detected. Debug information written to: /root/.config/birdnet-go/debug_2025-02-11_11-37-02.txt
fatal error: concurrent map writes

goroutine 19308 [running]:
github.com/tphakala/birdnet-go/internal/myaudio.WriteToAnalysisBuffer({0x400003baa0, 0x24}, {0x4001388000, 0x5000, 0x8000})
	/home/dev-user/src/BirdNET-Go/internal/myaudio/buffers.go:75 +0x178
github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio(0x4001d96c30, {0x1247e98, 0x400162ac30}, {0x400003baa0, 0x24}, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:256 +0x1dc
github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:399 +0x40
created by github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle in goroutine 356
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:398 +0x340

goroutine 1 [select, 564 minutes]:
github.com/tphakala/birdnet-go/internal/analysis.RealtimeAnalysis(0x40001db108, 0x400043c000)
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:164 +0x8f4
github.com/tphakala/birdnet-go/cmd/realtime.Command.func1(0x400041a908?, {0xfe9fac?, 0x4?, 0xfe9ea4?})
	/home/dev-user/src/BirdNET-Go/cmd/realtime/realtime.go:22 +0x3c
github.com/spf13/cobra.(*Command).execute(0x400041a908, {0x62027c0, 0x0, 0x0})
	/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985 +0x834
github.com/spf13/cobra.(*Command).ExecuteC(0x400041a008)
	/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).Execute(0x40001db108?)
	/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041 +0x1c
main.main()
	/home/dev-user/src/BirdNET-Go/main.go:72 +0x398

goroutine 50 [select, 1527 minutes]:
database/sql.(*DB).connectionOpener(0x40000e4dd0, {0x1247e98, 0x400004e550})
	/usr/local/go/src/database/sql/sql.go:1253 +0x80
created by database/sql.OpenDB in goroutine 1
	/usr/local/go/src/database/sql/sql.go:833 +0x128

goroutine 370 [chan receive, 26 minutes]:
github.com/tphakala/birdnet-go/internal/security.(*OAuth2Server).StartAuthCleanup.func1()
	/home/dev-user/src/BirdNET-Go/internal/security/oauth.go:233 +0xa0
created by github.com/tphakala/birdnet-go/internal/security.(*OAuth2Server).StartAuthCleanup in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/security/oauth.go:229 +0x68

goroutine 40 [chan receive]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startDetectionProcessor.func1()
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/processor.go:141 +0xd0
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startDetectionProcessor in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/processor.go:139 +0x5c

goroutine 41 [chan receive, 3 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 42 [chan receive, 96 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 43 [chan receive, 97 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 44 [chan receive, 85 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 45 [chan receive, 23 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 46 [chan receive, 56 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 47 [chan receive, 62 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 48 [chan receive, 62 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 49 [chan receive, 44 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 66 [chan receive, 56 minutes]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).actionWorker(0x0?)
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:40 +0x58
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).startWorkerPool in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/workers.go:34 +0x68

goroutine 67 [chan receive]:
github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).pendingDetectionsFlusher.func1()
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/processor.go:355 +0x88
created by github.com/tphakala/birdnet-go/internal/analysis/processor.(*Processor).pendingDetectionsFlusher in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/processor/processor.go:349 +0xb0

goroutine 68 [sleep]:
time.Sleep(0x6fc23ac00)
	/usr/local/go/src/runtime/time.go:300 +0xe0
github.com/eclipse/paho%2emqtt%2egolang.(*client).Connect.func1()
	/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.5.0/client.go:269 +0x2bc
created by github.com/eclipse/paho%2emqtt%2egolang.(*client).Connect in goroutine 1
	/go/pkg/mod/github.com/eclipse/paho.mqtt.golang@v1.5.0/client.go:252 +0x320

goroutine 371 [IO wait, 137 minutes]:
internal/poll.runtime_pollWait(0xffff74237330, 0x72)
	/usr/local/go/src/runtime/netpoll.go:351 +0xa0
internal/poll.(*pollDesc).wait(0x4000200680?, 0x0?, 0x0)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0x4000200680)
	/usr/local/go/src/internal/poll/fd_unix.go:620 +0x24c
net.(*netFD).accept(0x4000200680)
	/usr/local/go/src/net/fd_unix.go:172 +0x28
net.(*TCPListener).accept(0x4001a99540)
	/usr/local/go/src/net/tcpsock_posix.go:159 +0x28
net.(*TCPListener).AcceptTCP(0x4001a99540)
	/usr/local/go/src/net/tcpsock.go:359 +0x2c
github.com/labstack/echo/v4.tcpKeepAliveListener.Accept({0x40012c9db8?})
	/go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/echo.go:988 +0x1c
net/http.(*Server).Serve(0x4001d92000, {0x1246a98, 0x40000746f8})
	/usr/local/go/src/net/http/server.go:3330 +0x294
github.com/labstack/echo/v4.(*Echo).Start(0x4000395208, {0x4001ccb178, 0x5})
	/go/pkg/mod/github.com/labstack/echo/v4@v4.13.3/echo.go:685 +0xcc
github.com/tphakala/birdnet-go/internal/httpcontroller.(*Server).Start.func1()
	/home/dev-user/src/BirdNET-Go/internal/httpcontroller/server.go:94 +0x1cc
created by github.com/tphakala/birdnet-go/internal/httpcontroller.(*Server).Start in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/httpcontroller/server.go:78 +0x80

goroutine 357 [chan receive, 1527 minutes]:
github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:479 +0x40
created by github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP in goroutine 356
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:477 +0xf8

goroutine 373 [select]:
github.com/tphakala/birdnet-go/internal/myaudio.BufferMonitor(0x0?, 0x40000ea440, 0x40000ba5b0, {0x400003ba70, 0x22})
	/home/dev-user/src/BirdNET-Go/internal/myaudio/buffers.go:170 +0xc8
created by github.com/tphakala/birdnet-go/internal/analysis.RealtimeAnalysis in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:137 +0x700

goroutine 390 [chan receive, 1527 minutes]:
github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:479 +0x40
created by github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP in goroutine 355
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:477 +0xf8

goroutine 356 [select, 20 minutes]:
github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle({0x1247e98, 0x400162ac30}, {{0x400003baa0?, 0x0?}, {0x4000306cd8?, 0x60d150?}}, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:402 +0x398
github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP({0x400003baa0, 0x24}, {0x4000306cd8, 0x3}, 0x0?, 0x40000ba5b0, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:487 +0x11c
created by github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudio in goroutine 375
	/home/dev-user/src/BirdNET-Go/internal/myaudio/capture.go:152 +0x90

goroutine 374 [syscall]:
github.com/tphakala/go-tflite._Cfunc_TfLiteInterpreterInvoke(0x15faa8a0)
	_cgo_gotypes.go:490 +0x34
github.com/tphakala/go-tflite.(*Interpreter).Invoke.func1(0x4001b81ae8?)
	/go/pkg/mod/github.com/tphakala/go-tflite@v0.0.0-20241022031318-2dad4328ec9e/tflite.go:162 +0x48
github.com/tphakala/go-tflite.(*Interpreter).Invoke(0x40000fe018?)
	/go/pkg/mod/github.com/tphakala/go-tflite@v0.0.0-20241022031318-2dad4328ec9e/tflite.go:162 +0x1c
github.com/tphakala/birdnet-go/internal/birdnet.(*BirdNET).Predict(0x40000ea440, {0x400188a000, 0x1, 0x24dd5d0?})
	/home/dev-user/src/BirdNET-Go/internal/birdnet/analyze.go:44 +0x124
github.com/tphakala/birdnet-go/internal/myaudio.ProcessData(0x40000ea440, {0x4002ac4000, 0x46800, 0x4e000}, {0x2?, 0x4c1b663a8901?, 0x61d8cc0?}, {0x400003baa0, 0x24})
	/home/dev-user/src/BirdNET-Go/internal/myaudio/process.go:28 +0xe4
github.com/tphakala/birdnet-go/internal/myaudio.BufferMonitor(0x0?, 0x40000ea440, 0x40000ba5b0, {0x400003baa0, 0x24})
	/home/dev-user/src/BirdNET-Go/internal/myaudio/buffers.go:188 +0x130
created by github.com/tphakala/birdnet-go/internal/analysis.RealtimeAnalysis in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:137 +0x700

goroutine 372 [chan receive, 1527 minutes]:
github.com/tphakala/birdnet-go/internal/httpcontroller.handleServerError(0x4001b3ee70)
	/home/dev-user/src/BirdNET-Go/internal/httpcontroller/server.go:160 +0x90
created by github.com/tphakala/birdnet-go/internal/httpcontroller.(*Server).Start in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/httpcontroller/server.go:102 +0xc0

goroutine 376 [select, 1 minutes]:
github.com/tphakala/birdnet-go/internal/analysis.clipCleanupMonitor(0x4001a87200?, {0x0?, 0x0?}, 0x40000ba5b0)
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:260 +0x13c
created by github.com/tphakala/birdnet-go/internal/analysis.startClipCleanupMonitor in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:193 +0x98

goroutine 19370 [IO wait]:
internal/poll.runtime_pollWait(0xffff5c33f568, 0x72)
	/usr/local/go/src/runtime/netpoll.go:351 +0xa0
internal/poll.(*pollDesc).wait(0x4001380c00?, 0x400044a000?, 0x1)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x4001380c00, {0x400044a000, 0x8000, 0x8000})
	/usr/local/go/src/internal/poll/fd_unix.go:165 +0x1fc
os.(*File).read(...)
	/usr/local/go/src/os/file_posix.go:29
os.(*File).Read(0x4000382018, {0x400044a000?, 0x400044a000?, 0x0?})
	/usr/local/go/src/os/file.go:124 +0x70
github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio(0x4001d96660, {0x1247e98, 0x400172a0f0}, {0x400003baa0, 0x24}, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:245 +0x1a0
github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:399 +0x40
created by github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle in goroutine 13137
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:398 +0x340

goroutine 19371 [select]:
github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:214 +0xf0
created by github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio in goroutine 19370
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:208 +0x13c

goroutine 355 [select, 564 minutes]:
github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle({0x1247e98, 0x400172a5a0}, {{0x400003ba70?, 0x0?}, {0x4000306cd8?, 0x4001b2e1b8?}}, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:402 +0x398
github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP({0x400003ba70, 0x22}, {0x4000306cd8, 0x3}, 0x4001b2e180?, 0x40000ba5b0, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:487 +0x11c
created by github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudio in goroutine 375
	/home/dev-user/src/BirdNET-Go/internal/myaudio/capture.go:152 +0x90

goroutine 340 [syscall, 1527 minutes]:
os/signal.signal_recv()
	/usr/local/go/src/runtime/sigqueue.go:152 +0x30
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:23 +0x1c
created by os/signal.Notify.func1.1 in goroutine 381
	/usr/local/go/src/os/signal/signal.go:151 +0x28

goroutine 377 [select, 26 minutes]:
github.com/tphakala/birdnet-go/internal/weather.(*Service).StartPolling(0x4001ed4b70, 0x40000ba5b0)
	/home/dev-user/src/BirdNET-Go/internal/weather/weather.go:164 +0x198
github.com/tphakala/birdnet-go/internal/analysis.startWeatherPolling.func1()
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:208 +0x50
created by github.com/tphakala/birdnet-go/internal/analysis.startWeatherPolling in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:206 +0x124

goroutine 378 [IO wait, 1527 minutes]:
internal/poll.runtime_pollWait(0xffff74237d08, 0x72)
	/usr/local/go/src/runtime/netpoll.go:351 +0xa0
internal/poll.(*pollDesc).wait(0x40017b6580?, 0x417084?, 0x0)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Accept(0x40017b6580)
	/usr/local/go/src/internal/poll/fd_unix.go:620 +0x24c
net.(*netFD).accept(0x40017b6580)
	/usr/local/go/src/net/fd_unix.go:172 +0x28
net.(*TCPListener).accept(0x4001785e00)
	/usr/local/go/src/net/tcpsock_posix.go:159 +0x28
net.(*TCPListener).Accept(0x4001785e00)
	/usr/local/go/src/net/tcpsock.go:372 +0x2c
net/http.(*Server).Serve(0x4001d92e10, {0x12467c8, 0x4001785e00})
	/usr/local/go/src/net/http/server.go:3330 +0x294
net/http.(*Server).ListenAndServe(0x4001d92e10)
	/usr/local/go/src/net/http/server.go:3259 +0x84
github.com/tphakala/birdnet-go/internal/telemetry.(*Endpoint).Start.func1()
	/home/dev-user/src/BirdNET-Go/internal/telemetry/endpoint.go:70 +0xd4
created by github.com/tphakala/birdnet-go/internal/telemetry.(*Endpoint).Start in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/telemetry/endpoint.go:67 +0x160

goroutine 379 [chan receive, 1527 minutes]:
github.com/tphakala/birdnet-go/internal/telemetry.(*Endpoint).gracefulShutdown(0x4001e65a40, 0x0?)
	/home/dev-user/src/BirdNET-Go/internal/telemetry/endpoint.go:80 +0x34
created by github.com/tphakala/birdnet-go/internal/telemetry.(*Endpoint).Start in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/telemetry/endpoint.go:75 +0x1b0

goroutine 380 [select, 822 minutes]:
github.com/tphakala/birdnet-go/internal/analysis.startControlMonitor.func1()
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:336 +0xa8
created by github.com/tphakala/birdnet-go/internal/analysis.startControlMonitor in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:333 +0xa0

goroutine 381 [chan receive, 1527 minutes]:
github.com/tphakala/birdnet-go/internal/analysis.monitorCtrlC.func1()
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:233 +0x68
created by github.com/tphakala/birdnet-go/internal/analysis.monitorCtrlC in goroutine 1
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:229 +0x5c

goroutine 13132 [runnable]:
internal/poll.runtime_pollWait(0xffff74236fe8, 0x72)
	/usr/local/go/src/runtime/netpoll.go:351 +0xa0
internal/poll.(*pollDesc).wait(0x40017f12c0?, 0x40002a6000?, 0x1)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x40017f12c0, {0x40002a6000, 0x8000, 0x8000})
	/usr/local/go/src/internal/poll/fd_unix.go:165 +0x1fc
os.(*File).read(...)
	/usr/local/go/src/os/file_posix.go:29
os.(*File).Read(0x4000616030, {0x40002a6000?, 0x40002a6000?, 0x0?})
	/usr/local/go/src/os/file.go:124 +0x70
github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio(0x4001cfc0f0, {0x1247e98, 0x400172a5a0}, {0x400003ba70, 0x22}, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:245 +0x1a0
github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:399 +0x40
created by github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle in goroutine 355
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:398 +0x340

goroutine 13144 [select, 564 minutes]:
os/exec.(*Cmd).watchCtx(0x400163c600, 0x4001b3e150)
	/usr/local/go/src/os/exec/exec.go:773 +0x7c
created by os/exec.(*Cmd).Start in goroutine 13136
	/usr/local/go/src/os/exec/exec.go:759 +0x78c

goroutine 13136 [select, 564 minutes]:
github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle({0x1247e98, 0x4001d94e10}, {{0x400003ba70?, 0x40003da6e8?}, {0x4000306cd8?, 0x4001b08c40?}}, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:402 +0x398
github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP({0x400003ba70, 0x22}, {0x4000306cd8, 0x3}, 0x400029c150?, 0x40000ba5b0, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:487 +0x11c
created by github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudio in goroutine 13135
	/home/dev-user/src/BirdNET-Go/internal/myaudio/capture.go:152 +0x90

goroutine 13131 [syscall, 564 minutes]:
syscall.Syscall6(0x5f, 0x3, 0x11, 0x400046ad60, 0x4, 0x40012d63f0, 0x0)
	/usr/local/go/src/syscall/syscall_linux.go:95 +0x2c
os.(*Process).pidfdWait(0x4001e9a2c0)
	/usr/local/go/src/os/pidfd_linux.go:110 +0x1d8
os.(*Process).wait(0x400028a380?)
	/usr/local/go/src/os/exec_unix.go:27 +0x2c
os.(*Process).Wait(...)
	/usr/local/go/src/os/exec.go:358
os/exec.(*Cmd).Wait(0x40002c6180)
	/usr/local/go/src/os/exec/exec.go:906 +0x38
github.com/tphakala/birdnet-go/internal/myaudio.startFFmpeg.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:333 +0x48
created by github.com/tphakala/birdnet-go/internal/myaudio.startFFmpeg in goroutine 355
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:331 +0x480

goroutine 13170 [chan receive, 564 minutes]:
github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:479 +0x40
created by github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP in goroutine 13137
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:477 +0xf8

goroutine 13133 [select]:
github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:214 +0xf0
created by github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio in goroutine 13132
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:208 +0x13c

goroutine 13129 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0xffff74237bf0, 0x72)
	/usr/local/go/src/runtime/netpoll.go:351 +0xa0
internal/poll.(*pollDesc).wait(0x40017f17a0?, 0x40002e2000?, 0x1)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x40017f17a0, {0x40002e2000, 0x8000, 0x8000})
	/usr/local/go/src/internal/poll/fd_unix.go:165 +0x1fc
os.(*File).read(...)
	/usr/local/go/src/os/file_posix.go:29
os.(*File).Read(0x4000616068, {0x40002e2000?, 0x4001e960e8?, 0x4000019d30?})
	/usr/local/go/src/os/file.go:124 +0x70
io.copyBuffer({0x123fd00, 0x4001e960c0}, {0x123f380, 0x4000616090}, {0x0, 0x0, 0x0})
	/usr/local/go/src/io/io.go:429 +0x18c
io.Copy(...)
	/usr/local/go/src/io/io.go:388
os.genericWriteTo(0x4000616068?, {0x123fd00, 0x4001e960c0})
	/usr/local/go/src/os/file.go:275 +0x58
os.(*File).WriteTo(0x4000616068, {0x123fd00, 0x4001e960c0})
	/usr/local/go/src/os/file.go:253 +0xa0
io.copyBuffer({0x123fd00, 0x4001e960c0}, {0x123f280, 0x4000616068}, {0x0, 0x0, 0x0})
	/usr/local/go/src/io/io.go:411 +0x98
io.Copy(...)
	/usr/local/go/src/io/io.go:388
os/exec.(*Cmd).writerDescriptor.func1()
	/usr/local/go/src/os/exec/exec.go:580 +0x44
os/exec.(*Cmd).Start.func2(0x40002c6300?)
	/usr/local/go/src/os/exec/exec.go:733 +0x34
created by os/exec.(*Cmd).Start in goroutine 355
	/usr/local/go/src/os/exec/exec.go:732 +0x7c0

goroutine 19307 [syscall, 20 minutes]:
syscall.Syscall6(0x5f, 0x3, 0x18, 0x40012ccd60, 0x4, 0x400139a000, 0x0)
	/usr/local/go/src/syscall/syscall_linux.go:95 +0x2c
os.(*Process).pidfdWait(0x4001e9a400)
	/usr/local/go/src/os/pidfd_linux.go:110 +0x1d8
os.(*Process).wait(0x40002241c0?)
	/usr/local/go/src/os/exec_unix.go:27 +0x2c
os.(*Process).Wait(...)
	/usr/local/go/src/os/exec.go:358
os/exec.(*Cmd).Wait(0x400163c900)
	/usr/local/go/src/os/exec/exec.go:906 +0x38
github.com/tphakala/birdnet-go/internal/myaudio.startFFmpeg.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:333 +0x48
created by github.com/tphakala/birdnet-go/internal/myaudio.startFFmpeg in goroutine 356
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:331 +0x480

goroutine 19368 [select, 19 minutes]:
os/exec.(*Cmd).watchCtx(0x400163c780, 0x40000ba7e0)
	/usr/local/go/src/os/exec/exec.go:773 +0x7c
created by os/exec.(*Cmd).Start in goroutine 13137
	/usr/local/go/src/os/exec/exec.go:759 +0x78c

goroutine 13143 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0xffff5c340288, 0x72)
	/usr/local/go/src/runtime/netpoll.go:351 +0xa0
internal/poll.(*pollDesc).wait(0x4001ba02a0?, 0x40005ea000?, 0x1)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x4001ba02a0, {0x40005ea000, 0x8000, 0x8000})
	/usr/local/go/src/internal/poll/fd_unix.go:165 +0x1fc
os.(*File).read(...)
	/usr/local/go/src/os/file_posix.go:29
os.(*File).Read(0x4000074498, {0x40005ea000?, 0x4001df8028?, 0x4000089d30?})
	/usr/local/go/src/os/file.go:124 +0x70
io.copyBuffer({0x123fd00, 0x4001df8000}, {0x123f380, 0x40000744f0}, {0x0, 0x0, 0x0})
	/usr/local/go/src/io/io.go:429 +0x18c
io.Copy(...)
	/usr/local/go/src/io/io.go:388
os.genericWriteTo(0x4000074498?, {0x123fd00, 0x4001df8000})
	/usr/local/go/src/os/file.go:275 +0x58
os.(*File).WriteTo(0x4000074498, {0x123fd00, 0x4001df8000})
	/usr/local/go/src/os/file.go:253 +0xa0
io.copyBuffer({0x123fd00, 0x4001df8000}, {0x123f280, 0x4000074498}, {0x0, 0x0, 0x0})
	/usr/local/go/src/io/io.go:411 +0x98
io.Copy(...)
	/usr/local/go/src/io/io.go:388
os/exec.(*Cmd).writerDescriptor.func1()
	/usr/local/go/src/os/exec/exec.go:580 +0x44
os/exec.(*Cmd).Start.func2(0x40013e8500?)
	/usr/local/go/src/os/exec/exec.go:733 +0x34
created by os/exec.(*Cmd).Start in goroutine 13136
	/usr/local/go/src/os/exec/exec.go:732 +0x7c0

goroutine 13130 [select, 564 minutes]:
os/exec.(*Cmd).watchCtx(0x40002c6180, 0x4001be21c0)
	/usr/local/go/src/os/exec/exec.go:773 +0x7c
created by os/exec.(*Cmd).Start in goroutine 355
	/usr/local/go/src/os/exec/exec.go:759 +0x78c

goroutine 13146 [IO wait]:
internal/poll.runtime_pollWait(0xffff742379c0, 0x72)
	/usr/local/go/src/runtime/netpoll.go:351 +0xa0
internal/poll.(*pollDesc).wait(0x4001ba00c0?, 0x40005e0000?, 0x1)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x28
internal/poll.(*pollDesc).waitRead(...)
	/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0x4001ba00c0, {0x40005e0000, 0x8000, 0x8000})
	/usr/local/go/src/internal/poll/fd_unix.go:165 +0x1fc
os.(*File).read(...)
	/usr/local/go/src/os/file_posix.go:29
os.(*File).Read(0x4000074408, {0x40005e0000?, 0x40005e0000?, 0x0?})
	/usr/local/go/src/os/file.go:124 +0x70
github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio(0x400179e390, {0x1247e98, 0x4001d94e10}, {0x400003ba70, 0x22}, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:245 +0x1a0
github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:399 +0x40
created by github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle in goroutine 13136
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:398 +0x340

goroutine 19369 [syscall, 19 minutes]:
syscall.Syscall6(0x5f, 0x3, 0x17, 0x4000072560, 0x4, 0x40012d6480, 0x0)
	/usr/local/go/src/syscall/syscall_linux.go:95 +0x2c
os.(*Process).pidfdWait(0x400181a0c0)
	/usr/local/go/src/os/pidfd_linux.go:110 +0x1d8
os.(*Process).wait(0x40001a8070?)
	/usr/local/go/src/os/exec_unix.go:27 +0x2c
os.(*Process).Wait(...)
	/usr/local/go/src/os/exec.go:358
os/exec.(*Cmd).Wait(0x400163c780)
	/usr/local/go/src/os/exec/exec.go:906 +0x38
github.com/tphakala/birdnet-go/internal/myaudio.startFFmpeg.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:333 +0x48
created by github.com/tphakala/birdnet-go/internal/myaudio.startFFmpeg in goroutine 13137
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:331 +0x480

goroutine 19306 [select, 20 minutes]:
os/exec.(*Cmd).watchCtx(0x400163c900, 0x40000ba9a0)
	/usr/local/go/src/os/exec/exec.go:773 +0x7c
created by os/exec.(*Cmd).Start in goroutine 356
	/usr/local/go/src/os/exec/exec.go:759 +0x78c

goroutine 13142 [chan receive, 564 minutes]:
github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:479 +0x40
created by github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP in goroutine 13136
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:477 +0xf8

goroutine 13137 [select, 19 minutes]:
github.com/tphakala/birdnet-go/internal/myaudio.manageFfmpegLifecycle({0x1247e98, 0x400172a0f0}, {{0x400003baa0?, 0x40002836e8?}, {0x4000306cd8?, 0x40016bf880?}}, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:402 +0x398
github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudioRTSP({0x400003baa0, 0x24}, {0x4000306cd8, 0x3}, 0x400029c150?, 0x40000ba5b0, 0x40000ba540, 0x4000412700)
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:487 +0x11c
created by github.com/tphakala/birdnet-go/internal/myaudio.CaptureAudio in goroutine 13135
	/home/dev-user/src/BirdNET-Go/internal/myaudio/capture.go:152 +0x90

goroutine 13145 [syscall, 564 minutes]:
syscall.Syscall6(0x5f, 0x3, 0x1c, 0x40002bf560, 0x4, 0x40000d2630, 0x0)
	/usr/local/go/src/syscall/syscall_linux.go:95 +0x2c
os.(*Process).pidfdWait(0x4000172080)
	/usr/local/go/src/os/pidfd_linux.go:110 +0x1d8
os.(*Process).wait(0x40017d3880?)
	/usr/local/go/src/os/exec_unix.go:27 +0x2c
os.(*Process).Wait(...)
	/usr/local/go/src/os/exec.go:358
os/exec.(*Cmd).Wait(0x400163c600)
	/usr/local/go/src/os/exec/exec.go:906 +0x38
github.com/tphakala/birdnet-go/internal/myaudio.startFFmpeg.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:333 +0x48
created by github.com/tphakala/birdnet-go/internal/myaudio.startFFmpeg in goroutine 13136
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:331 +0x480

goroutine 13147 [select]:
github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:214 +0xf0
created by github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio in goroutine 13146
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:208 +0x13c

goroutine 19309 [select]:
github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio.func1()
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:214 +0xf0
created by github.com/tphakala/birdnet-go/internal/myaudio.(*FFmpegProcess).processAudio in goroutine 19308
	/home/dev-user/src/BirdNET-Go/internal/myaudio/ffmpeg_input.go:208 +0x13c
2025/02/11 14:50:49 [error] 485#485: *1399 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: db21ed7f-birdnet-go, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "192.168.86.64:8123"
2025/02/11 14:50:49 [error] 485#485: *1399 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: db21ed7f-birdnet-go, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "192.168.86.64:8123"
[11/Feb/2025:14:50:49 +0100] 502 192.168.86.56, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15)
2025/02/11 14:50:52 [error] 485#485: *1399 no live upstreams while connecting to upstream, client: 172.30.32.2, server: db21ed7f-birdnet-go, request: "GET / HTTP/1.1", upstream: "http://localhost/", host: "192.168.86.64:8123"
[11/Feb/2025:14:50:52 +0100] 502 192.168.86.56, 172.30.32.1(172.30.32.2) GET / HTTP/1.1 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15)

Architecture

aarch64

OS

HAos

@WvanWaas WvanWaas added the bug Something isn't working label Feb 11, 2025
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

No branches or pull requests

1 participant