Permission denied creating recording file directory
Added by Steve Black over 7 years ago
Since upgrading Synology DSM to 6.1 and reinstalling TVH 4.1.2437, I am getting a permissions error when recording attempts to create the show directory or recording file. I'm guessing this is related to the new sc-tvheadend-testing user, but I'm not certain. Here are the folders and permissions in play, all unchanged since the upgrades, and all previously working:
Name owner permissions /volume1 root rwxr-xr-x +video root rwxrwxrwx +recordings admin rwxrwxrwx +PVR admin rwxrwxrwx +<show> tvheadend-testing rwxrwxr-x
Here are the log messages from a manual recording attempt for a show not previously recorded:
2017-04-14 09:03:20.542 dvr: entry 6168299d1082dba6fac221031e72a12f "The Young Riders" on "Sony GetTV" starting at 2017-04-14 08:59:00, scheduled for recording by "admin"
2017-04-14 09:03:20.542 dvr: "The Young Riders" on "Sony GetTV" recorder starting
2017-04-14 09:03:20.544 mpegts: 617.028MHz in ATSC-T Network - tuning on HDHomeRun ATSC-T Tuner #0 (192.168.1.139)
2017-04-14 09:03:20.544 tvhdhomerun: tuning to auto:617028615
2017-04-14 09:03:20.651 subscription: 0002: "DVR: The Young Riders" subscribing on channel "Sony GetTV", weight: 300, adapter: "HDHomeRun ATSC-T Tuner #0 (192.168.1.139)", network: "ATSC-T Network", mux: "617.028MHz", service: "Sony GetTV", profile="pass"
2017-04-14 09:03:20.970 dvr: Unable to create dir "/volume1/video/recordings/PVR/The Young Riders": Permission denied
2017-04-14 09:03:20.972 dvr: Recording error: "The Young Riders": Unable to create file
2017-04-14 09:03:20.972 subscription: 0002: "DVR: The Young Riders" unsubscribing from "Sony GetTV"
2017-04-14 09:03:20.988 dvr: "The Young Riders" on "Sony GetTV": End of program: File not created
The one suspicion I have involves the group membership of sc-tvheadend-testing. The legacy user tvheadend-testing is a member of group users, but the new user is not. (I may have added this group manually in the past, but memory fails me.) However, the permissions seem to allow writing for all users in the PVR directory, so I'm not sure if that is relevant.
Replies (3)
RE: Permission denied creating recording file directory - Added by Joe User over 7 years ago
Did you check the ACL permissions in the DSM control panel?
RE: Permission denied creating recording file directory - Added by Steve Black over 7 years ago
The problem with that is that sc-tvheadend-testing is not listed as a user in DSM, presumably because it is a system/nologin user. DSM won't let me add it because it already exists, but it doesn't show up so I can't manage its groups or permissions. With the older version, I have a vague memory of doing some manipulation around this, but I can't recall if that was to make it show up in DSM or just to add it to the Users group, or what. I'm wondering if I need to use whatever the command-line tool is to add it to Users.
RE: Permission denied creating recording file directory - Added by Steve Black over 7 years ago
Or maybe I need to uninstall TVH and remove the tvheadend-testing user before reinstalling? The install script does have some special handling for the LEGACY_USER. Maybe that is causing a problem.