Windows Plex server 1.18.x or higher - Music Library scan - Not remove deleted items in DB

Server Version#: 1.18.x or higher

Following any upgrade after 1.18.x, the music librairy scan does not remove items in the database where they have been removed / deleted from the scan folders on the HDD.

Prerequisite:

  • Windows Plex server software release 1.18.x or higher

Steps to reproduce,
1- Add music file types within the folder where it would be scanned by the Plex music scan
2- Proceed to scan the music library.
3- Ensure the entries have been added to the music library.
4- Remove files from the folder OR Replace the same files with another file type (MP3 -> FLAC)
5- Proceed to scan the music library - This would prove the entries would not be removed from the library. When replacing the file types, this create duplicate entries in the database where the old references (MP3 in this case) won’t work anymore as expected since the files are not there anymore,
6- Target files removed on the folder (s) on the HDD are NOT removed from the database.

Workaround:
Downgrade to 1.17.x, and proceed with a simple music library scan, and this would clean the database and resolve the database discrepencies. Content on HDD would match the entries in the database.

Have you tried to ‘Empty Trash’, after the library scan has finished?

I do believe I tried to ‘Empty Trash’. I tried several releases in 1.18.x and also 1.19.1, and in all cases I got the issue.

Each time it was required for me to downgrade back to 1.17.0.1841 to resolve the issue, and this put my implementation at risk everytime i’m doing upgrade / downgrade.

@sa2000 Can you please look at it?

I can try to have a look Tomorrow but will need debug server logs after the scan and again after the completion of emptying the trash for that library and details of what was deleted

@sa2000 Can you please provide me the procedure to submit the server logs ?

Where i should upload the server logs; file repository ?

@sa2000
I just reproduced the issue with 1.19.3…

  • Add one new folder containing 1 artist with 5 albums
  • Do music library scan… Added properly
  • Remove 2 out of 5 albums within the folder
  • Do another scan… still having 5 albums where only 3 should be available.
  • **Empty the trash scan for the music library… nothing happend… still 5 albums :(.

*** This is a major issue ***

@sa2000 Did you get a chance to look at it ?

sorry - cannot find any debug logs to look at

There isn’t a logs repository

The Logs zips can be attached to the forum post

If Plex Media Server databases are provided they can be zipped and uploaded on dropbox/google drive etc and you can send link to me by Private Message

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.