Jump to content

[ERROR][Ubuntu 20.04] SKCodec had an error reading /var/lib/emby/cache


Recommended Posts

bastionntb
Posted

Ubuntu 20.04.4 LTS
Emby: 4.7.2.0

I'm having an intermittent issue on metadata refresh and TV Show/Movie viewing on Emby Server where Emby will not generate a poster for said movie/TV Show, and have a blank image instead

 

In the log is says this when I initiated a metadata refresh replacing images. (This was one of a few probably around ~15% of my library gets this error)

2022-06-05 20:27:33.873 Error ImageProcessor: Error encoding image
    *** Error Report ***
    Version: 4.7.2.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 5.4.0-113-generic (buildd@lcy02-amd64-067) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2
    Framework: .NET 6.0.2
    OS/Process: x64/x64
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 8
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
    System.Exception: System.Exception: SKCodec had an error reading /var/lib/emby/cache/images/enhanced-images/2/2e08e32ab114c9b40cd22e77a1b17683.png
       at Emby.Drawing.Skia.SkiaEncoder.EncodeImage(String inputPath, String outputPath, Boolean autoOrient, Nullable`1 orientation, Int32 quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)
       at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
    Source: Emby.Drawing.Skia
    TargetSite: System.String EncodeImage(System.String, System.String, Boolean, System.Nullable`1[MediaBrowser.Model.Drawing.ImageOrientation], Int32, MediaBrowser.Controller.Drawing.ImageProcessingOptions, MediaBrowser.Model.Drawing.ImageFormat)
   
 
The permissions on this specific file are rw-rw-r-- (664) with ownership of the service account that runs Emby, and the group it belongs too.
 
The entire folder and all subdirectories are also owned in the same way, with similar permissive permissions applied. No ACLs are applied, just simple unix permissions.
 
These effect files are 0KB in size and there are hundreds of these issues propagated throughout the entirety of my libraries.
 
Refreshing Metadata and replacing existing images basically scrambles the affected files around, where one may not have had an issue one time, the other one now does have the issue.
 
Thank you
Posted

HI there, can you please attach the complete emby server log? Thanks.

bastionntb
Posted

I think I found the problem. It appears that the images would generate this error in correlation to a DNS timeout. (e.g. timestamped error on those files would correlate to a DNS query on our upstream DNS server)

 

I fixed the DNS problems and it seems there have been no errors since.

 

Thank you!

  • Thanks 1

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