Panic when restoring

2023/10/18 14:13:10.539772 [SYS] Starting Channels DVR v2023.10.13.0514 (linux-x86_64 pid:7) in /channels-dvr/data
2023/10/18 14:13:10.895746 [SYS] Started HTTP Server on 8089
2023/10/18 14:13:13.256491 [DVR] Recording engine started in /shares/dvr
2023/10/18 14:13:13.452222 [SYS] Created database snapshot: backup-20231018.211313
2023/10/18 14:13:13.452447 [SYS] Removing old backup backup-20230905.174744
2023/10/18 14:13:23.897877 [IDX] Pruned 13359 expired airings from X-TVE in 590.25906ms.
2023/10/18 14:15:19.211409 [DVR] Recording engine stopped.
2023/10/18 14:15:19.875677 [DVR] Restored backup backup-20231018.211313 from /shares/dvr/Database


2023/10/18 14:15:49 [Recovery] 2023/10/18 - 14:15:49 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/scanner.go:146 (0x152e6b5)
github.com/fancybits/channels-server/dvr/scanner.go:163 (0x152e88a)
github.com/fancybits/channels-server/http_dvr_scanner.go:88 (0x1ba0727)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)



2023/10/18 14:15:49 [Recovery] 2023/10/18 - 14:15:49 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/scanner.go:146 (0x152e6b5)
github.com/fancybits/channels-server/dvr/scanner.go:163 (0x152e88a)
github.com/fancybits/channels-server/http_dvr_scanner.go:88 (0x1ba0727)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

Logs have been submitted as 0262da90-1189-4663-b1b4-9fe13b97b799

DVR is disabled

Checked to logs again and it appears maybe the diagnostics weren't sent?

2023/10/18 14:18:54.287249 [TRS] DNS: WARNING: Using public DNS resolver from "Cloudflare, Inc." can cause problems with TV Everywhere
2023/10/18 14:18:54.864303 [TRS] Cloud Reachable: OK: Connected to community.getchannels.com
2023/10/18 14:18:54.970344 [TRS] Local Time: OK: Local clock is accurate
2023/10/18 14:18:54.979827 [TRS] TV Everywhere: OK
2023/10/18 14:18:55.059561 [TRS] ad-dns: Resolved adservice.google.com: 142.250.191.34, 2607:f8b0:4005:803::2002
2023/10/18 14:18:55.075226 [TRS] ad-dns: Resolved googleads.g.doubleclick.net: 142.251.46.162, 2607:f8b0:4005:803::2002
2023/10/18 14:18:55.092209 [TRS] ad-dns: Resolved assets.adobedtm.com: 23.194.100.32, 2600:1409:12:3b3::1e80, 2600:1409:12:3ac::1e80, 2600:1409:12:381::1e80, 2600:1409:12:3ae::1e80, 2600:1409:12:3b1::1e80
2023/10/18 14:18:55.108045 [TRS] ad-dns: Resolved d.adroll.com: 34.209.145.93, 54.148.154.13, 2600:1f18:61c0:2204:c1c6:a2ed:f6e9:bc05, 2600:1f18:61c0:2206:e05b:a3a1:6e01:bf3b
2023/10/18 14:18:55.123670 [TRS] ad-dns: Resolved bat.bing.com: 204.79.197.200, 13.107.21.200, 2620:1ec:c11::200
2023/10/18 14:18:55.139091 [TRS] ad-dns: Resolved pubads.g.doubleclick.net: 142.250.72.194, 2607:f8b0:4005:80b::2002
2023/10/18 14:18:55.173600 [TRS] ad-dns: Resolved edge.api.brightcove.com: 151.101.2.27, 151.101.66.27, 151.101.130.27, 151.101.194.27
2023/10/18 14:18:55.173673 [TRS] TV Everywhere DNS: OK: Resolved TVE authenticator via system DNS
2023/10/18 14:18:55.573583 [TRS] Guide Provider: OK: Connected to guide provider
2023/10/18 14:18:55.573632 [TRS] Device Lineups: OK: All devices have guide data mapped
2023/10/18 14:18:55.573673 [TRS] Remote Access: OK: Remote access not configured
2023/10/18 14:18:55.573684 [TRS] Disk Permissions: OK
2023/10/18 14:18:57.838447 [DIAG] Could not find file: channels-tailscale.log: open channels-tailscale.log: no such file or directory

