Jump to content

Error when Converting Video on TrueNAS


Recommended Posts

Posted

I have the following in my log for after a file was converted.  The conversion itself appeared to complete fine, but I think it isn't copying.  I'm not clear if it's not copying due to folder permissions, or it's getting an error trying to overwrite the existing file (which it shouldn't be).  The conversion was converting a 4k DV file to a 1080p file to play on an older SD TV and it's supposed to sit next to the original and have both available.


 

Operating system: Linux version 6.12.15-production+truenas (root@tnsbuilds02) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNA
Framework: .NET 6.0.36
OS/Process: x64/x64
Runtime: system/System.Private.CoreLib.dll
Processor count: 72
Data path: /config
Application path: /system
System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/media/movies/The.Movie]/The.Movie] - [Remux-2160p][HDR10][DTS-X 7.1][HEVC]-FraMeSToR - tv.mp4' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
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.FileSystem.CopyFile(String sourceFullPath, String destFullPath, 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: System.Private.CoreLib
TargetSite: Void CheckIo(Error, System.String, Boolean, System.Func`2[Interop+ErrorInfo,Interop+ErrorInfo])
InnerException: System.IO.IOException: Permission denied
Source:
TargetSite:


2025-10-21 23:43:07.440 Debug SqliteItemRepository: GetitemById Movie 219483 /media/movies/The.Movie]/The.Movie] - [Remux-2160p][HDR10][DTS-X 7.1][HEVC]-FraMeSToR.mkv
2025-10-21 23:43:07.441 Debug App: Sending /config/data/19/21/b6b648dd-8399-46db-a050-505f64dd1a58.mp4 to Emby Media Converter. Remote path: Videos/Fast & Furious (2009)/The.Movie] - [Remux-2160p][HDR10][DTS-X 7.1][HEVC]-FraMeSToR.mp4
2025-10-21 23:43:07.441 Info App: Emby Media Converter copying file from /config/data/19/21/b6b648dd-8399-46db-a050-505f64dd1a58.mp4 to /media/movies/The.Movie]/The.Movie] - [Remux-2160p][HDR10][DTS-X 7.1][HEVC]-FraMeSToR - tv.mp4
2025-10-21 23:43:07.442 Error App: Error transferring sync job file
*** Error Report ***
Version: 4.8.11.0
Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
Operating system: Linux version 6.12.15-production+truenas (root@tnsbuilds02) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNA
Framework: .NET 6.0.36
OS/Process: x64/x64
Runtime: system/System.Private.CoreLib.dll
Processor count: 72
Data path: /config
Application path: /system
System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/media/movies/The.Movie]/The.Movie] - [Remux-2160p][HDR10][DTS-X 7.1][HEVC]-FraMeSToR - tv.mp4' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
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.FileSystem.CopyFile(String sourceFullPath, String destFullPath, 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: System.Private.CoreLib
TargetSite: Void CheckIo(Error, System.String, Boolean, System.Func`2[Interop+ErrorInfo,Interop+ErrorInfo])
InnerException: System.IO.IOException: Permission denied
Source:
TargetSite:


 

 

I'm  not sure if it has to do with the compose file I'm using for TrueNAS

services:
  emby:
    container_name: emby
    environment:
      - PUID=1000
      - PGID=1000
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=all
    image: emby/embyserver:latest
    ports:
      - '8096:8096'
      - '8920:8920'
    restart: unless-stopped
    runtime: nvidia
    volumes:
      - /mnt/ssd_pool/appdata/media/emby:/config
      - /mnt/puddle/data/media:/media


 

Posted

Hi, yes did you see this?

System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/media/movies/The.Movie]/The.Movie] - [Remux-2160p][HDR10][DTS-X 7.1][HEVC]-FraMeSToR - tv.mp4' is denied.

It looks like you need to ensure that Emby Server has write access to that location.

Can you do that and then try again?

  • 1 month later...

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