Jump to content

Problem with media in SMB-shares


Go to solution Solved by Luke,

Recommended Posts

Posted (edited)

Hy, 

I got my emby-server (v4.8.11.0 with premiere) running (via Proxmox LXC with Debian 12) for a few weeks and I'm managing my metadata via TTM. Emby gets the media via SMB from an OpenMediaVault. The import with nfo's and pictures ... works fine but when changing/adding infos or pictures in Emby, these aren't wrote back to the SMB-share. Also not existing files aren't created.

A problem with the permission couldn't be the point because I tried several options (guest allowed for SMB with other wrx-permission, Emby-user as owner of the complete share and recursively, ...).
Normally my SMB-user "Emby" has read/write privileges for SMB and is in the group "users" which has wrx-permissions for the file-system.

The Log also don't throw a permission error but an IOException. I don't know why. The folder is correct and the reread of the nfo is correct.

Here is a part (just striped opensubtitle-gets) of the last try. First one ist writing vie Metadata-Manager and second one should be rereading metadata. There is also an error but it worked!? "Filme\ABBA - Der Film (1977)" is also a folder, not a file.

2025-07-05 17:35:14.507 Info Server: http/1.1 Response 200 to  ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l. Time: 5ms. POST http:// ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l:8096/emby/Items/497550/PlaybackInfo?UserId=xxx&StartTimeTicks=0&IsPlayback=false&AutoOpenLiveStream=false&MaxStreamingBitrate=100000>
2025-07-05 17:35:29.207 Info Server: http/1.1 POST http:// ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l:8096/emby/Items/497550?X-Emby-Client=Emby Web&X-Emby-Device-Name=Edge Windows&X-Emby-Device-Id=0f76e297-a2e5-489f-8f20-db076300f6d3&X-Emby-Client-Version=4.8.11.0&X-Emby-Token= ^`^xxx^`^l&X-Em>
2025-07-05 17:35:29.353 Error ProviderManager: Error in metadata saver
        *** Error Report ***
        Version: 4.8.11.0
        Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
        Operating system: Linux version 6.8.12-11-pve (build@proxmox) (gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX
        Framework: .NET 6.0.36
        OS/Process: x64/x64
        Runtime: opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 4
        Data path: /var/lib/emby
        Application path: /opt/emby-server/system
        System.IO.IOException: System.IO.IOException: Create Handle Failed: Filme\ABBA - Der Film (1977). NTStatus: FILE_DOES_NOT_EXIST
           at EzSmb.Transports.Shares.Handlers.Bases.HandlerBase..ctor(SmbType smbType, ISMBFileStore store, String path, HandleType handleType, NodeType nodeType, HandleArgs args)
           at EzSmb.Transports.Shares.Smb2Share.GetHandler(String path, HandleType handleType, NodeType nodeType, HandleArgs args)
           at EzSmb.Transports.Shares.Bases.ShareBase.CreateFolder(Node node, String folderName)
           at EzSmb.Node.CreateFolder(String folderName, String relatedPath)
           at Emby.Server.Implementations.IO.SmbFileSystem.CreateDirectory(String path)
           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: Emby.Server.Implementations
        TargetSite: Void .ctor(EzSmb.Params.Enums.SmbType, SMBLibrary.Client.ISMBFileStore, System.String, EzSmb.Transports.Shares.Handlers.Enums.HandleType, EzSmb.NodeType, EzSmb.Transports.Shares.Handlers.HandleArgs)

2025-07-05 17:35:29.353 Info Server: http/1.1 Response 204 to  ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l. Time: 146ms. POST http:// ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l:8096/emby/Items/497550?X-Emby-Client=Emby Web&X-Emby-Device-Name=Edge Windows&X-Emby-Device-Id=xxx&X-Emby-Client-Version=4.8.1>
2025-07-05 17:35:29.491 Info Server: http/1.1 POST http:// ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l:8096/emby/Items/497550/PlaybackInfo?UserId=xxx&StartTimeTicks=0&IsPlayback=false&AutoOpenLiveStream=false&MaxStreamingBitrate=1000001&X-Emby-Client=Emby Web&X-Emby-Device-Name=Edge Windows&X-Emb>
2025-07-05 17:35:29.496 Info Server: http/1.1 Response 200 to  ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l. Time: 5ms. POST http:// ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l:8096/emby/Items/497550/PlaybackInfo?UserId=xxx&StartTimeTicks=0&IsPlayback=false&AutoOpenLiveStream=false&MaxStreamingBitrate=100000>
2025-07-05 17:35:29.807 Info Server: http/1.1 POST http:// ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l:8096/emby/Items/497550/PlaybackInfo?UserId=xxx&StartTimeTicks=0&IsPlayback=false&AutoOpenLiveStream=false&MaxStreamingBitrate=1000001&X-Emby-Client=Emby Web&X-Emby-Device-Name=Edge Windows&X-Emb>
2025-07-05 17:36:05.871 Info Server: http/1.1 POST http:// ^`^l ^`^m ^`^m192.168.20.211 ^`^l:8096/emby/Items/497550/Refresh?Recursive=true&ImageRefreshMode=FullRefresh&MetadataRefreshMode=FullRefresh&ReplaceAllImages=false&ReplaceAllMetadata=true&X-Emby-Client=Emby Web&X-Emby-Device-Name=Edge Windows&X-Emby-Device->
2025-07-05 17:36:05.872 Info App: Refresh metadata requested on 497550
2025-07-05 17:36:05.872 Info Server: http/1.1 Response 204 to  ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l. Time: 0ms. POST http:// ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l:8096/emby/Items/497550/Refresh?Recursive=true&ImageRefreshMode=FullRefresh&MetadataRefreshMode=FullRefresh&ReplaceAllImages=false&ReplaceAllMetadata=true&X-Emby->
2025-07-05 17:36:05.968 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: /opt/emby-server/bin/ffprobe -i "http://127.0.0.1:8096/Items/File?Id=smb%3A%2F%2F192.168.20.210%2FVideo%2FFilme%2FABBA+-+Der+Film+(1977)%2FABBA+-+Der+Film+(1977)+-+TV.mp4" -threads 0 -v info -print_format json -show_streams -show_chapters>
2025-07-05 17:36:06.221 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 0 - Succeeded
2025-07-05 17:36:06.557 Info HttpClient: GET https://api.opensubtitles.com/api/v1/subtitles?languages=de&moviehash=db37377fdc1b089a
2025-07-05 17:36:09.487 Info Server: http/1.1 POST http:// ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l:8096/emby/Items/497550/PlaybackInfo?UserId=xxx&StartTimeTicks=0&IsPlayback=false&AutoOpenLiveStream=false&MaxStreamingBitrate=1000001&X-Emby-Client=Emby Web&X-Emby-Device-Name=Edge Windows&X-Emb>

2025-07-05 17:36:09.492 Info Server: http/1.1 Response 200 to  ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l. Time: 5ms. POST http:// ^`^l ^`^m ^`^m192.168.xxx.xxx ^`^l:8096/emby/Items/497550/PlaybackInfo?UserId=xxx&StartTimeTicks=0&IsPlayback=false&AutoOpenLiveStream=false&MaxStreamingBitrate=100000>
2025-07-05 17:36:09.874 Info HttpClient: GET https://api.opensubtitles.com/api/v1/subtitles?languages=de&moviehash=8d6861d876b4bb8a
2025-07-05 17:36:11.397 Info HttpClient: GET https://api.themoviedb.org/3/movie/14336?api_key= ^`^lf6bd687ffa63cd282b6ff2c6877f2669 ^`^l&append_to_response=alternative_titles,reviews,casts,releases,images,keywords,trailers&language=de-DE&include_image_language=de-DE,null
2025-07-05 17:36:11.526 Info HttpClient: GET https://api.themoviedb.org/3/movie/14336?api_key= ^`^lf6bd687ffa63cd282b6ff2c6877f2669 ^`^l&append_to_response=alternative_titles,reviews,casts,releases,images,keywords,trailers&language=en-US&include_image_language=en-US,null
2025-07-05 17:36:11.583 Info HttpClient: GET https://private.omdbapi.com?apikey= ^`^lfe53f97e ^`^l&i=tt0075617&plot=short&r=json
2025-07-05 17:36:11.620 Info HttpClient: GET https://api.opensubtitles.com/api/v1/subtitles?languages=de&moviehash=de30ac0ea521d179
2025-07-05 17:36:11.696 Info HttpClient: GET https://api4.thetvdb.com/v4/movies/21760/extended?meta=translations
2025-07-05 17:36:12.176 Info HttpClient: GET https://webservice.fanart.tv/v3/movies/14336?api_key= ^`^l5c6b04c68e904cfed1e6cbc9a9e683d4 ^`^l
2025-07-05 17:36:12.473 Error ProviderManager: Error in metadata saver
        *** Error Report ***
        Version: 4.8.11.0
        Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
        Operating system: Linux version 6.8.12-11-pve (build@proxmox) (gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX
        Framework: .NET 6.0.36
        OS/Process: x64/x64
        Runtime: opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 4
        Data path: /var/lib/emby
        Application path: /opt/emby-server/system
        System.IO.IOException: System.IO.IOException: Create Handle Failed: Filme\ABBA - Der Film (1977). NTStatus: FILE_DOES_NOT_EXIST
           at EzSmb.Transports.Shares.Handlers.Bases.HandlerBase..ctor(SmbType smbType, ISMBFileStore store, String path, HandleType handleType, NodeType nodeType, HandleArgs args)
           at EzSmb.Transports.Shares.Smb2Share.GetHandler(String path, HandleType handleType, NodeType nodeType, HandleArgs args)
           at EzSmb.Transports.Shares.Bases.ShareBase.CreateFolder(Node node, String folderName)
           at EzSmb.Node.CreateFolder(String folderName, String relatedPath)
           at Emby.Server.Implementations.IO.SmbFileSystem.CreateDirectory(String path)
           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: Emby.Server.Implementations
        TargetSite: Void .ctor(EzSmb.Params.Enums.SmbType, SMBLibrary.Client.ISMBFileStore, System.String, EzSmb.Transports.Shares.Handlers.Enums.HandleType, EzSmb.NodeType, EzSmb.Transports.Shares.Handlers.HandleArgs)

 

I use the integrated SMB-function of emby with user+password because emby is running inside a LXC-container (for using hardware-acceleration) so I'm not able to mount SMBs direct. 
(As a sidenote: when choosing an SMB-path for backup, emby doesn't have an option for giving username and password)

For clearence the local file-permissions of the folder:

root@omv:/# ls -al /mnt/all-disks/HDD4TB/Medien/Video/Filme/ABBA\ -\ Der\ Film\ \(1977\)/
insgesamt 2598948
drwxrwxrwx+   2 root users       4096 22. Jun 12:04  .
drwxrwxrwx+ 281 root users      20480 23. Jun 22:11  ..
-rwxrwxrwx+   1 root users 2659930747 31. Dez 2020  'ABBA - Der Film (1977) - TV.mp4'
-rwxrwxrwx+   1 root users      12210 22. Jun 12:04 'ABBA - Der Film (1977) - TV.nfo'
-rwxrwxrwx+   1 root users      71064 28. Nov 2024   banner.jpg
-rwxrwxrwx+   1 root users      56827 28. Nov 2024   clearlogo.png
-rwxrwxrwx+   1 root users     712890 28. Nov 2024   discart.png
-rwxrwxrwx+   1 root users     184497 28. Nov 2024   fanart1.jpg
-rwxrwxrwx+   1 root users     108022 28. Nov 2024   fanart2.jpg
-rwxrwxrwx+   1 root users      76157 28. Nov 2024   fanart.jpg
-rwxrwxrwx+   1 root users      93467 28. Nov 2024   poster.jpg
-rwxrwxrwx+   1 root users      16896  1. Feb 22:26  Thumbs.db

 

The export of changed data in Emby is important for me so I hope you could help me.
 

Edited by Cor11
added version info
  • Solution
Posted

HI, in the 4.8 server there are some cases where your configured credentials do not get applied. This has been resolved in the upcoming 4.9 server release. Thanks.

Posted

OK thanks. I updated a test-lxc to 4.9.1.3 beta and it worked. I will wait for the release of a stable 4.9.

Is it possible to integrate a settings-area (maybe under network) for the SMB-credentials? If the media is given to emby via SMB we must enter these credentials for every single linked folder on every library and backups can't be done vie SMB because we can't enter the credentials in the choose-folder dialog in the backup-plugin because emby isn't showing an input mask.

When saving the credentials just once in the settings vor an specified IP we only need to input these once and for changing the credentials we don't need to remove the folder on a library and add it with the new one.

Posted
Quote

backups can't be done vie SMB because we can't enter the credentials in the choose-folder dialog in the backup-plugin because emby isn't showing an input mask.

Correct. There are many places that accept paths that haven't been updated yet to be able to accept credentials. It's on the to do list. Thanks.

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