Jump to content

Permission denied for "TV Theme Songs" plugin when saving songs


Recommended Posts

Posted

Hi,

I got this strange problem, where the TV Theme Songs plugin downloads songs but can't save them in the media folder.

System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/run/s6-rc:s6-rc-init:lfDlMl/servicedirs/svc-emby/smb:/192.168.170.29/usbshare1-2/NVIDIA_SHIELD/Serien' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at ThemeSongs.Search.LocalThemeSongDownloader.DownloadThemeSongForItem(BaseItem item, CancellationToken cancellationToken, ILibraryManager libraryManager)
Source: System.Private.CoreLib
TargetSite: Void CreateDirectory(System.String)
InnerException: System.IO.IOException: Permission denied

I run emby in docker in a ubuntuserver-vm on proxmox. The media is stored on a Synology DS218+. I checked the permissions on the NAS. The most proposed solution for this kind of problem I could find was to change permissions for the internal emby user on the NAS, but in my case it does not exists (because I don't have emby running on the NAS). I created a normal user on the NAS with read/write permissions for the media folders which is used for the library connection via smb from emby to the NAS.

Does anybody have an idea what the problem could be? I attached the server log after I rebooted the server and started the TV Theme Songs task.

Thanks in advance!

embyserver.txt

Posted

Hi, I don’t know what the issue is but if you can hunt down the permissions problem then this should work.

 

Posted

Not sure if this will help:

 

Posted
2 hours ago, Luke said:

Not sure if this will help:

 

Hi, thanks for the quick reply!
Well I have no idea where these permission problems could come from. The solution to change permissions for the emby user on DSM doesn't apply here, because the emby server is not running on the DSM and therefore there is no emby internal user on the DSM

Posted
1 hour ago, marcelpe said:

Hi, thanks for the quick reply!
Well I have no idea where these permission problems could come from. The solution to change permissions for the emby user on DSM doesn't apply here, because the emby server is not running on the DSM and therefore there is no emby internal user on the DSM

Hi, yes this is going to require some persistence on your part because you have three layers of permissions to deal with, from Synology to the Ubuntu system and then the VM.

Posted

HI, did you figure this out?

Posted

Hi,

well not really. But I got it working with a workaround:

I mounted my media folders as nfs-shares to the ubuntu-vm and then mounted the shares in the emby docker container.

Everything is working now. Thanks for your help!

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...