Server Wont Start after Upgrade

Just upgraded 4.18 and now the server wont start! Found this in the log:

2023/04/19 06:01:36.272159 [TVE] action=auth_domain domain=www.foxsports.com

2023/04/19 06:01:36.272159 [TVE] action=foxsportsauth step=start

2023/04/19 06:01:39.232006 [TVE] action=wait_for_page

2023/04/19 06:01:41.674984 [TVE] action=error_response type=Media error=net::ERR_ABORTED url=https://apv-static.minute.ly/videos/v-7461279b-f82e-4145-2686074-8d14-72077f0ac80d-s144.29-151.72l.mp4 ip=205.185.216.10

panic: runtime error: invalid memory address or nil pointer dereference

[signal 0xc0000005 code=0x0 addr=0x60 pc=0xb8f674]

goroutine 30 [running]:

net/url.(*URL).Query(0xc0005de820?)

net/url/url.go:1118 +0x14

github.com/fancybits/channels-server/tve.(*authState).eventListener(0xc0000a6a20, {0x2666c80?, 0xc000ae95f0?})

github.com/fancybits/channels-server/tve/auth.go:1321 +0xe14

github.com/chromedp/chromedp.runListeners({0xc000e5ec60?, 0xc000dfdf10?, 0x2e?}, {0x2666c80, 0xc000ae95f0})

[github.com/chromedp/[email protected]/util.go:130](mailto:github.com/chromedp/[email protected]/util.go:130) +0x1a4

github.com/chromedp/chromedp.(*Target).run.func1()

[github.com/chromedp/[email protected]/target.go:130](mailto:github.com/chromedp/[email protected]/target.go:130) +0x2c5

created by github.com/chromedp/chromedp.(*Target).run

[github.com/chromedp/[email protected]/target.go:105](mailto:github.com/chromedp/[email protected]/target.go:105) +0xda

I have the same errors in my log. I upgraded last night and then today I removed TVE and re-added but now it just crashes when I do.

Update to prerelease for the fix.

That fixed it for me. Thanks again!

1 Like

I am still having the same issue ever after going to prerelease v2023.01.23.1746 and even the prior version. Any recommendations on a particular version? I'm running a manually installed jail on FreeNAS/FreeBSD

2023/04/24 21:13:52.103190 [SYS] Starting Channels DVR v2023.01.23.1746 (freebsd-x86_64 pid:56211) in /usr/local/channels-d
vr/data
2023/04/24 21:13:52.114325 [SYS] Started HTTP Server on 8089
2023/04/24 21:13:56.205863 [TVE] action=error_response type=Other error=net::ERR_UNKNOWN_URL_SCHEME url=
2023/04/24 21:13:56.206450 [TVE] action=version product=HeadlessChrome/76.0.3809.132 jsVersion=7.6.303.29 protocol=1.3 revi
sion=@fd1acc410994a7a68ac25bc77513d443f3130860
2023/04/24 21:13:56.206822 [TVE] action=navigate url=https://www.foxsports.com/live
2023/04/24 21:13:56.207313 [TVE] action=request type=Document method=GET url=https://www.foxsports.com/live
2023/04/24 21:13:56.207329 [TVE] action=auth_domain domain=www.foxsports.com
2023/04/24 21:13:56.207335 [TVE] action=foxsportsauth step=start
2023/04/24 21:13:56.298359 [TVE] action=wait_for_page
2023/04/24 21:13:58.686269 [TVE] action=error_response type=Media error=net::ERR_ABORTED url=https://apv-static.minute.ly/v
ideos/v-56778649-34bc-4f6a-2699340-ad03-bc42d885f433-s67.23-76.4l.mp4
2023/04/24 21:13:58.816159 [TVE] action=exception err=&runtime.ExceptionDetails{ExceptionID:1, Text:"Uncaught", LineNumber:
0, ColumnNumber:3786, ScriptID:"115", URL:"https://cdn.segment.com/next-integrations/actions/amplitude-plugins/90c229b9851d
2c04fd70.js", StackTrace:(*runtime.StackTrace)(nil), Exception:(*runtime.RemoteObject)(0xc000db7d40), ExecutionContextID:2,
 ExceptionMetaData:easyjson.RawMessage(nil)} value=SyntaxError: Unexpected token .
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x17d21b4]

What freebsd version?

You need DVR 4.20 but it requires freebsd 12+

1 Like

I'm running FreeNas 11.3 U5 but it worked fine until the latest update. I tried to go back the previous version and it failed as well. You can see that the failures started with the upgrade from v2023.01.23.1746 to v2023.04.20.0310. Any suggestions?

2023/04/20 01:48:11.247253 [SYS] Downloading new version v2023.04.20.0310
2023/04/20 01:48:17.873485 [SYS] Update downloaded and verified successfully.
2023/04/20 01:48:17.902246 [SYS] Created database snapshot: backup-20230420.054817
2023/04/20 01:48:17.902412 [SYS] Removing old backup backup-20230322.014759
2023/04/20 01:48:17.934749 [SYS] Shutting down for upgrade from v2023.01.23.1746 to v2023.04.20.0310
2023/04/20 01:48:17.934991 [SYS] Bonjour service stopped.
2023/04/20 01:48:17.976225 [DVR] Recording engine stopped.
runtime: kevent failed with 78
fatal error: runtime: kevent failed

goroutine 1 [running, locked to thread]:
runtime.throw({0x674b78?, 0xc0001bd750?})
        runtime/panic.go:1047 +0x5d fp=0xc0001bd6f8 sp=0xc0001bd6c8 pc=0x169955d
runtime.netpollinit()
        runtime/netpoll_kqueue.go:44 +0x185 fp=0xc0001bd7a0 sp=0xc0001bd6f8 pc=0x16956c5
runtime.netpollGenericInit()
        runtime/netpoll.go:197 +0x3b fp=0xc0001bd7b8 sp=0xc0001bd7a0 pc=0x1694cbb
internal/poll.runtime_pollServerInit()
        runtime/netpoll.go:189 +0x17 fp=0xc0001bd7c8 sp=0xc0001bd7b8 pc=0x16c88d7

@tmm1 Any recommendations on my issue above?

Can you upgrade to freebsd 12?

I can eventually, but am trying to get running again quickly. Were there any other changes that occurred with the upgrade that would prevent me from running the previous version?

You're stuck between two bugs. Let me push a new prerelease with freebsd 11 compat

You can run this in the existing install (above latest) to download the prerelease:

curl -s https://getchannels.com/dvr/setup.sh | env DVR_VERSION=2023.04.27.2253 DOWNLOAD_ONLY=1 sh

Thanks so much. My family has been missing Channels.

I'm back up and running with the prerelease.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.