Best way to ensure that Channels DVR is up and running at all times

You can set Channels to run as a service or to automatically start when the PC powers. That way anytime the PC reboots, channels will be active.

There is also a setting you can change in your PC's BIOS. Look for a setting named “Restore on AC/Power Loss” or “AC Power Recovery” or "After Power Loss" and make sure it is set to Power On.

If there is a power outage, you PC will start back up when power is restored. And Channels will start with the PC. :grinning:

2 Likes

thank you very much, these are the type of things i was looking for.
I didn't see upfront where it was that i "set as service" or automatically start, can you point me in that direction, as for the computer Bios, I'll have to hunt that down myself

Thank you

Assuming Windows.

From Channels — Channels DVR Server

Install Notes

The service starts up automatically on login. Run netplwiz.exe to enable auto login and ensure the service is always running after a reboot.

When you click SetupChannelDVR.exe, you get the option to start Channels or run it as a service.
Channels - Service

If ChannelsDVR is already running, find the icon in your task bar and right-click it. You will get the option to "Run at Login"
Channels Run At Login

1 Like

thank you, I do have "run at log in" checked

2 Likes

You should run it as a service if you want to maximize the probability that it will run all the time.

See this post and the one that follows it:

(Maybe read the whole thread.)

When it is running as a service there won't be any icon in the notification area.

1 Like

It would be pretty easy to create a batch file that occasionally checks to see if Channels DVR is running and starts it if it is found to be down. A better solution would use wget to retrieve a page from the Channels DVR web server. If the retrieved file fails, the batch file could restart the program or service. The second option has the advantage of working when Channels is found to be running but unresponsive.

2 Likes

One issue: if you install Channels as a service for windows, you need to use workarounds if any of your sources are network mounts.

Secondly: I am not certain if this applies to Windows the same as *nix, but sometimes the service won't start until you have actually logged in. (On Linux systems with SystemD, you can use the --linger option when starting the service, but I am not certain if there is a Win or BSD equivalent.)

2 Likes

My Windows PC is a dedicated server so it is set to automatically login a local account on power up.
https://answers.microsoft.com/en-us/windows/forum/all/how-to-login-automatically-to-windows-11/c0e9301e-392e-445a-a5cb-f44d00289715

My HTPC is really only used as a "blu-ray recorder" and subsequent editing.
I do appreciate the replies, but am confused from pervious responses if "run as service" (JTANDERSON post) or the alternative (chDVRuser/network guy posts).

1 Like

"Best way to ensure that Channels DVR is up and running at all times"

The real answer to that is to use a dedicated appliance for the DVR server, not a computer you may turn off or use for other purposes. (and certainly not Windows OS as that one is the lowest on the totem pole for reliability of 100% uptime) I have a always on Win 11 box, that is always going offline in some fashion or make me have to go in a touch on something to restore functions, no matter how much u tweak the OS

The Channels Image and a Raspberry Pi4b is perfect and sole purpose is to be a Channels DVR server. Uses maybe 3 watts of power to and is always on. Just flash the image to a usb drive, (ssd for best performance, plug into usb 3 port on the Pi, boots up in few secs.

Downsides of the Pi is that is can only handle one remote transcode stream, and comskip, when that runs, is cpu intensive and will take longer than using a "normal pc". But if you are the only user, Pi is great. If you have multi-users, multi remote streaming etc, then Pi is not powerful enough .

1 Like

thank you for the thoughts,
my HTPC is dedicated to and only used for:
viewing/recording, editing and burning of HD material

I have been running a "media" server on a Windows 7 then Windows 11 PC for over a decade with no problems. With Windows 11, I just check when new updates are being released and ensure that I am there when they are installed.

1 Like

Honestly, it does not make that much of a difference if all of your media is on the same PC.

I use the "Run at Login" method. Just today, we had a power outage for a couple of hours. The PC is on a UPS, but that was only good for an hour. When the power cam back on:

  • My PC Powered on (BIOS Setting)
  • Windows automatically logged in
  • ChannelsDVR started

If I was running Channels as a service, I would have had to do the following:

  • BIOS Setting to Power ON PC
  • Create Windows user account and run the service using it (files on my NAS)
  • Set the ChannelsDVR service to automatically start

As long as you have configured everything correctly, both approaches work.

1 Like

This is the right answer. If cost isn't a giant issue, I'd suggest a NAS box. Channels will run on almost any NAS including FreeNAS. I personally run it on a Synology NAS. I have tested it on most other platforms and the NAS is the most stable and most convenient. FreeNAS will run on older PC hardware too, so it can be an inexpensive option.

If Windows update / reboots does still pose an issue or added disruptions despite getting the above settings in place, there’s an LTSC version of Windows (10) that doesn’t install the bloatware (or even Windows store) and it behaves much nicer related to updates, usually only about monthly (unless critical vulnerability).

The 2019 version also has 10 years of promised update support. Can have it set to update overnight (or wait on you to permit it etc) and with the above settings to autorestart services you should be good to go. Very NAS like behavior, and then you can continue to take advantage of faster x86 processor like with the HTPC concept, ie the PC you have.

Just FYI, The newer lower clocked versions of I3 or I5 Intel 8/9/10th Gen CPUs are also great for this purpose (AND speedy for disc rips and those sorts of occasional use things you mentioned). Windows in this config makes a rather shockingly well behaved and zippy “NAS” (less reboots than my QNAP lately…) and those downclocked newer CPUs are nearly as efficient as NAS boxes power wise. I then use built in RDP (Remote Desktop) to log in via browser and of course Windows has that working super smooth, in case you need to do Windows Appliance type things, IE can then set the PC out of the way, no monitor, just like a NAS.

I also run my PlayON (3rd party) service on that PC (can download subscription service movies/shows to PC by using your streaming service subscription logins). Works great with Channels.

I have an i7, and i have decided to only run updates early Tuesday morning, so i know to check up on Tuesday.

though for whatever reason, my last update failed and seem to have issues doing a back up... :expressionless:

Macrium has a great (with free single user version) backup for Windows. Have also found it nicely compatible with the "Windows NAS box" concept. set and forget configurations to whatever level of full / incremental backup you want. Macrium Software | Reflect Free Edition. Is smart to also use their included feature to create a rescue disk (don't forget to use the option to include any drivers your hardware has installed onto the rescue disk). Then total boot disk failure is also fairly easily solved. Can then pitch the bloatware laden rescue disks that came with your retail PC :slight_smile:

Oh, and for any other OS "roll your own" NAS boxes (most of which are Linux), Redo is really nice, esp. since this last release. http://redorescue.com/

Just a note, and sorry to post to a old thread, but Macrium Reflect Free edition was discontinued a while ago and no longer available.