2023/10/18 14:18:57 [Recovery] 2023/10/18 - 14:18:57 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/http_dvr_scanner.go:44 (0x1b9fc5b)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

2023/10/18 14:18:57.863573 [DIAG] Could not package /dvr/scanner/sources: 500 Internal Server Error

2023/10/18 14:18:57 [Recovery] 2023/10/18 - 14:18:57 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/scanner.go:146 (0x152e6b5)
github.com/fancybits/channels-server/dvr/scanner.go:163 (0x152e88a)
github.com/fancybits/channels-server/http_dvr_scanner.go:88 (0x1ba0727)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

2023/10/18 14:18:57.866370 [DIAG] Could not package /dvr/scanner/paths: 500 Internal Server Error

2023/10/18 14:18:57 [Recovery] 2023/10/18 - 14:18:57 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/db_files.go:234 (0x14df5a0)
github.com/fancybits/channels-server/http_dvr_scanner.go:149 (0x1ba1447)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

2023/10/18 14:18:57.869400 [DIAG] Could not package /dvr/scanner/imports/index: 500 Internal Server Error
2023/10/18 14:19:04.289923 New diagnostic log submitted under 0262da90-1189-4663-b1b4-9fe13b97b799

2023/10/18 14:20:54 [Recovery] 2023/10/18 - 14:20:54 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/scanner.go:146 (0x152e6b5)
github.com/fancybits/channels-server/dvr/scanner.go:163 (0x152e88a)
github.com/fancybits/channels-server/http_dvr_scanner.go:88 (0x1ba0727)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

2023/10/18 14:20:54 [Recovery] 2023/10/18 - 14:20:54 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/scanner.go:146 (0x152e6b5)
github.com/fancybits/channels-server/dvr/scanner.go:163 (0x152e88a)
github.com/fancybits/channels-server/http_dvr_scanner.go:88 (0x1ba0727)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

2023/10/18 14:27:24 [Recovery] 2023/10/18 - 14:27:24 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/scanner.go:146 (0x152e6b5)
github.com/fancybits/channels-server/dvr/scanner.go:163 (0x152e88a)
github.com/fancybits/channels-server/http_dvr_scanner.go:88 (0x1ba0727)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

2023/10/18 14:27:24 [Recovery] 2023/10/18 - 14:27:24 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/scanner.go:146 (0x152e6b5)
github.com/fancybits/channels-server/dvr/scanner.go:163 (0x152e88a)
github.com/fancybits/channels-server/http_dvr_scanner.go:88 (0x1ba0727)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

2023/10/18 14:28:38 [Recovery] 2023/10/18 - 14:28:38 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/scanner.go:146 (0x152e6b5)
github.com/fancybits/channels-server/dvr/scanner.go:163 (0x152e88a)
github.com/fancybits/channels-server/http_dvr_scanner.go:88 (0x1ba0727)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

2023/10/18 14:28:38 [Recovery] 2023/10/18 - 14:28:38 panic recovered:
runtime error: invalid memory address or nil pointer dereference
runtime/panic.go:260 (0x45113c)
runtime/signal_unix.go:841 (0x45110c)
github.com/fancybits/channels-server/dvr/scanner.go:146 (0x152e6b5)
github.com/fancybits/channels-server/dvr/scanner.go:163 (0x152e88a)
github.com/fancybits/channels-server/http_dvr_scanner.go:88 (0x1ba0727)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5d183)
github.com/fancybits/channels-server/http.go:336 (0x1b5ce77)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5cdea)
github.com/fancybits/channels-server/http.go:313 (0x1b5cdcf)
github.com/gin-gonic/[email protected]/context.go:169 (0xaf4e2c)
github.com/fancybits/channels-server/http.go:288 (0x1b5caa2)
github.com/gin-gonic/[email protected]/context.go:169 (0x1b5c647)
github.com/fancybits/channels-server/http.go:250 (0x1b5bfd3)
github.com/gin-gonic/[email protected]/context.go:169 (0xb01781)
github.com/gin-gonic/[email protected]/recovery.go:107 (0xb0176c)
github.com/gin-gonic/[email protected]/context.go:169 (0xb008e6)
github.com/gin-gonic/[email protected]/logger.go:240 (0xb008c9)
github.com/gin-gonic/[email protected]/context.go:169 (0x15b0439)
github.com/gin-contrib/[email protected]/sessions.go:54 (0x15b0425)
github.com/gin-gonic/[email protected]/context.go:169 (0x15aa7c1)
github.com/gin-contrib/[email protected]/gzip.go:47 (0x15aa799)
github.com/gin-gonic/[email protected]/context.go:169 (0x1bdd545)
github.com/fancybits/channels-server/http.go:426 (0x1bdd531)
github.com/gin-gonic/[email protected]/context.go:169 (0xaff9aa)
github.com/gin-gonic/[email protected]/gin.go:598 (0xaff631)
github.com/gin-gonic/[email protected]/gin.go:554 (0xaff151)
net/http/server.go:2942 (0x7361b5)
net/http/server.go:2001 (0x731786)
runtime/asm_amd64.s:1598 (0x4704e0)

