DVR crashing on start on up (invalid page type)

Hello,

I'm running channels via docker on unraid. I can not get the DVR to start up. The only way I've been successful is to blow away settings.db and recorder.db, but then I lose all my settings and recordings. None of the DB backups are working either (I've tried a most of them from the past few months)..

Below is the what I see in the log on startup...

2022/08/27 21:53:11.377932 [SYS] Starting Channels DVR v2022.08.08.2006 (linux-x86_64 pid:8) in /channels-dvr/data
2022/08/27 21:53:11.406319 [SYS] Started HTTP Server
2022/08/27 21:53:11.869371 [HDR] Found 1 devices
2022/08/27 21:53:12.447565 [TLS] Requesting certificate for d9bdb541fa3d.u.channelsdvr.net
panic: invalid page type: 19: 10

goroutine 1 [running]:
go.etcd.io/bbolt.(*Cursor).search(0xc00087f288, {0x2802c27, 0x1, 0x1}, 0xc00087f228?)
	go.etcd.io/[email protected]/cursor.go:250 +0x285
go.etcd.io/bbolt.(*Cursor).seek(0xc00087f288, {0x2802c27?, 0x80?, 0x14db5033b5b8?})
	go.etcd.io/[email protected]/cursor.go:159 +0x48
go.etcd.io/bbolt.(*Bucket).Bucket(0xc00120e040, {0x2802c27, 0x1, 0x1})
	go.etcd.io/[email protected]/bucket.go:105 +0xd1
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).loadSnapshot(0xc001246400, 0xc00120e040)
	github.com/blevesearch/bleve/[email protected]/index/scorch/persister.go:707 +0xde
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).loadFromBolt.func1(0x0?)
	github.com/blevesearch/bleve/[email protected]/index/scorch/persister.go:645 +0x165
go.etcd.io/bbolt.(*DB).View(0x0?, 0xc00087f4f8)
	go.etcd.io/[email protected]/db.go:780 +0x82
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).loadFromBolt(0xc0010e2400?)
	github.com/blevesearch/bleve/[email protected]/index/scorch/persister.go:622 +0x3c
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).openBolt(0xc001246400)
	github.com/blevesearch/bleve/[email protected]/index/scorch/scorch.go:235 +0x2b6
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Open(0xc001246400)
	github.com/blevesearch/bleve/[email protected]/index/scorch/scorch.go:174 +0x25
github.com/blevesearch/bleve/v2.openIndexUsing({0xc001233470, 0xd}, 0x17a6fa4?)
	github.com/blevesearch/bleve/[email protected]/index_impl.go:174 +0x4d1
github.com/blevesearch/bleve/v2.OpenUsing(...)
	github.com/blevesearch/bleve/[email protected]/index.go:293
github.com/fancybits/channels-server/dvr.(*Recorder).airingIndexForLineup(0xc0000bb8c0, {0xc000f2e910, 0x5})
	github.com/fancybits/channels-server/dvr/search.go:222 +0x1a5
github.com/fancybits/channels-server/dvr.(*Recorder).RefreshSearchIndices(0xc0000bb8c0)
	github.com/fancybits/channels-server/dvr/search.go:184 +0xf7
github.com/fancybits/channels-server/dvr.(*Recorder).SetupSearch(...)
	github.com/fancybits/channels-server/dvr/search.go:170
github.com/fancybits/channels-server/dvr.(*Recorder).Setup(0xc0000bb8c0)
	github.com/fancybits/channels-server/dvr/recorder.go:124 +0x5dc
main.StartDVR()
	github.com/fancybits/channels-server/dvr.go:51 +0x2cf
main.run()
	github.com/fancybits/channels-server/main.go:413 +0x758
main.SetupMenu(...)
	github.com/fancybits/channels-server/menu.go:7
main.main()
	github.com/fancybits/channels-server/main.go:248 +0x1a2

The issue is with the guide data. Delete the .airings and .groups folders

With the next build the DVR will detect this type of corruption and recover automatically. Thank you for sharing the crash logs.

1 Like