Happy2Play 9780 Posted October 21, 2024 Posted October 21, 2024 You have a permissions issue on your library path so you need to fix the permissions or disable nfo saving option per library options. System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/media/Movies/45 - Jack.Frost.1998.DVDRip.XviD-uTs.nfo' is denied. ---> System.IO.IOException: Permission denied 1
Neminem 1518 Posted October 21, 2024 Posted October 21, 2024 Now you have permission issues with your "Nfo saver" you need to look into. 2024-10-21 10:46:28.085 Error ProviderManager: Error in metadata saver *** Error Report *** Version: 4.8.10.0 Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /config -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3 Operating system: Linux version 6.1.106-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Wed Aug 21 23:36:07 PDT 2024 Framework: .NET 6.0.33 OS/Process: x64/x64 Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.33/System.Private.CoreLib.dll Processor count: 56 Data path: /config Application path: /usr/lib/emby-server System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/media/Movies/Allegiant.2016.720p.WEB-DL.999MB.ShAaNiG.nfo' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize) at System.IO.FileStream..ctor(String path, FileStreamOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, Int32 bufferSize, FileOpenOptions fileOpenOptions, Int64 preAllocationSize) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, Boolean isAsync) 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 Emby.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, LibraryOptions libraryOptions, ItemUpdateType updateType, IMetadataSaver[] savers, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Microsoft.Win32.SafeHandles.SafeFileHandle Open(System.String, OpenFlags, Int32) InnerException: System.IO.IOException: Permission denied Source: TargetSite: 1
kysdaddy 0 Posted October 21, 2024 Author Posted October 21, 2024 Wow, this keeps getting worse. I need to ask you to talk to me like I'm three. Do I need Metadata savers Nfo checked? I come from plex where these settings are limited. I have no idea what Nfo is. I have very little interest in the images etc. All I want is to be able to identify the movie and to play the movie. Is Nfo adding complications?
kysdaddy 0 Posted October 21, 2024 Author Posted October 21, 2024 21 minutes ago, Happy2Play said: You have a permissions issue on your library path so you need to fix the permissions or disable nfo saving option per library options. System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/media/Movies/45 - Jack.Frost.1998.DVDRip.XviD-uTs.nfo' is denied. ---> System.IO.IOException: Permission denied Permissions to the movie are correct, not to the metadata, for some reason the folder ownership is no cascading. I have the share setting in unraid for the Movies Share set to: Movies nobody drwxrwxrwx <FOLDER> 2024-10-15 14:32 yet inside the individual folders the metadata owner is chas fanart.jpg chas -rw-rw-rw- 224 KB 2024-07-21 15:09 disk20 ... movie.nfo chas -rw-rw-rw- 16.3 KB 2024-07-21 15:03 disk19 ... poster.jpg chas -rw-rw-rw- 318 KB 2024-07-21 15:09 I have no idea where that setting is coming from, chas is my user but I do not know where to change the setting, I assumed (incorrectly) that the ownership and permissions cascaded from the parent folder Media
Happy2Play 9780 Posted October 21, 2024 Posted October 21, 2024 3 minutes ago, kysdaddy said: Wow, this keeps getting worse. I need to ask you to talk to me like I'm three. Do I need Metadata savers Nfo checked? I come from plex where these settings are limited. I have no idea what Nfo is. I have very little interest in the images etc. All I want is to be able to identify the movie and to play the movie. Is Nfo adding complications? The NFO gives you ability to store all the medias metadata with the files and can be reused providing ie existing metadata if say you need to rebuild the library. VS If you do not write nfo metadata all info is only recorded in the database and should you ever move media or anything ever happens to the db you wll loose all info and have to be refetched from provider. In the end it is still really a user option as some users don't have write access to the media they are using. So the biggest pro is if you customized metadata, you would always have it or if you move media around or have to rebuild your server.
Happy2Play 9780 Posted October 21, 2024 Posted October 21, 2024 1 minute ago, kysdaddy said: I have no idea where that setting is coming from, chas is my user but I do not know where to change the setting, I assumed (incorrectly) that the ownership and permissions cascaded from the parent folder Media Sorry a fellow docker user will have to comment as all I can do is link to the Linux permissions topic.
kysdaddy 0 Posted October 21, 2024 Author Posted October 21, 2024 1 minute ago, Happy2Play said: The NFO gives you ability to store all the medias metadata with the files and can be reused providing ie existing metadata if say you need to rebuild the library. VS If you do not write nfo metadata all info is only recorded in the database and should you ever move media or anything ever happens to the db you wll loose all info and have to be refetched from provider. In the end it is still really a user option as some users don't have write access to the media they are using. So the biggest pro is if you customized metadata, you would always have it or if you move media around or have to rebuild your server. If I am reading this correctly. I can uncheck the nfo and not save all of the metadata separately on my system and it will only be an issue if I move or change the media. Correct
Happy2Play 9780 Posted October 21, 2024 Posted October 21, 2024 2 minutes ago, kysdaddy said: If I am reading this correctly. I can uncheck the nfo and not save all of the metadata separately on my system and it will only be an issue if I move or change the media. Correct Yes as the info gets deleted from the database, then readded from its new location. As I have mine disabled because I still use xml metadata so anything not in my xml metadata Emby only writes to the database. 1
Neminem 1518 Posted October 21, 2024 Posted October 21, 2024 (edited) Hmm this look like the nfo and pictures files came from somewhere else, plex mayby, or third party program. Edited October 21, 2024 by Neminem
kysdaddy 0 Posted October 21, 2024 Author Posted October 21, 2024 OK, I changed the path inside of Emby, I did not change or add new paths in the docker container. When I changed that Emby listed NO movies, rescanned and completed. it re-added all of the movies. I then did the same to TV and it is rescanning tv shows now. here are the logs from right after it finished scanning movies I have not said thank you for the assistance; I really appreciate it. embyserver (4).txt
Neminem 1518 Posted October 21, 2024 Posted October 21, 2024 Are these all new logs, as in you rotated logs. Because I still see 2024-10-21 11:40:41.136 Error ProviderManager: Error in metadata saver *** Error Report *** Version: 4.8.10.0 Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /config -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3 Operating system: Linux version 6.1.106-Unraid (root@Develop-612) (gcc (GCC) 12.2.0, GNU ld version 2.40-slack151) #1 SMP PREEMPT_DYNAMIC Wed Aug 21 23:36:07 PDT 2024 Framework: .NET 6.0.33 OS/Process: x64/x64 Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.33/System.Private.CoreLib.dll Processor count: 56 Data path: /config Application path: /usr/lib/emby-server System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/media/Movies/Headless Horseman (2022)/Headless Horseman (2022) WEBDL-1080p.nfo' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize) at System.IO.FileStream..ctor(String path, FileStreamOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, Int32 bufferSize, FileOpenOptions fileOpenOptions, Int64 preAllocationSize) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, Boolean isAsync) 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 Emby.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, LibraryOptions libraryOptions, ItemUpdateType updateType, IMetadataSaver[] savers, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Microsoft.Win32.SafeHandles.SafeFileHandle Open(System.String, OpenFlags, Int32) InnerException: System.IO.IOException: Permission denied Source: TargetSite: But looks better now. There is this, but think thats upstream. 2024-10-21 12:07:24.922 Error App: Error in The Open Movie Database
kysdaddy 0 Posted October 21, 2024 Author Posted October 21, 2024 I rotated the logs right around that time. 11:40
Carlo 4560 Posted October 21, 2024 Posted October 21, 2024 What you really want to do is reset the owner and groups to the emby user for both. You do this for the library path and all file/folders under it. You also want to setup the parent folders so it cascades this information with any changes or new file/folders added to the libraries. One way around this issue that is easy to implement after doing the above is to: Create a set of staging folders for movies, TV Shows, Music, etc Setup up a scheduled script that sets the permissions and owner ship of all folders/files in the staging area, then moves/overwrites the media to the proper library. Anytime you want to add media, just copy it to the proper staging area. You could try the Auto Organize plugin as well to see if this helps.
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