3 hours ago
Hello,
I'm having difficulty since a sort of snafu occurred. Last week I had new media in the music library. I ended up not being a fan of the album in question, so I deleted it (in this case from the Delete Media option). It hung for a while and then appeared to have finished. However, now there was a "ghost" album in the library. The entry still exists, along with all it's metadata, except the album art appears corrupted (visually speaking). Any further attempts to delete the album were met with "There was an error, please be sure you have write access to this folder".
At the time, I just let it go, until recently when I realized that any new media I added would fail to be scanned. This does not apply to other libraries, new media in say Movies will show up fine. Only in Music will it fail to add new media. Scan will immediately fail, no indication from within the Dashboard that it is scanning the library.
The logs produce this:
[2025-11-13 07:55:04.917 -05:00] [ERR] Error processing request: "Could not find file '/var/lib/jellyfin/root/default/Music/poster.jpg'". URL "GET" "/Items/7e64e319657a9516ec78490da03edccb/Images/Primary".
[2025-11-13 07:55:09.575 -05:00] [WRN] Image not found at "/var/lib/jellyfin/root/default/Music/poster.jpg"
[2025-11-13 07:55:11.464 -05:00] [WRN] Image not found at "/var/lib/jellyfin/metadata/library/26/26edeeff62d548b11622579bb64eaf86/backdrop.jpg"
[2025-11-13 07:55:11.464 -05:00] [WRN] Image not found at "/var/lib/jellyfin/metadata/library/26/26edeeff62d548b11622579bb64eaf86/logo.png"
[2025-11-13 07:55:11.464 -05:00] [WRN] Image not found at "/var/lib/jellyfin/metadata/library/26/26edeeff62d548b11622579bb64eaf86/folder.jpg"
They are indeed missing. I keep a duplicati backup of the jellyfin folder, but I only keep 3 iterations and unfortunately due to my waiting, all 3 are after the delete media event. There are what appear to be older backups in /var/lib/jellyfin/data, but I'm not sure how to properly implement them as there are files like library.db.bak1, 2, 3, 4. But, then I'd expect to see a library.db, but I only see files like library.db.old or library.db-wal.
I'm on JF 10.11.0 as current version. All running on an ubuntu server. Jellyfin is not dockerized, runs bare metal.
I have minor experience with SQL, so I'd be willing to make changes if that was the only recourse, but I am not knowledgeable enough beyond a script-kiddie sort of level, so obviously I'd prefer other options.
I'd also like to add that I received another error last night.
[2025-11-12 19:23:37.304 -05:00] [ERR] An exception occurred while executing an 'ExecuteUpdate' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
Logs: https://pastebin.com/qUYAANTS
https://pastebin.com/wDmL4Es4
I'm having difficulty since a sort of snafu occurred. Last week I had new media in the music library. I ended up not being a fan of the album in question, so I deleted it (in this case from the Delete Media option). It hung for a while and then appeared to have finished. However, now there was a "ghost" album in the library. The entry still exists, along with all it's metadata, except the album art appears corrupted (visually speaking). Any further attempts to delete the album were met with "There was an error, please be sure you have write access to this folder".
At the time, I just let it go, until recently when I realized that any new media I added would fail to be scanned. This does not apply to other libraries, new media in say Movies will show up fine. Only in Music will it fail to add new media. Scan will immediately fail, no indication from within the Dashboard that it is scanning the library.
The logs produce this:
[2025-11-13 07:55:04.917 -05:00] [ERR] Error processing request: "Could not find file '/var/lib/jellyfin/root/default/Music/poster.jpg'". URL "GET" "/Items/7e64e319657a9516ec78490da03edccb/Images/Primary".
[2025-11-13 07:55:09.575 -05:00] [WRN] Image not found at "/var/lib/jellyfin/root/default/Music/poster.jpg"
[2025-11-13 07:55:11.464 -05:00] [WRN] Image not found at "/var/lib/jellyfin/metadata/library/26/26edeeff62d548b11622579bb64eaf86/backdrop.jpg"
[2025-11-13 07:55:11.464 -05:00] [WRN] Image not found at "/var/lib/jellyfin/metadata/library/26/26edeeff62d548b11622579bb64eaf86/logo.png"
[2025-11-13 07:55:11.464 -05:00] [WRN] Image not found at "/var/lib/jellyfin/metadata/library/26/26edeeff62d548b11622579bb64eaf86/folder.jpg"
They are indeed missing. I keep a duplicati backup of the jellyfin folder, but I only keep 3 iterations and unfortunately due to my waiting, all 3 are after the delete media event. There are what appear to be older backups in /var/lib/jellyfin/data, but I'm not sure how to properly implement them as there are files like library.db.bak1, 2, 3, 4. But, then I'd expect to see a library.db, but I only see files like library.db.old or library.db-wal.
I'm on JF 10.11.0 as current version. All running on an ubuntu server. Jellyfin is not dockerized, runs bare metal.
I have minor experience with SQL, so I'd be willing to make changes if that was the only recourse, but I am not knowledgeable enough beyond a script-kiddie sort of level, so obviously I'd prefer other options.
I'd also like to add that I received another error last night.
[2025-11-12 19:23:37.304 -05:00] [ERR] An exception occurred while executing an 'ExecuteUpdate' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
Logs: https://pastebin.com/qUYAANTS
https://pastebin.com/wDmL4Es4

