cappapp 7 Posted February 15, 2022 Posted February 15, 2022 (edited) Have an issue with metadata with media on a 2nd Unraid server. Emby can detect and play the media, but when I refresh metadata I get this error below; *** Error Report *** Version: 4.6.7.0 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 5.10.28-Unraid (root@Develop) (gcc (GCC) 9.3.0, GNU ld version 2.33.1-slack15) #1 SMP Wed Apr 7 08:23:18 PDT 2021 Framework: .NET Core 3.1.21 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 24 Data path: /config Application path: /system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/mnt/remotes/192.168.0.8_Media/TV Shows/Buffy The Vampire Slayer/tvshow.nfo' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.FileStream.WriteNative(ReadOnlySpan`1 source) at System.IO.FileStream.WriteSpan(ReadOnlySpan`1 source) at System.IO.FileStream.<>c.<WriteAsyncInternal>b__110_0(Task t, Object s) at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location where exception was thrown --- at NfoMetadata.Savers.BaseNfoSaver.SaveToFile(Stream stream, String path, LibraryOptions libraryOptions, CancellationToken cancellationToken) at NfoMetadata.Savers.BaseNfoSaver.Save(BaseItem item, LibraryOptions libraryOptions, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, LibraryOptions libraryOptions, ItemUpdateType updateType, IMetadataSaver[] savers, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void WriteNative(System.ReadOnlySpan`1[System.Byte]) InnerException: System.IO.IOException: Permission denied Source: TargetSite: 2022-02-15 12:39:16.995 Error ProviderManager: Error in metadata saver These are the permissions setup on that share; Edited February 15, 2022 by cappapp mask
Happy2Play 9780 Posted February 15, 2022 Posted February 15, 2022 Does this topic help? File Permissions Guide for New Linux Users
cappapp 7 Posted February 15, 2022 Author Posted February 15, 2022 (edited) No. I did check it out already. But looks like all permissions are enabled for this shared. I can also create a directory using terminal in emby docker; And Sonarr also points to that same path to the 2nd server from the same server Emby is on and seems to have no issue. Can I tell emby to create some other file manually that's not meta data? Cheers Edited February 15, 2022 by cappapp mask
Q-Droid 989 Posted February 15, 2022 Posted February 15, 2022 What type of filesystem is /mnt/remotes/192.168.0.8_Media?
Q-Droid 989 Posted February 15, 2022 Posted February 15, 2022 Are these NFS of SMB shares? For NFS it helps to match UIDs/GIDs between between server and client for the users/groups using the shares. Then ownership looks consistent and easier to manage permissions. For SMB there are cifs mount options needed to work around some .Net permissions errors for certain file/directory operations. Example here:
cappapp 7 Posted February 15, 2022 Author Posted February 15, 2022 Ah OK. I can potentially see my issue then. I think the Unassigned Devices plugin on Unraid has them mapped as SMB. But I think I can recreate it as NFS instead. Thanks. I have something to try after work. Will update after testing.
cappapp 7 Posted February 16, 2022 Author Posted February 16, 2022 I couldn't wait... Remoted in and created the new NFS map in Unraid and Updated the path in the Docker and replaced the location in Emby library. Looks like meta data is updating now Thanks heaps. 1
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