Open yuhuanfan opened 2 months ago
This is happening for us as well, we have the exact same logs:
23:08:33.841 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
23:08:33.841 INF config path=/config/go2rtc.yaml
23:08:33.841 INF [rtsp] listen addr=192.168.34.80:554
23:08:33.841 INF [api] listen addr=:1984
23:08:33.841 INF [webrtc] listen addr=:8555/tcp
exit with signal: terminated
02:08:37.616 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
02:08:37.617 INF config path=/config/go2rtc.yaml
02:08:37.618 INF [api] listen addr=:1984
02:08:37.618 INF [rtsp] listen addr=192.168.34.80:554
02:08:37.618 INF [webrtc] listen addr=:8555/tcp
exit with signal: terminated
05:08:37.674 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
05:08:37.674 INF config path=/config/go2rtc.yaml
05:08:37.674 INF [rtsp] listen addr=192.168.34.80:554
05:08:37.674 INF [api] listen addr=:1984
05:08:37.674 INF [webrtc] listen addr=:8555/tcp
exit with signal: terminated
08:08:37.590 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
08:08:37.590 INF config path=/config/go2rtc.yaml
08:08:37.590 INF [api] listen addr=:1984
08:08:37.591 INF [rtsp] listen addr=192.168.34.80:554
08:08:37.591 INF [webrtc] listen addr=:8555/tcp
exit with signal: terminated
11:08:37.546 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
11:08:37.547 INF config path=/config/go2rtc.yaml
11:08:37.547 INF [rtsp] listen addr=192.168.34.80:554
11:08:37.547 INF [api] listen addr=:1984
11:08:37.547 INF [webrtc] listen addr=:8555/tcp
exit with signal: terminated
13:00:49.108 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
13:00:49.109 INF config path=/config/go2rtc.yaml
13:00:49.111 INF [rtsp] listen addr=192.168.34.80:554
13:00:49.111 INF [api] listen addr=:1984
13:00:49.112 INF [webrtc] listen addr=:8555/tcp
exit with signal: terminated
16:00:39.320 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
16:00:39.321 INF config path=/config/go2rtc.yaml
16:00:39.322 INF [rtsp] listen addr=192.168.34.80:554
16:00:39.322 INF [api] listen addr=:1984
16:00:39.322 INF [webrtc] listen addr=:8555/tcp
exit with signal: terminated
19:00:39.248 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
19:00:39.249 INF config path=/config/go2rtc.yaml
19:00:39.250 INF [rtsp] listen addr=192.168.34.80:554
19:00:39.250 INF [api] listen addr=:1984
19:00:39.250 INF [webrtc] listen addr=:8555/tcp
19:10:19.145 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtsp://admin:ehhTc2A3m!6T@192.168.34.23/videoStreamId=2
19:30:50.271 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtsp://admin:ehhTc2A3m!6T@192.168.34.23/videoStreamId=2
19:35:47.396 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtsp://admin:ehhTc2A3m!6T@192.168.34.23/videoStreamId=2
20:39:04.942 WRN github.com/AlexxIT/go2rtc/internal/streams/producer.go:170 > error=EOF url=rtsp://admin:ehhTc2A3m!6T@192.168.34.23/videoStreamId=2
exit with signal: terminated
22:00:39.405 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
22:00:39.405 INF config path=/config/go2rtc.yaml
22:00:39.406 INF [rtsp] listen addr=192.168.34.80:554
22:00:39.406 INF [api] listen addr=:1984
22:00:39.406 INF [webrtc] listen addr=:8555/tcp
22:58:51.142 INF [streams] can't get track error="wrong response on SETUP"
22:58:54.491 INF [streams] can't get track error="wrong response on SETUP"
22:59:14.122 INF [streams] can't get track error="wrong response on SETUP"
22:59:42.598 INF [streams] can't get track error="wrong response on SETUP"
22:59:57.762 INF [streams] can't get track error="wrong response on SETUP"
23:04:02.067 INF [streams] can't get track error="wrong response on SETUP"
23:05:05.342 INF [streams] can't get track error="wrong response on SETUP"
panic: close of closed channel
goroutine 7477 [running]:
github.com/AlexxIT/go2rtc/pkg/core.(*Sender).Close(0x0?)
github.com/AlexxIT/go2rtc/pkg/core/track.go:174 +0x96
github.com/AlexxIT/go2rtc/pkg/core.(*Connection).Stop(0xc001c56f20)
github.com/AlexxIT/go2rtc/pkg/core/connection.go:74 +0x90
github.com/AlexxIT/go2rtc/internal/streams.(*Stream).RemoveConsumer(0xc0001dcac0, {0xd90aa0, 0xc001c56f20})
github.com/AlexxIT/go2rtc/internal/streams/stream.go:58 +0x30
github.com/AlexxIT/go2rtc/internal/webrtc.asyncHandler.func1({0xb6f6a0?, 0x1221950?})
github.com/AlexxIT/go2rtc/internal/webrtc/webrtc.go:131 +0x9b
github.com/AlexxIT/go2rtc/pkg/core.(*Listener).Fire(...)
github.com/AlexxIT/go2rtc/pkg/core/listener.go:16
github.com/AlexxIT/go2rtc/pkg/webrtc.NewConn.func5(0x6)
github.com/AlexxIT/go2rtc/pkg/webrtc/conn.go:128 +0x68
created by github.com/pion/webrtc/v3.(*PeerConnection).onConnectionStateChange in goroutine 7476
github.com/pion/webrtc/v3@v3.2.40/peerconnection.go:500 +0x16f
23:07:39.124 INF go2rtc platform=linux/amd64 revision=a4885c2 version=1.9.4
23:07:39.125 INF config path=/config/go2rtc.yaml
23:07:39.125 INF [rtsp] listen addr=192.168.34.80:554
23:07:39.125 INF [api] listen addr=:1984
23:07:39.126 INF [webrtc] listen addr=:8555/tcp
Downgraded to v1.9.3 and it's still happening
00:18:37.248 INF go2rtc platform=linux/amd64 revision=cd777ba version=1.9.3
00:18:37.249 INF config path=/config/go2rtc.yaml
00:18:37.249 INF [rtsp] listen addr=192.168.34.80:554
00:18:37.249 INF [api] listen addr=:1984
00:18:37.249 INF [webrtc] listen addr=:8555/tcp
exit with signal: terminated
03:18:40.393 INF go2rtc platform=linux/amd64 revision=cd777ba version=1.9.3
03:18:40.395 INF config path=/config/go2rtc.yaml
03:18:40.396 INF [rtsp] listen addr=192.168.34.80:554
03:18:40.396 INF [api] listen addr=:1984
03:18:40.397 INF [webrtc] listen addr=:8555/tcp
Downgraded to v1.9.2 and it's still happening
04:08:49.811 INF go2rtc platform=linux/amd64 revision= version=1.9.2
04:08:49.813 INF config path=/config/go2rtc.yaml
04:08:49.813 INF [rtsp] listen addr=192.168.34.80:554
04:08:49.813 INF [api] listen addr=:1984
04:08:49.813 INF [webrtc] listen addr=:8555/tcp
exit with signal: terminated
06:48:53.353 INF go2rtc platform=linux/amd64 revision= version=1.9.2
06:48:53.360 INF config path=/config/go2rtc.yaml
06:48:53.361 INF [rtsp] listen addr=192.168.34.80:554
06:48:53.361 INF [api] listen addr=:1984
06:48:53.361 INF [webrtc] listen addr=:8555/tcp
BTW we're using your docker image
i found why if the connection idle,go2rtc will stop working. so i used frigate connect go2rtc 7*24. first start frigate then start go2rtc
Note that we're not using frigate at all, we're using go2rtc docker directly.
Still happening in 1.8.5
14:26:07.885 INF go2rtc version 1.8.5 linux/amd64
14:26:07.888 INF [api] listen addr=:1984
14:26:07.888 INF [rtsp] listen addr=192.168.34.80:554
14:26:07.888 INF [webrtc] listen addr=:8555
exit with signal: terminated
17:26:08.191 INF go2rtc version 1.8.5 linux/amd64
17:26:08.191 INF [api] listen addr=:1984
17:26:08.191 INF [rtsp] listen addr=192.168.34.80:554
17:26:08.191 INF [webrtc] listen addr=:8555
exit with signal: terminated
20:26:08.286 INF go2rtc version 1.8.5 linux/amd64
20:26:08.287 INF [rtsp] listen addr=192.168.34.80:554
20:26:08.287 INF [api] listen addr=:1984
20:26:08.288 INF [webrtc] listen addr=:8555
Any advice @AlexxIT ?
I am having the same issue of go2rtc (1.9.4)stop when there is no movement detected in Frigate as well
frigate(10.1) rtmp to go2rtc