Jump to content

Error in metadata saver


Recommended Posts

Posted (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;

Inkedimage.png.4ead40de7bd1bbb6e1586f0b74b72e87_LI.jpg.68fc63806b51be0e62aeac62b43b285d.jpg

Edited by cappapp
mask
Posted (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;

Inkedimage.png.f137ddce2912ccc13783b5413a512265_LI.jpg.c7cfdac0cad14675e92dc130b0e1d32b.jpg

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 by cappapp
mask
Posted

What type of filesystem is /mnt/remotes/192.168.0.8_Media?

Posted

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: 

 

 

Posted

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.

:)

Posted

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.

  • Thanks 1
Posted

Thanks for the feedback.

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...