jonwolds 3 Posted August 24, 2021 Share Posted August 24, 2021 (edited) Hi, All permissions for emby are working fine except for open subtitles which cannot write to my movie folder. If i download subtitles through the meta data manager they work. 1) the emby user has full control of the movie folder this is also inherited to all subfolders Im totally out of ideas and am now working on the basis that maybe because the emby service account is called "emby" and not "embysvr" open subtitles has an issue with that. Screenshots below. I've been digging into this for hours so would really appreciate some support. Thanks Edited August 24, 2021 by jonwolds Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 24, 2021 Share Posted August 24, 2021 DSM 7 doesn't use those permissions. You need to modify the system internal emby user and give it read/write access to the share. 1 Link to comment Share on other sites More sharing options...
jonwolds 3 Posted August 24, 2021 Author Share Posted August 24, 2021 Apologies, I forgot to include that screengrab. It is already set. Thanks Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 24, 2021 Share Posted August 24, 2021 Can you try it again and post a new log? You may need to check to make sure permissions are inherited. Link to comment Share on other sites More sharing options...
jonwolds 3 Posted August 24, 2021 Author Share Posted August 24, 2021 (edited) Log attached. I can confirm permissions are correctly inherited (i.e. i've checked the lower level folder permissions in Synology dsm). I've also removed and re-added permissions and uninstalled/reinstalled opensubtitles. Edited August 24, 2021 by jonwolds Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 24, 2021 Share Posted August 24, 2021 Any chance we can do a remote support session and let me take a look at your permissions? Send me a PM if you want to do this. Link to comment Share on other sites More sharing options...
jonwolds 3 Posted August 25, 2021 Author Share Posted August 25, 2021 (edited) Thanks for the offer of a remote session but if it's ok I'd like to check a few more things first. I'm confident the permissions are set correctly on the system internal user account "emby" and all other functionality is working apart from opensubtitles. There are no issues with subtitle downloads when done from meta data manager. Attached is the view of the folder permissions in WinSCP in case that sheds any light. In Synology the "admin" account is disabled and no permissions are assigned to the guest account. Apart from the emby internal user, permissions are granted via the administrators group (i.e. full permissions). No permissions are granted or denied to the "users" group. Edited August 25, 2021 by jonwolds Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 25, 2021 Share Posted August 25, 2021 I would look at this with File Station on the media folder that would hold the subtitle. Link to comment Share on other sites More sharing options...
jonwolds 3 Posted August 25, 2021 Author Share Posted August 25, 2021 (edited) That's included in the screenshots earlier in the thread. Granting the emby internal account share permissions means the permissions show in file station as inherited right down into the movie name folder (where the Emby logs a permissions error when trying to write a subtitle). On the assumption I have the permissions set correctly is what would be the next step - backup, uninstall, reinstall, restore? It seems very weird that emby adds the subtitle successfully via metadata manager but gets a permissions error using the scheduled task. Edited August 25, 2021 by jonwolds Link to comment Share on other sites More sharing options...
Luke 37116 Posted August 25, 2021 Share Posted August 25, 2021 You may want to go down the folder tree and make sure that no subfolders are overriding the top level permssions. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 25, 2021 Share Posted August 25, 2021 The permissions you have right now with "root"/"root" ownership but no actual permissions given look suspect. Link to comment Share on other sites More sharing options...
jonwolds 3 Posted August 25, 2021 Author Share Posted August 25, 2021 Thanks both for taking a look I think im going to give up for now. Some observations: 1) In DSM tried setting full permissions to everyone nested right through (also checking emby internal account still had read/write on the share in dsm) - no joy 2) Via console I tried setting the owner to my admin user and the group to "users" will full permission set for both (also checking emby internal account still had read/write on the share in dsm) - no joy 3) Via console i tried setting the owner to "emby" and the group to "emby" with full permissions set for both (also checking emby internal account still had read/write on the share in dsm) - no joy 4) I double checked that emby will write subtitles to the movie folder via metadata manager and not through the scheduled task. If it works via metadata manager that must mean permissions are correctly set? Link to comment Share on other sites More sharing options...
jonwolds 3 Posted August 26, 2021 Author Share Posted August 26, 2021 Tried a complete uninstall/reinstall and deleted the system files on synology but the issue is still there. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 26, 2021 Share Posted August 26, 2021 I wouldn't expect that to help in any way. This is a permission (lack of) problem on the media folders based on what you've shown in pics. Link to comment Share on other sites More sharing options...
jonwolds 3 Posted August 26, 2021 Author Share Posted August 26, 2021 True. I also deleted the emby internal account as part of the uninstall as I thought that might help but it didn’t. Link to comment Share on other sites More sharing options...
jonwolds 3 Posted August 27, 2021 Author Share Posted August 27, 2021 (edited) I've found the root cause and think it's a bug. I moved over to a docker container and was still getting the permissions denied error (whether running the container under root or under my account). I played around with a few things and then noticed in the log that the permissions denied error was only occurring for certain movies. I went to metadata manager and tried to download subtitles manually. The movie with the permissions error returned no subtitle matches, the movie with no permissions error returned subtitle matches. Conclusion - if open subtitles cannot find a matching subtitle it erroneously enters a "permissions denied" entry into the emby log when running as a scheduled task. Edited August 27, 2021 by jonwolds Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 27, 2021 Share Posted August 27, 2021 That was not what I thought this thread was about. That's the problem with log fragments instead of posting the full log as we can't see what was actually taking place. Link to comment Share on other sites More sharing options...
Luke 37116 Posted August 31, 2021 Share Posted August 31, 2021 On 8/27/2021 at 2:59 AM, jonwolds said: I've found the root cause and think it's a bug. I moved over to a docker container and was still getting the permissions denied error (whether running the container under root or under my account). I played around with a few things and then noticed in the log that the permissions denied error was only occurring for certain movies. I went to metadata manager and tried to download subtitles manually. The movie with the permissions error returned no subtitle matches, the movie with no permissions error returned subtitle matches. Conclusion - if open subtitles cannot find a matching subtitle it erroneously enters a "permissions denied" entry into the emby log when running as a scheduled task. @jonwolds the error happens on saving to the file system, which wouldn't happen if there were no subtitle results. So that results out that theory, but thanks for the investigation. Link to comment Share on other sites More sharing options...
jonwolds 3 Posted August 31, 2021 Author Share Posted August 31, 2021 I’m at a loss to see how it could be my local permissions when the same error occurs in the same folders when running Emby as a docker container (running as root or my admin account) or as.a package. Emby finds those movies and can play them, it just shows the permissions error on a subtitle save. It’s saving subtitles to other movies (when subtitles are matched) with identical permissions set. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted August 31, 2021 Share Posted August 31, 2021 Could we do a remote support session so I can get a look at your permissions and setup? Link to comment Share on other sites More sharing options...
Luke 37116 Posted September 12, 2021 Share Posted September 12, 2021 @jonwolds? Link to comment Share on other sites More sharing options...
jonwolds 3 Posted September 12, 2021 Author Share Posted September 12, 2021 Hi, I would prefer not to run a remote session if that’s ok. From my end everything is working as needed I.e where subs exist they are being downloaded. 1 Link to comment Share on other sites More sharing options...
Luke 37116 Posted September 21, 2021 Share Posted September 21, 2021 Are you still running into this? Link to comment Share on other sites More sharing options...
jonwolds 3 Posted September 21, 2021 Author Share Posted September 21, 2021 Hi running the latest beta and it’s still showing the error in the log. Happy to close the thread as it’s only happening when there are no subtitle matches. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now