Jump to content

Metadata refresh issues


Go to solution Solved by Luke,

Recommended Posts

Posted

Today I updated my server from Rocky Linux 8 to 10.  I backed up the data files from /var/lib/emby/data and then wiped the drive and reinstalled.  I've completed the install and set up hardware encoding.  It's all working well.  I put the data files back in place and while the settings are all proper and all there, the metadata is not. I probably did something wrong there.

So, I've been going to each library and telling it to refresh the metadata.  It seems to do it part way.. I can go into the library and the poster pics are all there.. But, if I choose a video, the cast & crew pics are not.  I have to refresh metadata from there and then it refreshes.  I really don't want to have to do that for all the items I have.  Is there an easy way to force it to do all of them?

Screenshot 2025-10-18 210417.png

Posted

I think I found the problem in the logs.. This error is from a metadata update:

Here's the error:
 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2025-10-19 09:06:13.967 Info ImageService-0HNGF1R5J3E4A:0000000A: http/1.1 Response 404 to ‌‍‍192.168.1.40‌. Time: 18ms. GET http://‌‍‍192.168.1.10‌:8096/emby/Items/342262/Images/Primary?maxHeight=300&maxWidth=200&tag=81e67744d82d684b2efb5bc7b04b0628&quality=90.
2025-10-19 09:06:13.967 Info HttpClient: GET https://artworks.thetvdb.com/banners/v4/season/2140583/posters/6807e7c318aa1.jpg
2025-10-19 09:06:13.967 Error ImageService-0HNGF1R5J3E47:0000000E: Error processing request
        *** Error Report ***
        Version: 4.9.1.80
        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-rpm_{version}_x86_64.rpm
        Operating system: Linux version 6.12.0-55.39.1.el10_0.x86_64 (mockbuild@iad1-prod-build001.bld.equ.rockylinux.org) (gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7), GNU ld
        OS/Process: x64/x64
        Framework: .NET 8.0.11
        Runtime: opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 12
        Data path: /var/lib/emby
        Application path: /opt/emby-server/system
        System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/lib/emby/metadata/people/a/Ashley Padilla-tmdb-2426004/folder.jpg'.
           at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
           at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
           at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
           at Emby.Server.Implementations.IO.ManagedFileSystem.CopyFile(String source, String target, Boolean overwrite)
           at Emby.Drawing.Skia.SkiaEncoder.GetTempFile(String path, Boolean isError)
           at Emby.Drawing.Skia.SkiaEncoder.GetSKFileStream(String path)
           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)
           at Emby.Api.Images.ImageService.GetImage(ImageRequest request, Int64 itemId, BaseItem item, Boolean isHeadRequest)
           at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
           at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
           at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, RestPath restPath, String urlString, String localPath, String contentTypeInPath, CancellationToken cancellationToken)
        Source: System.Private.CoreLib
        TargetSite: Void ThrowExceptionForIoErrno(ErrorInfo, System.String, Boolean)
        Path: /var/lib/emby/metadata/people/a/Ashley Padilla-tmdb-2426004/folder.jpg

2025-10-19 09:06:13.967 Info ImageService-0HNGF1R5J3E47:0000000E: http/1.1 Response 404 to ‌‍‍192.168.1.40‌. Time: 17ms. GET http://‌‍‍192.168.1.10‌:8096/emby/Items/342264/Images/Primary?maxHeight=300&maxWidth=200&tag=2b4d8b934aa0ac858bc300666b3c866d&quality=90.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

There were lots of these in the logs for various people.  I did looking in the filesystem and those files are not there even though the software seems to think it should be there.

embyserver.txt

Posted

Yeah.. Thats where I went wrong.. I didn't use the restore function.   I copied the *.db files from the backup into /var/lib/emby/data.

What do I need to do? Remove each library and re-create it?

Posted

Do you not have the original folders anymore?

Posted

OK then yes refreshing metadata or removing and re adding libraries should do it.

Posted

Ok. Thanks.  Only have myself to blame for that.

Posted

Please let us know how things go. Personally I would just refresh metadata.

Posted

I'm having remove and recreate each library and then scan the media.. Refreshing metadata is not refreshing things.. It's giving me that error I pasted above.  I'm almost done rebuilding it all.

  • Thanks 1
  • 2 weeks later...
Posted
On 10/20/2025 at 2:18 PM, Luke said:

Please let us know how things go. Personally I would just refresh metadata.

Just a quick note that I've got everything working again.. I was even able to get my HD Homerun Flex 4K working and have DVR events recording.. Thanks for the help!

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