Playlists are removed/deleted on library scan
Description of the bug
I'm finding that my playlists keep being deleted/removed from my library without any input from a user. It appears that the deletion is happening when the Scan Media Library task is triggered.
When the playlist is created, I find that a folder for this playlist is created in the Playlists library folder. However, it is empty (not sure if this is expected behaviour?). When the playlist is removed from the library in the UI, the folder for it still exists and is still empty.
Reproduction steps
- Create a playlist of movies of any number.
- View the playlist via the
Playlistslibrary and confirm the items are present - Confirm that an empty playlist folder is created in the library folder on the filesystem. In my case this is
/var/lib/jellyfin/data/playlists/$PLAYLIST_NAME. - Confirm that the playlist and its associated folder exists in the DB e.g.
sudo sqlite3 /var/lib/jellyfin/data/jellyfin.db .dump | grep "$PLAYLIST_NAME" - Run the
Scan media librarytask. - Confirm the playlist is no longer present in the
Playlistslibrary. - Confirm that the playlist folder for this playlist still exists.
- Confirm that the playlist no longer exists in the DB, but the playlist folder still does e.g.
sudo sqlite3 /var/lib/jellyfin/data/jellyfin.db .dump | grep "$PLAYLIST_NAME"
What is the current bug behavior?
The playlist has been deleted/removed from the library.
What is the expected correct behavior?
The playlist is still available in the library.
Jellyfin Server version
10.11.8
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
Release
Environment
- OS: Arch Linux x86_64
- Linux Kernel: Linux 6.19.10-hardened1-1-hardened
- Virtualization: None
- Clients: Browser
- Browser: Chrome 146.0.7680.180 (Official Build) (arm64)
- FFmpeg Version: jellyfin-ffmpeg 1:7.1.3p5-1
- Playback Method: n/a
- Hardware Acceleration: VAAPI
- CPU Model: Intel(R) Core(TM) Ultra 7 265K (20) @ 6.50 GHz
- GPU Model: Intel Graphics @ 2.00 GHz [Integrated]
- Plugins: AudioDB, Auto-Organiser, Chapter Segments Provider, Cinema Mode, Cover Art Archive, Metadata Organiser, MusicBrainz, OMDb, Playback Reporting, Reports, Session Cleaner, SkinManager, Studio Images, Theme Songs, TheTVDB, TMDb, TMDb Box Sets
- Reverse Proxy: n/a
- Base URL: n/a
- Networking: n/a
- Jellyfin Data Storage & Filesystem: local m.2 NVMe - ext4
- Media Storage & Filesystem: Local HDD - ext4
- External Integrations: n/a
Jellyfin logs
[jellyfin20260414.log](https://github.com/user-attachments/files/26710639/jellyfin20260414.log)
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
On the surface, this appears to be the same issue as this which was resolved with the 10.11.8 update. However, that issue seems to have been caused by storing the playlists folder within a hidden directory. This is not the cause of this issue hence opening a new ticket.
Source: jellyfin/jellyfin