Help: DVR Server panics - looping forever : RESOLVED

My DVR service is out of service. My setup was okay years. After encountering an issue, I rebooted my nuc. When viewing the admin page I see Channels is attempting to load the sources, there is a spinner. The source is an HDhomerun, I have no expectation that it will succeed because it has been way too long. I am not how troubleshoot.

Channels runs on nuc. Hardwired to router. Hdhomerun is hardwired. Both device are visible in Router app. Hdhomerun status page looks good. My nuc has internet access. I turned off the firewall even though port 8089 is open. But Channels app cannot connect. I tried my iPhone app and my firetv app.

I am lost on what to try next. Does anyone have suggestions?

-jerry

See the Loading... and the highlight spinner keeps spinning. Well over 1 hour now.

I also tried to manually add the HDHomerun source. Channels remained in a Loading state.

I am attempting to submit diagnostic logs. I've submitted logs previously. It was very quick. But, the submit is also taking a long time. I am not sure if the two issues are related.

BTW, The Nuc is running openSUSE Leap 15.3.

Here is a portion of the log. See the panic error. Anything to worry about?

2022/04/13 20:49:42.416199 [SYS] Starting Channels DVR v2022.03.23.0209 (linux-x86_64 pid:12713) in /home/jerry/channels-dvr/data
2022/04/13 20:49:42.437865 [SYS] Started HTTP Server
2022/04/13 20:49:43.741773 [HDR] Found 1 devices
2022/04/13 20:49:44.183234 [DVR] Recording engine started in /home/jerry/DVR
2022/04/13 20:49:44.184175 [SYS] Bonjour service running for dvr-localhost.local. [192.168.1.15]
2022/04/13 20:49:44.188287 [DVR] Waiting 23h55m15.811731308s until next job 1649983500-47 ...
2022/04/13 20:49:44.242262 [SYS] Created database snapshot: backup-20220413.204944
2022/04/13 20:49:44.242430 [SYS] Removing old backup backup-20220413.204308
panic: runtime error: index out of range [0] with length 0

I found the active log file and tailed. It hits the panic error and restarts. It is looping continuously.

2022/04/13 21:35:22.725009 [SYS] Removing old backup backup-20220413.212849
panic: runtime error: index out of range [0] with length 0

goroutine 49 [running]:
github.com/blevesearch/zapx/v15.(*memUvarintReader).ReadUvarint(0xc000ef0a80)
        github.com/blevesearch/zapx/[email protected]/memuvarint.go:48 +0xc5
github.com/blevesearch/zapx/v15.(*chunkedIntDecoder).readUvarint(...)
        github.com/blevesearch/zapx/[email protected]/intDecoder.go:103
github.com/blevesearch/zapx/v15.(*PostingsIterator).nextAtOrAfter(0xc000ef0a80, 0x7fd400000432)
        github.com/blevesearch/zapx/[email protected]/posting.go:516 +0x1f8
github.com/blevesearch/zapx/v15.(*PostingsIterator).Next(...)
        github.com/blevesearch/zapx/[email protected]/posting.go:465
github.com/blevesearch/zapx/v15.mergeTermFreqNormLocs(0x0, {0x0, 0x0, 0x0}, 0xc000ef0a80, {0xc000bbb000, 0x1f7, 0x1f7}, 0xc00162d648, 0xc000831780, ...)
        github.com/blevesearch/zapx/[email protected]/merge.go:584 +0xa6
github.com/blevesearch/zapx/v15.persistMergedRest({0xc00098e140, 0xa, 0xc000dee450}, {0xc00098e0f0, 0xa, 0x40f1b4}, {0xc00000c3c0, 0x1d, 0xc000c301e8}, 0xc000dee450, ...)
        github.com/blevesearch/zapx/[email protected]/merge.go:346 +0x1bf4
github.com/blevesearch/zapx/v15.MergeToWriter({0xc00098e140, 0xa, 0xa}, {0xc00098e0f0, 0xa, 0xa}, 0x2c, 0x50, 0x50)
        github.com/blevesearch/zapx/[email protected]/merge.go:137 +0x273
github.com/blevesearch/zapx/v15.mergeSegmentBases({0xc00098e140, 0xa, 0xa}, {0xc00098e0f0, 0xa, 0xa}, {0xc000950000, 0x2c}, 0xd9b22f79, 0xc00086c000, ...)
        github.com/blevesearch/zapx/[email protected]/merge.go:78 +0x25b
