What did I do and how do I stop it from ever happening again?

Hello,

On my windows plex server, I have over 1000 movies. I had categorized them accorinding to my personal genre designation and collection for the tags. I’m not going to search for something like Lethal Weapon under mystery or comedy. I think action so that is the only one I want it to show under. There are a few movies which come under two groups - superhero for genre and MCU for collection - that way I can sort them.

Somehow ALL of my movies got recategorized as the defaults. I don’t know if there is a way to go back? I also NEVER EVER EVER HEVER want this to happen again - is there a place I can lock it so it never has this problem again?

Usually Plex will automatically show a highlighted lock icon next to fields you’ve edited. Those should not be overwritten.

Bildschirmfoto 2022-03-28 um 18.05.49

Thanks - you are probably going to think I’m making this up but I did have them locked.

The only scenario I’m aware of where Plex can do such a reset is if a combination of events add to each other:

  1. Server configured to do automatic/scheduled library scans
  2. Server configured to automatically empty its trash after every scan
  3. Some shaky connection to the drive containing your media (e.g. HDD taking rather long to spin up…)

This can result in Plex doing a scan, (temporarily) not finding your media and removing it from your library. At some later point, another scan might succeed and re-add the files to your library – though without all your manual edits (as those had been deleted when the file was gone / temporarily not accessible to the server).

That’s why I prefer disabling the option for Plex to automatically empty its trash ( Settings > [Server Name] > Library).

If this only happened recently you could check if you can restore a database backup which Plex created as part of a scheduled task.

2 Likes

AHH - that could be what happened - my disk array was off line so it wouldn’t be able to find it.

Sorry - I’m at a complete lost trying to follow that restore instruction set - I have no idea where the files are -

Also I definitely would like to move it to some place that I am backing up on a regular basis.

See also PSA: Script to back up and restore Plex app data on a Windows system because for a successful backup you need to stop Plex server. Otherwise your backed up database will be defective.

Thanks - I did restore it from 9 months ago (last time I backed up my appdata folder) C:\Users\boe_d\AppData\Local\Plex Media Server\Plug-in Support\Databases

Anyone have instructions on how to move that directory on a Windows media server within plex? (I know how to move files & folders in windows).

A screenshot of where to move it would be awesome.

It’s not possible.

1 Like

Thanks - that would be a great feature to add.

I’m not gifted at programming but I think I could write a clunky task script to stop the plex program, copy the plex database to another folder and then restart the plex program.

Would it be possible for me to get plex working again should it lose its database if the only two files I restored were - com.plexapp.plugins.library.db and com.plexapp.plugins.library.db-wal? I’m using windows. I’m not sure if com.plexapp.plugins.library.blobs.db is essential or there are other folders I should worry about.

I just really want to protect myself should my drive be offline again and not automatically clearing the trash hasn’t been ideal for me.

That’s exactly (and more) what the above linked “PSA script” is doing.

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