Jump to content

Conversion failures to SMB share


Recommended Posts

Posted (edited)

Hello All

I was seriously hoping a conversion issue would be resolved with the recent update but unfortunately I still see issues when converting media. The conversion happens and a file is written to the fileshare but it is 0kb and the conversion stays as 'ready to transfer' in the queue. One of the conversions I attempted has overwritten the original file with 0kb file and so I lost the media altogether. I am writing to an smb share on a NAS. 

Here's some log entries that may help and thank you for any assistance!! And I have attached the full embyserver log file :)

P

 

at Emby.Server.Implementations.IO.ManagedFileSystem.CopyFileUsingStreams(String source, String target, Boolean overwrite)
at Emby.Server.Implementations.IO.ManagedFileSystem.CopyFile(String source, String target, Boolean overwrite)
at Emby.Server.Sync.ConvertSyncProvider.SendFile(SyncJob job, String originalMediaPath, String inputPath, Boolean isMedia, String[] pathParts, SyncTarget target, IProgress`1 progress, CancellationToken cancellationToken)
at Emby.Server.Sync.MediaSync.SendFile(SyncJob job, String originalMediaPath, IServerSyncProvider provider, String inputPath, Boolean isMedia, String[] pathParts, SyncTarget target, SyncOptions options, IProgress`1 progress, CancellationToken cancellationToken)
at Emby.Server.Sync.MediaSync.GetItem(IServerSyncProvider provider, SyncTarget target, SyncJobItem jobItem, IProgress`1 progress, 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)

embyserver (1).txt

Edited by Pippinuk
Add embyserver log file
Posted

So you are selecting the option to overwrite the original file when converting?

Suggest you change that whilst the issue is being investigated

image.png

I will see if I can replicate the problem

 

Posted

Based on the log I guess it timed out:

2025-10-03 17:32:58.709 Info App: Emby Media Converter copying file from /config/sync/5/5/b7f7cf09-28f6-4606-bc5c-c3f7b88c70da.mkv to smb://10.0.0.3/emby/data/movies/2 Guns_t00.mkv
2025-10-03 17:33:04.509 Error App: Error transferring sync job file
	*** Error Report ***
	Version: 4.9.1.80
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Linux version 5.15.0-157-generic (buildd@lcy02-amd64-004) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04.2) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #167-Ub
	OS/Process: x64/x64
	Framework: .NET 8.0.11
	Runtime: system/System.Private.CoreLib.dll
	Processor count: 12
	Data path: /config
	Application path: /system
	Emby.Server.Implementations.IO.SmbException: Emby.Server.Implementations.IO.SmbException: Create Handle Failed: data\movies\\2 Guns_t00.mkv. NTStatus: STATUS_IO_TIMEOUT. FileStatus: FILE_DOES_NOT_EXIST. handleType: Write
	   at EzSmb.Transports.Shares.Handlers.Bases.HandlerBase..ctor(SmbType smbType, ISMBFileStore store, String path, HandleType handleType, NodeType nodeType, HandleArgs args)

That is a quick timeout though, so I guess the question is what layer threw that timeout.

Posted

Thanks so much for your responses! I really appreciate it. I should have tested the 'next to original file' - I'll do that later and let you know what happens 👍

Posted (edited)

@PippinukI have tested both options on 4.9.1.80 on a ubuntu machine with smb to windows PC and they both worked. It was on a small .ts file (110Mb)

Test to convert placing output adjacent to original file

2025-10-04 11:03:06.283 Debug SqliteItemRepository: GetitemById Movie 295169 smb://192.168.1.151/Emby/EmbyLinuxRecordings/Breakfast/Breakfast 2025_03_12_08_40_00.ts
2025-10-04 11:03:06.286 Debug App: Sending /var/lib/emby/sync/3/3/45c1eae6-3e52-4078-bed6-e44f107e93e3.mp4 to Emby Media Converter. Remote path: Videos/Breakfast/Breakfast 2025_03_12_08_40_00.mp4
2025-10-04 11:03:06.323 Info App: Emby Media Converter copying file from /var/lib/emby/sync/3/3/45c1eae6-3e52-4078-bed6-e44f107e93e3.mp4 to smb://192.168.1.151/Emby/EmbyLinuxRecordings/Breakfast/Breakfast 2025_03_12_08_40_00 - mobile.mp4
2025-10-04 11:03:17.784 Info Sync: ReportSyncJobItemTransferred 3

 

Test to convert overwriting original file

2025-10-04 11:14:13.676 Debug SqliteItemRepository: GetitemById Movie 295169 smb://192.168.1.151/Emby/EmbyLinuxRecordings/Breakfast/Breakfast 2025_03_12_08_40_00.ts
2025-10-04 11:14:13.677 Debug App: Sending /var/lib/emby/sync/5/5/dfcae23f-69cd-497f-9a6c-ce42585d8c3d.mp4 to Emby Media Converter. Remote path: Videos/Breakfast/Breakfast 2025_03_12_08_40_00.mp4
2025-10-04 11:14:13.706 Info App: Emby Media Converter copying file from /var/lib/emby/sync/5/5/dfcae23f-69cd-497f-9a6c-ce42585d8c3d.mp4 to smb://192.168.1.151/Emby/EmbyLinuxRecordings/Breakfast/Breakfast 2025_03_12_08_40_00.mp4
2025-10-04 11:14:26.007 Info App: Emby Media Converter deleting smb://192.168.1.151/Emby/EmbyLinuxRecordings/Breakfast/Breakfast 2025_03_12_08_40_00.ts
2025-10-04 11:14:26.105 Info Sync: ReportSyncJobItemTransferred 5

 

Edited by sa2000
Posted

Thanks for doing that!! That's awesome. Ok, it has to be something my end. I'm gonna have a dig into tonight and see what I can find. I'll let you know and thanks again man! 👊

Posted (edited)

you could look into packet capture and filtering smb2 and dig into that - not easy to debug smb dialogue

i captured all communication using wireshark on the windows machine

i will run a test with a massive file !

Edited by sa2000
Posted

Should these back slashes be forward slashes?

10 hours ago, Luke said:
Create Handle Failed: data\movies\\2 Guns_t00.mkv.

Check how your smb mapping is configured but I almost bet you need the 'nobrl' option

 

  • 5 weeks later...
Posted

Hello All!! I am so sorry it's taken so long for me to reply. I've changed my setup to mount the SMB share to the local Linux host, then mapped that mount point to Emby via docker compose. Since then, all is well 🙂 
Without wanting to sound like a D, the conversion seemed to lose tooich quality so I think I'm looking at handbrake or similar to retain quality whilst converting to common formats. Either way, Emby is awesome. I love it. X

  • Thanks 2
Posted

Thanks for following up.

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