Warning - Synology DSM7

That will work. Although posts from other users indicate that the existing package will work after the update to DSM7, so the removal before updating isn't strictly necessary

  1. Back up current data
    Backup your Channels database

  2. Uninstall Channels DVR Server
    Yes

  3. Upgrade DSM 6.x to DSM 7
    Yup

  4. Install DSM 7-compatible Channels DVR Server
    Yes, it will install in a different directory

  5. Import saved Channels data
    Yes, just do a restore from the database backup you made

1 Like

Correct. If you simply upgrade DSM, Channels DVR will continue to work and nothing is strictly required.

To migrate, you would roughly follow https://getchannels.com/docs/articles/how-to/migrate-dvr-to-new-computer/

  1. save backup
  2. shut down dvr
  3. uninstall dvr package
  4. upgrade dsm 7
  5. install new package
  6. grant r/w permissions to old share for new "system internal user" named channels
  7. visit x:8089/restore to restore the old backup from the old share

Note that the new package will automatically create a share called ChannelsDVR and is configured to use that by default on a fresh install.

5 Likes

Dumb question, but if this is true then why uninstall/reinstall?

  1. To ensure compatibility with DSM7, going forward, and future updates/upgrades
  2. To stop running Channels as user/group root/root, which is a Bad Thing
1 Like

I went through this process tonight and everything went really smooth. Just one thing I would add. Also be sure to add the “channels” user with read/write permissions on any of your import directories as well. I didn’t do that initially and Channels couldn’t read the files when I tried to play any. Easy fix.

Also, one question. I assume if we didn’t end up using the “ChannelsDVR” share that the installer created, it’s safe to delete it?

1 Like

Yes safe to delete that share if you're not using it.

So, instead of doing a backup & restore, you can instead simply point the new install to /volume1/channels-dvr if you want (after recursively fixing user and group ownerships)?

You have to restore in order for your old content and settings to show up. Otherwise the new install is empty.

1 Like

When you do the restore it remembers the path you were using. You could change it at that point if you wanted to, but I didn’t see the need. So at the end of the day everything is identical for me. Same paths, etc. Channels is just running with a different user and I had to manually grant that user permission to my already existing share and import directories.

2 Likes

So I installed the new package on DSM7, gave the new internal channels user permissions on my old ChannelsDVR folder, restored my database, and pointed ChannelsDVR at my old share. I then tried to delete the new ChannelsDVR share that was created when installing the new package, but I received an error message that it couldn't be deleted while ChannelsDVR is running. So I stopped it, deleted it, and then tried to run the package again but it wasn't able to start so I had to reinstall the package and start over. Am I missing a step, or is ChannelsDVR relying on that new share in some way?

The share is created whenever the package is installed. We simply ask the OS to do it in the package requirements. So perhaps DSM7 has some internal state where it thinks we absolutely need it and is not letting you remove it?

Just tried again, and DSM7 is definitely preventing me from deleting the share while the ChannelsDVR package is running. If I stop the package and delete it, then the package won't run. Not a big deal, but just an FYI. Otherwise, Channels is running great on DSM7! Thanks!

I must confess that I completely forgot to try and delete the folder Channels creates automatically. I’ll give it a try and see if I can confirm the findings.

Help! I have installed DSM7 and am trying to restore Channels, but I do not see a user named channels. Are you suggesting to create one, or should it already be there? And if we must create one, how/where?

I figured it out. For those who might have trouble, here are instructions:

  1. Go to Control Panel > Shared Folder
  2. Select the folder where your previous Channels installation stored video
  3. Click Edit
  4. Click Permissions
  5. From the drop-down, select System internal user
  6. Locate "channels" in the list, and check the Read/Write checkbox.
  7. Click Save
7 Likes

Has anyone had any luck deleting the ChannelsDVR share? @ahintz? @Macnbaish?

I still haven’t tried myself, life has been hectic and with the issues the other user had I am hesitant to mess with it…

I'm still running all mine in Docker Containers.

The shared folder cannot be removed without modifying the Channels DVR Synology package.

According to the Synology DSM 7.0 3rd-Party Package Developer Guide
https://www.synology.com/en-us/support/developer#tool

Data Share lifecycle timing is FROM_ENABLE_TO_POSTUNINST
The Data Share (shared folder ChannelsDVR) specified in conf/resources
Will be created (if it doesn't exist) before the package starts for the first time and is maintained until after the package is uninstalled. The package manager will not delete the shared folder, since user data may exist there.

Also, since 7.0-41201, Synology package center will create a symlink under /var/packages/[package_id]/shares/ named by share folder pointing to share folder path. So also look for a symlink to the shared folder /volume1/ChannelsDVR

@tmm1 Is this something that can be modified in a future iteration of the spk?