Jellyfin Forum
Deleted library still shows up on Home for clients - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Deleted library still shows up on Home for clients (/t-deleted-library-still-shows-up-on-home-for-clients)



Deleted library still shows up on Home for clients - cordial - 2024-11-11

I've seen a few versions of this question posted, but I haven't found anything with a clear fix and resolution.

I'm running the Linuxserver.io docker container for Jellyfin 10.10.1.

I had two libraries configured in my instance, movies and tv shows.

I added two new libraries, films and series. I removed the movies and tv shows libraries. From the admin dashboard under Libraries, they are no longer present.

The actual server paths for movies and tv shows were deleted. From the admin dashboard, everything looks great.

When a user logs into Jellyfin via the web interface however, the old libraries for movies and tv shows still show up in addition to the new ones configured. There is no media content for either of the old labels, just the library itself as an option to select. The new libraries play content just fine.

Short of blowing away the configuration directory and reestablishing Jellyfin as a new installation, I'm not sure what else to do. I'd rather not do this to avoid end-user reconfiguration.

Am I missing an obvious fix?

Thanks!


RE: Deleted library still shows up on Home for clients - TheDreadPirate - 2024-11-11

Try ctrl+f5 to make sure that it isn't browser caching. If that doesn't work, share your full server log via pastebin.


RE: Deleted library still shows up on Home for clients - cordial - 2024-11-11

Running into some file size issues with PasteBin.

I'll get something up here within the hour. Thanks for your help.


RE: Deleted library still shows up on Home for clients - theguymadmax - 2024-11-11

To resolve the issue of ghost libraries, my usual solution is to remove them by editing the database. Here's the process:
  1. Download SQLite Browser.
  2. Shut down the server.
  3. Open library.db (always back up first!). Locations vary:
    • /var/lib/jellyfin/data/library.db
    • X:\ProgramData\Jellyfin\Server\data\library.db
    • X:\Users\Username\AppData\Local\jellyfin\data\library.db
  4. Choose the “Browse Data” tab, right under that is the option to choose table type, select “TypedBaseItems”
  5. Enter “MediaBrowser.Controller.Entities.CollectionFolder” in the Filter in any column field
  6. Find the entry you want to get rid of. Right-click on the number and select delete record.
  7. Click the “Write Changes” button, then close the database and restart the server.



RE: Deleted library still shows up on Home for clients - cordial - 2024-11-11

(2024-11-11, 04:05 PM)TheDreadPirate Wrote: Try ctrl+f5 to make sure that it isn't browser caching.  If that doesn't work, share your full server log via pastebin.

Tried on multiple machines. Doesn't look like caching is an issue. Here is the full server log for yesterday when changes were made.


RE: Deleted library still shows up on Home for clients - TheDreadPirate - 2024-11-12

AFAICT, the server doesn't monitor the old folders. But I do see these messages, which seems to indicate a database problem.

Code:
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 11: 'database disk image is malformed'.

That message isn't spamming the log, but it could indicate some issue that is cause what you are seeing with phantom libraries.

One thing you can check are the XML files that Jellyfin creates for each library. Go to /config/root/default and in that folder will be all the folders for your libraries. Do you see folders for the libraries you removed? If so, stop Jellyfin and delete those folders.


RE: Deleted library still shows up on Home for clients - cordial - 2024-11-12

(2024-11-11, 04:41 PM)theguymadmax Wrote: To resolve the issue of ghost libraries, my usual solution is to remove them by editing the database. Here's the process:

Any suggestions on how to do this from the command line?


RE: Deleted library still shows up on Home for clients - cordial - 2024-11-12

(2024-11-12, 01:23 PM)TheDreadPirate Wrote: AFAICT, the server doesn't monitor the old folders.  But I do see these messages, which seems to indicate a database problem.

Code:
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 11: 'database disk image is malformed'.

That message isn't spamming the log, but it could indicate some issue that is cause what you are seeing with phantom libraries.

One thing you can check are the XML files that Jellyfin creates for each library.  Go to /config/root/default and in that folder will be all the folders for your libraries.  Do you see folders for the libraries you removed?  If so, stop Jellyfin and delete those folders.

Unfortunately, no. My path is slightly different than what you're referencing, but I feel confident that I'm looking where you want me to.

Looking in /config/data/root/default/* I see two directories, each labeled for the two new libraries that I created. There are no references to the old libraries.