• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification DB Entries Not Purged After Folder Change

     
    • 0 Vote(s) - 0 Average

    DB Entries Not Purged After Folder Change

    Duplicate DB entries to non existent file paths not removed after changing library folder locations
    Unstaffed8755
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    #1
    2024-07-07, 02:14 AM
    I have been having some difficulty with MergeVersions which I linked back to a problem with library.db.  Due to some mounting problems, my default folder path for my Movie and TV directories had changed, so I updated the respective folders for each library to the new mount location (we'll call the move /media1/ -> /media2/ for reference), making sure to remove the old folder in the process.  However once MergeVersions ran, it created duplicate entries for every single file (so a file with 2 versions now had 4 versions, 2 pointing to an invalid location).  So I split the versions again and uninstalled MergeVersions, and the duplicates went away.

    After that I did a full rescan on each library (using replace all metadata), cleared the cache, and optimized the db.  Reinstalled MergeVersions again, and the same thing happens.  I ended up opening library.db in DB Browser which MergeVersions was calling from, and found all of the original entries pointing to /media1/ in addition to /media2/.  So while the nonexistent old files do not appear in Jellyfin, they clearly still exist within library.db in addition to the new ones, and MergeVersions is using library.db to determine which files have multiple versions.

    It's worth mentioning I've run all scheduled tasks and done the full scan on every library, and it still doesn't clean up those nonexistent entries in library.db.  For reference I am running Jellyfin 10.9.7 debian build.  How can I clean up these entries so that MergeVersions and other plugins will not create duplicates referencing the old nonexistent path?  I'd rather not have to edit these entries manually in DB Browser out of fear of screwing something up.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    DB Entries Not Purged After Folder Change - by Unstaffed8755 - 2024-07-07, 02:14 AM
    RE: DB Entries Not Purged After Folder Change - by TheDreadPirate - 2024-07-07, 01:51 PM
    RE: DB Entries Not Purged After Folder Change - by Unstaffed8755 - 2024-07-07, 06:58 PM
    RE: DB Entries Not Purged After Folder Change - by TheDreadPirate - 2024-07-08, 02:23 AM
    RE: DB Entries Not Purged After Folder Change - by bijon - 2024-07-25, 07:26 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode