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:
- Go to Control Panel > Shared Folder
- Select the folder where your previous Channels installation stored video
- Click Edit
- Click Permissions
- From the drop-down, select System internal user
- Locate "channels" in the list, and check the Read/Write checkbox.
- Click Save
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
Is there anything in this directory that takes up any real space? If not: Why worry about it?
It makes those of us with slight (or not so slight) OCD twitch.
I'm pretty darn OCD. I probably wouldn't give it a second thought. Some things are worth being OC about. This isn't one of them, IMO.
Or just rename your existing share to ChannelsDVR and restart the package
If you're OCD enough to try this...
I'm able to get it to install without creating the shared folder /volume1/ChannelsDVR.
If you edit the package (it's a tarball, 7-zip works)
and change the conf/resource file from
{
"video-driver": {},
"port-config": "ChannelsDVR.sc",
"data-share": {
"shares": [{
"name": "ChannelsDVR",
"permission": {
"rw": ["channels"]
},
"once": true
}]
}
}
to
{
"video-driver": {},
"port-config": "ChannelsDVR.sc"
}
it will not create the shared folder./volume1/ChannelsDVR.
Update your current install to the latest pre-release version and make a database backup.
Uninstall your existing package.
Install the modified package and choose not to run on install.
Edit your existing shared folder you want to migrate from and give system internal user channels r/w access to it.
Start Channels DVR, update it to the latest pre-release and then restore, picking your existing share to restore from.
Seems like a lot of effort for something that literally does not matter
Good news - You don't have to do it.
For me personally, I don't want an extra unused share folder on my Synology. No, it doesn't "matter" but I still don't like it and would prefer to have the option to remove it.
Yeah, it's a lot of effort to edit a file.
All the rest of the steps have to be done anyway if your were uninstalling the old package and installing the new package.
The only real extra effort was in me trying to figure this out on my own and writing it up to share.
Thanks for going through all of the effort to figure it out! I am going to play it safe and wait a week or so to see how it works out for you. Just in case your Synology starts smoking
Famous last words "What could possibly go wrong?"
I wouldn't mind adopting the new data-share directory. Is there a step-by-step for moving the data from the current location to this new spot?