github.com/blevesearch/zapx/v15.(*ZapPlugin).Merge(0x1a7d390, {0xc000394000, 0xa, 0x10000c000c3ab78}, {0xc00098e0f0, 0xa, 0xa}, {0xc000950000, 0x2c}, 0xc00086c000, ...)
        github.com/blevesearch/zapx/[email protected]/merge.go:53 +0xd5
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).planMergeAtSnapshot(0xc000b22800, {0x1ad2b18, 0xc000040068}, 0xc00098e000, 0xc0005a3d00)
        github.com/blevesearch/bleve/[email protected]/index/scorch/merge.go:322 +0x79a
github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).mergerLoop(0xc000b22800)
        github.com/blevesearch/bleve/[email protected]/index/scorch/merge.go:68 +0x256
created by github.com/blevesearch/bleve/v2/index/scorch.(*Scorch).Open
        github.com/blevesearch/bleve/[email protected]/index/scorch/scorch.go:186 +0x15b
1 Like

Another piece of info. The backup file it is attempting to delete doesn't exist. Lots of 0 block files.

l

s -lst Database/
total 0
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:09 backup-20220413.220930
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:09 backup-20220413.220917
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:09 backup-20220413.220904
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:08 backup-20220413.220851
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:08 backup-20220413.220837
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:08 backup-20220413.220824
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:08 backup-20220413.220811
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:07 backup-20220413.220758
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:07 backup-20220413.220745
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:07 backup-20220413.220731
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:07 backup-20220413.220718
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:07 backup-20220413.220705
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:06 backup-20220413.220652
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:06 backup-20220413.220639
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:06 backup-20220413.220626
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:06 backup-20220413.220612
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:05 backup-20220413.220559
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:05 backup-20220413.220546
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:05 backup-20220413.220533
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:05 backup-20220413.220520
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:05 backup-20220413.220507
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:04 backup-20220413.220454
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:04 backup-20220413.220441
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:04 backup-20220413.220428
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:04 backup-20220413.220415
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:04 backup-20220413.220402
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:03 backup-20220413.220348
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:03 backup-20220413.220336
0 drwxr-xr-x 2 jerry users 44 Apr 13 22:03 backup-20220413.220322

Your guide database is corrupted I think

Delete *.airings and *.groups in /home/jerry/channels-dvr/data

I deleted the files.It eliminated the panic error. But. it repeatedly wrote this to the log file.

2022/04/14 06:27:00.806163 [SYS] Removing old backup backup-20220414.062011
2022/04/14 06:27:10.757937 [DVR] No listings for USA-MA20486-X (0 airings, 9926 groups); starting indexer..
2022/04/14 06:27:11.375499 [DVR] Fetching guide data for 259 stations in USA-MA20486-X @ 2022-04-14 6:00AM
2022/04/14 06:27:15.273888 [ERR] Guide database failure: got err persisting snapshot: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory
2022/04/14 06:27:15.273998 [ERR] Guide database failure: got err persisting snapshot: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory
2022/04/14 06:27:15.274043 [DVR] Error indexing groups: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory
2022/04/14 06:27:15.274057 [ERR] Guide database failure: got err persisting snapshot: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory
2022/04/14 06:27:15.274117 [ERR] Guide database failure: got err persisting snapshot: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory
2022/04/14 06:27:15.274205 [ERR] Guide database failure: got err persisting snapshot: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory
2022/04/14 06:27:15.274267 [ERR] Guide database failure: got err persisting snapshot: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory
2022/04/14 06:27:15.274323 [ERR] Guide database failure: got err persisting snapshot: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory
2022/04/14 06:27:15.274390 [ERR] Guide database failure: got err persisting snapshot: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory
2022/04/14 06:27:15.274450 [ERR] Guide database failure: got err persisting snapshot: error persisting segment: open USA-MA20486-X.groups/store/0000025c54b9.zap: no such file or directory

The DVR Server says up long enough for me to submit diagnostic logs - I just submitted.

Eventually the errors stopped. My TV is able to see the guide. I can watch recordings and shows. I think I am all set. Thank you!