Hi,
Thought this would be helpful to anyone using a Mac mini for Channels - perhaps it could be added to the knowledge base? When I first installed Channels, I was having problems with the server missing recordings due to a reboot or power outage. This was annoying, particularly when I as out of town or didn’t notice that recordings weren’t happening.
Anyway, I finally managed to get things set up in a more robust manner - with Channels recording after a reboot without logging in, and the system rebooting after a power outage on its own. This wasn't the easiest to figure out - I did so by trial and error and scouring the forum archives for fixes to the various issues. To get everything working, I ended up doing the following:
- Set the system to restart automatically after a power failure - by default, this system remains powered off, and can only be powered on by physically pressing the power button. To do this, go to Apple menu-System Preference-Energy Saver and check “Start up automatically after a power failure”.
If you set the system to auto login, step 1 is sufficient. However, this isn’t ideal from a security standpoint. It is possible to set up Channels DVR such that it works after reboot without auto login, though to do this the following extra steps are required:
- Install Channels DVR as a system service. By default, Channels DVR is installed as a user service, which will only become active after logging in as the user who installed Channels. To uninstall the user service and install as a system service, run the following commands in Terminal:
~/Library/Application\ Support/ChannelsDVR/uninstall.sh ~/Library/Application\ Support/ChannelsDVR/install.sh --system
You may also need to update the DVR to the latest version (possibly pre-release), as there was a bug running as a system service in previous versions.
- If using an external drive for recordings, you will need to do the following:
a. Set external drives to automount without user login with the following command:
sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true
b. Give the channels-dvr service full disk access. To do this, go to Apple Menu-System Preferences-Security & Privacy, click on Full Disk Access, click the lock to unlock the settings, and click the checkmark next to channels-dvr in the list.
While it is possible to give it permission for just removable volumes in Security & Privacy - Files & Folders, for some reason this is insufficient for the service to be able to write external drives when not logged in. Perhaps this is a bug somewhere?