marriedman 85 Posted December 2, 2021 Posted December 2, 2021 For some reason, I keep finding my artwork, NFO's, thumbnails, and subtitles removed from my media folders and they are appearing in my metadata and or cache folder of my emby server. I just want emby to read the data & artwork I have painstakingly set up over the years. I luckily still have all of this backed up on my Vero running Kodi, but I have already done 2 restores and I cannot find out a reason for this behavior. I have two sources; Movies and TV Shows. Both have the settings the same: Metadata Readers - only NFO checked. Metadata Savers - NFO checked so it will retain watch counts. Image Fetchers - Nothing selected because I choose all my own artwork. Save Artwork into media folders - checked in the hopes that it would stop moving my stuff. Subtitles - Require a hash match, skip if embedded, and save subtitles into media folders are all checked. Those are all the settings I can think of that are relevant that I have touched. Has anyone had this happen to them before?
Luke 42077 Posted December 3, 2021 Posted December 3, 2021 Hi, do you mean the actual files in your folders are getting moved?
marriedman 85 Posted December 3, 2021 Author Posted December 3, 2021 Yes sir. At first I thought it was as I watched a show or movie, but just last night I had to redo all of the NFO and image files for the entire Muppets Show. I haven't watched that one in quite a while. I checked the last 3 days logs and that show never appears until 2:45 AM this morning when it was added to emby's library and subtitles were attempted to download. 2021-12-03 02:43:57.591 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: /usr/bin/ffprobe-emby -i file:"/home/shared/TV/Muppet Show, The/Season 04/S04E16 - The Stars Of Star Wars.mp4" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data 2021-12-03 02:43:57.750 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 0 2021-12-03 02:43:58.087 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc 2021-12-03 02:43:58.831 Info HttpClient: POST https://api.opensubtitles.org/xml-rpc 2021-12-03 02:43:59.016 Error ProviderManager: Error in metadata saver *** Error Report *** Version: 4.6.4.0 Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3 Operating system: Linux version 5.15.2-2-MANJARO (builduser@fv-az131-873) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Sat Nov 13 19:25:38 UTC 2021 Framework: .NET Core 3.1.20 OS/Process: x64/x64 Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.20/System.Private.CoreLib.dll Processor count: 4 Data path: /var/lib/emby Application path: /usr/lib/emby-server System.IO.IOException: System.IO.IOException: Read-only file system at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileStream(String path, FileOpenMode mode, FileAccessMode access, FileShareMode share, Int32 bufferSize, FileOpenOptions fileOpenOptions) 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 MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, LibraryOptions libraryOptions, ItemUpdateType updateType, IMetadataSaver[] savers, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void ThrowExceptionForIoErrno(ErrorInfo, System.String, Boolean, System.Func`2[Interop+ErrorInfo,Interop+ErrorInfo]) This repeats for all the episodes it sees as new. I didn't see anything about deletions or moving. Just in case, I have attached the most recent embyserver.txt log file. Just an idea - is there a way to export all my emby settings in a log type file so that it can be posted/reviewed on here to see if this is something that I am doing wrong? embyserver.txt
marriedman 85 Posted December 13, 2021 Author Posted December 13, 2021 I'm still scratching my head on this issue. I can not figure out why emby refuses to save subtitles to the media folder. I know I have the permissions correct: [paul@ewaste Pushing Daisies (2007)]$ id emby uid=64552(emby) gid=64552(emby) groups=64552(emby),984(users),1000(paul) [paul@ewaste Pushing Daisies (2007)]$ ls -l total 1648 -rwxrwxrwx 1 paul users 98388 Apr 1 2021 banner.jpg -rwxrwxrwx 1 paul users 156603 Apr 1 2021 clearart.png -rwxrwxrwx 1 paul users 78123 Apr 1 2021 clearlogo.png -rwxrwxrwx 1 paul users 376028 Apr 1 2021 fanart.jpg -rwxrwxrwx 1 paul users 4624 Apr 1 2021 handbrake-preset.json -rwxrwxrwx 1 paul users 161442 Apr 1 2021 landscape.jpg -rwxrwxrwx 1 paul users 161673 Apr 1 2021 poster.jpg drwxrwxrwx 2 paul users 0 Dec 13 2021 'Season 01' -rwxrwxrwx 1 paul users 212519 Apr 1 2021 season01-landscape.jpg -rwxrwxrwx 1 paul users 57359 Apr 1 2021 season01-poster.jpg drwxrwxrwx 2 paul users 0 Nov 29 19:05 'Season 02' -rwxrwxrwx 1 paul users 223247 Apr 1 2021 season02-landscape.jpg -rwxrwxrwx 1 paul users 118701 Apr 1 2021 season02-poster.jpg -rwxrwxrwx 1 paul users 11835 Nov 29 19:05 tvshow.nfo [paul@ewaste Pushing Daisies (2007)]$ I am obviously the owner of the directory and files. Emby is a member of my group as well users. Is there anything more I should be doing?
Luke 42077 Posted December 13, 2021 Posted December 13, 2021 Hi there, have you taken a look at this?
marriedman 85 Posted December 13, 2021 Author Posted December 13, 2021 Yes, that's where I got the information to add emby to the users group.
marriedman 85 Posted December 13, 2021 Author Posted December 13, 2021 Actually, now that I think about it, it has to have permissions to read & write since it moved files out of my media folders and into the emby metadata folders. So this must be a setting somewhere I'm missing or the server is not respecting the settings I have.
Luke 42077 Posted December 14, 2021 Posted December 14, 2021 Hi, there's nothing in emby server that moves or deletes your info files, so I think it's still an issue of permissions. The .net core runtime might be doing this internally when we write over a file, deleting it first, and then the save fails after that.
marriedman 85 Posted December 15, 2021 Author Posted December 15, 2021 This is maddening! I just noticed that another batch of the subtitles I just spent a day fixing have been deleted. I cannot figure out what more I can do except for turn off every featute and just make emby a dumb file server. I know my permissions are set up correctly as per the snippet posted above. The group of 'users' has read/write/execute permissions. If it can delete a file, I cannot understand how it would be unable to save a new version of it. Is there a script that will export all of the subtitles from the metadata folder? As it is I don't think they are human readable filenames.
Luke 42077 Posted December 17, 2021 Posted December 17, 2021 The server doesn't delete subtitle files just fyi.
marriedman 85 Posted December 17, 2021 Author Posted December 17, 2021 2 minutes ago, Luke said: The server doesn't delete subtitle files just fyi. On 12/13/2021 at 7:39 PM, Luke said: The .net core runtime might be doing this internally when we write over a file, deleting it first, and then the save fails after that. Whether it is the server or the .net core, something is deleting files. If it is deleting files, doesn't it have to have write permissions?
Luke 42077 Posted December 17, 2021 Posted December 17, 2021 Well we don't know yet that Emby Server is doing that. Do you know when it happened?
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