I enabled the server in the UI (checked the checkbox) and resubmitted diagnostics
Logs have been submitted as 52e00a94-a672-4741-860c-7216c4140af2

Did almost the same thing again, restoring from the same backup, but this time I disabled the DVR before restoring. Crashed again. Enabled the DVR in the web UI and it's working again.
Logs have been submitted as b8130674-b85a-46ce-a34d-bc55031e7f9c

1 Like

This should handle it.

No more panic, but after the restore the DVR is disabled

2023/10/18 16:53:45.808716 [SYS] Downloading new version v2023.10.18.2257
2023/10/18 16:53:53.536077 [SYS] Update downloaded and verified successfully.
2023/10/18 16:53:53.551987 [SYS] Created database snapshot: backup-20231018.235353
2023/10/18 16:53:53.552212 [SYS] Removing old backup backup-20230906.225529
2023/10/18 16:53:53.584418 [SYS] Shutting down for upgrade from v2023.10.13.0514 to v2023.10.18.2257
2023/10/18 16:53:53.585827 [DVR] Recording engine stopped.
2023/10/18 16:53:54.700699 [SYS] Starting Channels DVR v2023.10.18.2257 (linux-x86_64 pid:7) in /channels-dvr/data
2023/10/18 16:53:54.709588 [SYS] Started HTTP Server on 8089
2023/10/18 16:53:55.664338 [DVR] Recording engine started in /shares/dvr
2023/10/18 16:53:55.664736 [SYS] Removing old update 2023.09.10.0741
2023/10/18 16:53:55.672115 [SYS] Created database snapshot: backup-20231018.235355
2023/10/18 16:53:55.672328 [SYS] Removing old backup backup-20230906.225531
2023/10/18 16:54:05.652090 [IDX] Pruned 0 expired airings from X-TVE in 1.086032ms.
2023/10/18 16:57:10.106302 [DVR] Recording engine stopped.
2023/10/18 16:57:10.721603 [DVR] Restored backup backup-20231018.211313 from /shares/dvr/Database


So it looks like the panic was unrelated to the issue you're having. The server does not default to enabled after a restore? Are you able to manually enable it?

Yes. But I wouldn't expect other users to know that or look for it.

Is this a regression (change in behavior) from how it has been, or just something that you're raising as a usability issue?

Well, I don't use restore that often, but the last few times I remember using it the DVR started after the restore.

I do remember if it's a fresh install and you go right to restore, the DVR path hasn't been defined, so you have to pick a path. But in this case the DVR path is defined and the DVR was enabled when I ran the restore. Doing the restore turned it off.

Thanks for raising this (and the panic). It could be that during our rework of the UI we missed a step in how it should operate. We'll check it out.

1 Like

Yep, this is fall out from the new UI change that happened. Settings are no longer the first page shown, so it’s not obvious.

Additionally, disabling the DVR no longer force shows the onboarding wizard.

So this is just something that needs to be worked through. Good catch y’all!

1 Like

The last time I restored was about 6 months ago and it was not clean, possibly a panic. I ignored that, reconnected and everything looked good so I moved on.