Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Jellyfin] can't find metadata after recent change #1787

Open
ve6rah opened this issue Feb 24, 2025 · 13 comments
Open

🐛 [Jellyfin] can't find metadata after recent change #1787

ve6rah opened this issue Feb 24, 2025 · 13 comments
Labels
bug Something isn't working

Comments

@ve6rah
Copy link

ve6rah commented Feb 24, 2025

Description

Since the change to the metadata location, Jellyfin can't find any of the metadata. All posters/etc are blank in the UI

When I look in the metadata manager it seems to show the old file locations, e.g. /config/addons_config/jellyfin/data/root/default/Movies

but I can't find any way to change those to the new locations?

Reproduction steps

upgrade to newest version, open Jellyfin, look for any metadata.

Addon Logs

[20:20:46] [ERR] [18] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: Could not find file '/config/addons_config/jellyfin/data/metadata/library/57/57b01a0563184e6fbb64ccb50105dcc4/poster.jpg'. URL GET /Items/57b01a0563184e6fbb64ccb50105dcc4/Images/Primary.
[20:20:46] [ERR] [11] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: Could not find file '/config/addons_config/jellyfin/data/metadata/library/05/0517d97807850408813a2d26b007e45b/poster.jpg'. URL GET /Items/0517d97807850408813a2d26b007e45b/Images/Primary.
[20:20:46] [ERR] [19] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: Could not find file '/config/addons_config/jellyfin/data/metadata/library/83/83f8a2db1f001af8fb573b9508762d69/poster.jpg'. URL GET /Items/83f8a2db1f001af8fb573b9508762d69/Images/Primary.
[...]

Continues like this for some time....

Architecture

No response

OS

HAos

@ve6rah ve6rah added the bug Something isn't working label Feb 24, 2025
@alexbelgium
Copy link
Owner

Hi, this is the same as #1784 (comment) do you still have issues after latest?

@ve6rah
Copy link
Author

ve6rah commented Feb 24, 2025

@alexbelgium While I suspect the two are related, the exact error message is not the same, and the other one is talking about trying to add new media, whereas this one is with existing media.

Currently running 10.10.6-2 and having this problem.

@Devil231
Copy link

Devil231 commented Feb 26, 2025

Hi,

I have 10.10.6-2 installed and I have the same issues with metadata not found and new files are not discovered by Jellyfin.
After reviewing the metadata path, is still pointing to the old location /config/addons_config/jellyfin

L.E. and Fix(at least for me):

From settings manually update the path to point to the new location:

Image

Delete the existing libraries and create new ones

Image

Scan for new metadata and files

Fixed!
Hope it helps

@Degenkamp
Copy link

I've the same:
I have 10.10.6-2 installed and I have the same issues with metadata not found and new files are not discovered by Jellyfin.
After reviewing the metadata path, is still pointing to the old location /config/addons_config/jellyfin

@Devil231
Copy link

I've the same: I have 10.10.6-2 installed and I have the same issues with metadata not found and new files are not discovered by Jellyfin. After reviewing the metadata path, is still pointing to the old location /config/addons_config/jellyfin

Can you try the fixed that I explained in my comment? Hope it helps

@ve6rah
Copy link
Author

ve6rah commented Feb 27, 2025

Can you try the fixed that I explained in my comment? Hope it helps

Not exactly ideal having to recreate all of it, redownload all the artwork, rebuild all my collections, etc. I was hoping we could have a fix that just updated the location in the settings to match the new file location.

@alexbelgium
Copy link
Owner

alexbelgium commented Feb 27, 2025

Hi, what is your data_location value in the addon options ?

Using filebrowser, do you still have /homeassistant/addons_config/jellyfin_migrated?

This code created the symlink but perhaps it is not active in your case :

LOCATION="$(bashio::config 'data_location')"

if [ -d /homeassistant/addons_config/jellyfin_migrated ]; then
mkdir -p /config/addons_config
ln -sf "$LOCATION" /config/addons_config/jellyfin
chown -R "$PUID:$PGID" "$LOCATION"
fi

@ve6rah
Copy link
Author

ve6rah commented Feb 27, 2025

data location is showing as /config/data
should that be changed?

@alexbelgium
Copy link
Owner

alexbelgium commented Feb 27, 2025

Well. What is strange is that I expected /config/data to be symlinked to /config/addons_config/jellyfin avoiding the whole issue.

Could you please try one thing for me : with the addon filebrowser, go in /addon_configs/xxx-jellyfin/jellyfin.sh and add in it :

#!/usr/bin/env bashio
LOCATION="$(bashio::config 'data_location')" 
if [ -d /homeassistant/addons_config/jellyfin_migrated ]; then 
echo "migrated folder is there"
fi
   mkdir -p /config/addons_config
echo "create symlink"
   ln -sf "$LOCATION" /config/addons_config/jellyfin
ls -l /config/addons_config/jellyfin
ls -l /config/addons_config/jellyfin/*
echo "Chown files"
   chown -R "$PUID:$PGID" "$LOCATION" 
 

And paste the start-up log here

@alexbelgium
Copy link
Owner

I'll push a version with potential fix

@ve6rah
Copy link
Author

ve6rah commented Feb 27, 2025

I'm afraid it's too late for me. I got impatient and used the fix above. So I'm back up and running by re-doing my libraries.

@Aulos
Copy link

Aulos commented Feb 27, 2025

I'm getting:

ln: /config/addons_config/jellyfin/data: cannot overwrite directory

I've tired to remove /addon_configs/xxx-jellyfin/addons_config/jellyfin completely, but I still get the same error

Interesting, even though I got the error scanning the library seems to work now 🤔

I'm also seeing

migrated folder is there
create symlink
.... long list of files
Chown files

and the above ln errorshows up after enabling legacy mode:

Enable legacy mode
ln: /config/addons_config/jellyfin/data: cannot overwrite directory

@thoj
Copy link

thoj commented Feb 27, 2025

There is also a isse with the folder structure.

I deleted /config/addons_config/jellyfin/data and the 20_folders.sh script runs fine.

But scanning still give an error. In my case it seems like the actual data is in /config/data/data/root/default/ insted of /config/data/root/default/

Why this has happened I'm not sure.

root@db21ed7f-jellyfin:/config/addons_config/jellyfin/data# cp -rv data/root/* root/

Fixes it on my install. There is probably some consequences of doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants