DVR not starting after upgrade (macOS)

Not sure if my issue is the same as the one in this thread. I’m running it on a new mac-mini with 10.12.3, and the “recording engine” is not restarting after updates:

2017/03/25 06:57:36 [DVR] Deleting expired job 1490434200-1
2017/03/25 06:57:36 [SYS] Downloading new version v2017.03.24.2223
2017/03/25 06:57:45 [SYS] Update downloaded and verified successfully.
2017/03/25 06:57:45 [SYS] Shutting down for upgrade from v2017.03.21.0415 to v2017.03.24.2223
2017/03/25 06:57:45 [DVR] Recording engine stopped.

The above happened this morning - I found the engine had stopped, so I restarted it (about the third or fourth time I’ve had do that). It had stopped on 3/21 after updating to 2017.02.21.0415. I restarted and it updated to 2017.03.24.2223, which it is running now.

How are you restarting it?

From the command line.

Running what command?

Sorry, that was a stupid answer, huh?

I’m running “channels-dvr”, not putting it in the background - leaving it run in the foreground. No arguments, either:

% channels-dvr

Ick. That binary has to be run from a specific directory… you probably have two different sets of databases now, one in the data directory and another wherever you were running the binary from manually.

Did you change directories before running it manually? Presumably you ran ./channels-dvr and not just channels-dvr, because the latter would not work.

Recommend that you stop the foreground process, make sure your most current settings.db and recorder.db are moved into the data folder, then run ./channels-dvr/install.sh to make sure the launchd plists are setup.

After that you should be able to verify the process is setup in the background via:

launchctl list com.getchannels.dvr

Thanks for info, there were two databases, I moved the “current” one to the data directory, shutdown the manually-started instance, and launchctl shows com.getchannels.dvr in its “list” and your list subcommand shows the configuration. It worked perfectly! … Until this morning, that is. launchctl still shows it running and the configuration, but the server is no longer responding.

The log is full of messages - it looks like every 10 seconds, it is restarting, but it appears to fail because:
2017/03/29 06:18:15 [SYS] Starting Channels DVR v2017.03.24.2223 (darwin-x86_64) in /usr/local/channels-dvr/data
2017/03/29 06:18:16 [HDR] Found 1 devices
2017/03/29 06:18:17 [SYS] Started HTTP Server
2017/03/29 06:18:17 cannot open index, metadata missing

Clearly, I screwed up the database(s)! Can you tell me how to fix this or otherwise recreate the databases. I don’t have a problem with losing everything that has been recorded, although I would like to retain the favorite channel settings (I’d rather not have to go through 73 channels again).

Thanks for your help.

Go ahead and delete the .airings and .groups directories under data/

You shouldn’t lose anything, just guide data which will re-download.

That did it!
Thanks a lot, and we are really liking this software.

1 Like