Server Version#: 1.25.5.5492
Player Version#: 1.40.1.2823-6f60f3a7
Before I went to bed last night, I had ~8700 albums in my Plex Music library, and when I checked it today, I’m down to 3154.
It seems to have deleted every single album in my music folder that was last modified before 09/28/2019 at 10:34pm. It cuts off in the middle of an artist’s folder: the album added at that time is there, but the ones added before that are missing, and every other album and artist that had been added before that time is gone. No scans even seems to have happened: the alerts on the server only mention a scan of the movies folder yesterday, which I manually initiated.
Nothing was changed about the files, the filenames, the directory, the network share. Naming is ALBUMARTIST - ALBUM - TRACK - TITLE for every single file, and all album art is embedded into the files.
I’m not going to lie, I’m devastated here. If I initiate a new scan, I fear it’ll re-add 5k+ albums as brand new additions. Playlists are trashed. Ratings gone. Will it reconfigure all of the metadata? That metadata folder is already 100+gb on this server… this is going to be a huge waste of time and resources.
Did this happen to anyone else? What should I do? I really, really don’t want to lose the recently added and date added ordering for my music library.
Do you have a recent database backup? You could try restoring that.
Also, if you haven’t already, disable “Empty trash automatically after every scan” in your server settings (Settings → Library). Doing so will prevent Plex from removing items from your library if they’re (temporarily?) unavailable during a scan.
I did have a recent backup, and restoring it brought back everything (minus 5 days, but whatever). The trash emptying thing makes some sense, but I’m reasonably sure no scan took place for it to set things into trash: and, moreover, the content was never unavailable, as other database software with this stuff loaded in was unaffected.
Very strange, very frustrating. Not a fan of the recent changes to the PMS scanners.
Nor sure what you’re asking. 5000 albums that were in plex last night weren’t in it this morning, with no changes having been made to the Music directory or the files within it.
If the Music directory had been disconnected, I wouldn’t expect it to keep one album within an artist folder (added 09/28/2019) but lose track of the others that were added previously. Does the music scanner not only scan the directory sorted by date modified, but also scan each subdirectory, independently of its parent directory, in that order? Weird!
Since restoring the backup an hour ago and initiating a new scan, plex has found the last five days of music but is now removing albums by the hundreds. If I go to the oldest albums in the library, which are quickly disappearing, they play fine right up until their removal.
Your best bet is to take a look at the logs (make sure you enable verbose logging in the settings). You could also upload the log file to pastebin and post the link here if you want others to take a look as well.
don’t do that. The logs will roll over too quick and likely have tons of useless info. Only “debug” should be enabled
try turning off “empty trash after every scan” before initiating scan to see if it just can’t see them. possibly some issue with server seeing them on the disk and after scan it removes.
Restored backup, and now I’m copying the database manually once a day.
I disabled emptying trash. Things seemed okay, but I wake up this morning and see that plex has relegated most of the music to “unavailable”… AND YET! I can play the files that it says are unavailable!