mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
Unable to switch a library folder without loosing all the discovered medias #7727
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Byh0ki on GitHub (Nov 10, 2025).
Description of the bug
Hello and thanks a lot for the project.
A few months ago, I've tried to switch/update my folders/volumes setup on my Jellyfin (installed with Docker) instance. The plan was simply to map the host_path to a new location in the container and simply switch the Folders in the Library settings. To my surprise, the actual behavior was to remove all the element from the library and then the auto-discovery was stuck on a non-existing movie that was somehow parsed as a TV show. (I also had a similar issue with a TV shows only library).
Globally, I don't have issues during JF updates (migration to 10.11.x was almost instant). I can add new media to the library and they'll get picked up without any issues. I can even rescan an existing library without any issues.
I've tried on multiple Jellyfin version in 10.10.x and also with 10.11.2.
Here are the setups I tried:
Log 1, library is now empty and the movies seems to be parsed as TV shows (log 2)It would be a quite problematic to have to reset the instance as I would lose the local user accounts and their watch status. If there is a way to reset and re-import the user from a Backup, that might be a good solution but not sure it is yet available, even in 10.11.x :/
Reproduction steps
What is the current bug behavior?
Unable to update the libraries settings without rendering it useless.
What is the expected correct behavior?
Able to update the libraries settings without rendering it useless.
Jellyfin Server version
10.11.0+
Specify version number
10.11.2
Specify the build version
10.11.2
Environment
Jellyfin logs
@Cody-Howell commented on GitHub (Nov 19, 2025):
We've been able to recreate this once. I then pulled the latest version of Jellyfin and Jellyfin Web (just a few weeks out of date), and have been unable to reproduce it since.
But I did see it happen. Before I updated, I broke the directory I was calling on that library and on any future libraries that were created with that file path (as in, I created a new library with the old path and it was still empty). I was still able to specify a sub-directory and see the data within that, but that's all I've seen.
This was just tested in a local Windows run, so I'm not discounting that it happens in Docker.
@Byh0ki commented on GitHub (Dec 9, 2025):
Oh, nice to see that I'm not alone with this 😅 What would be a good course of action to resolve the issue? I'm available if you need additional logs/test some stuff!
If we don't find anything, what could I do to backup my users (and their watched content) and restore that on a fresh install?