ALL Movies all of a sudden in the wrong order (recently added) 1500 movies+ library

I dont know what has happened, but all of a sudden the recently added is all in the wrong order. Its for all the movies in that library from what i can see.
I’ve checked the date on some of the movies that has been placed in the newest recently added, and in explorer it shows the correct "date modified"date.
My TV Shows library seems to be fine regards to recently added TV Shows.

I also got a 2nd Plex Media server which ive recently installed, which are accesing the same files shared on another computer.
This is a fresh install, no migration whatsoever, its running in Linux Mint in Oracle VirtualBox.
On this server, the recently added dates seems to be fine.

I’ve tried analysis, scan media files etc in plex web, but nothing changes the order on the first server.

wtf2do?

Well, thats pretty ■■■■■■. Almost all of my movies was correctly matched in the first place.
Havent done any changes to the file directories.
Tho, the file server hosting them is a bit out of shape, and somethimes the driver for the extra sata controller fails and the disks attached to it arent visible in windows anymore until i restart the fileserver.
Do you know which logfile i can check regards to this?

If this is enabled:

…when a hitch in the storage-get-along occurs - well… the result is what you see laid out before your eyes.
Unfortunately, there’s not a lot to do about it either.

It’s enabled at my house, because I feel relatively certain my storage isn’t going to up and leave the ethereal plane on me unannounced and while it’s in transit, Plex runs a scan and finds all/most my material is gone - deleting it from the database - as I have instructed.

If that were to happen - I’d look for the reason my storage blinked out of existence and if I found that was going to be a regular thing:

  1. I’d have a bit of a cry
  2. I’d disable the automatic emptying of the trash until I could figure it out.

Log Files - remove the guesswork from sooooo many things:
https://support.plex.tv/articles/200250417-plex-media-server-log-files/
Drag zip file to message window and drop it.

I’ve tried to delete library and add it again, the recently added is still way off!
Doesnt it check the filedates on the files?

No, just the date added…

What is the difference? So it will create recently added just at random?
Then its pretty hopeless to fix, :frowning:

There is no fix.
When media disappears - then the trash is emptied removing it from the database - then is added again - it goes in Recently Added.

Your storage is coming and going - apparently - so you’d better disable the automatic emptying of trash until you get it figured out.

I have now moved the disks to another computer, so storage should be ok now.
Im adding the movie folders 1 by 1 so hopefully it will come back in somewhat the right order.

Better disable the automatic trash dump - until you use it for a while.

I was able to resolve this by restoring a backup of the database. Hopefully, you’ve enabled the backups automatically in the plex server too. This will work if you recently noticed the problem and know when your database was last good. If the above applies, you can do the following:

For Plex database problems

  1. stop plex server
  2. copy database files in directory below to another directory for safe keeping
  3. rename current library file (com.plexapp.plugins.library) to com.plexapp.plugins.library.old
  4. go to backup date file desired and rename to com.plexapp.plugins.library (i.e. remove date label at end of file name)
  5. start plex server
  6. rescan library

database location
C:\Users<plex_server_user>\AppData\Local\Plex Media Server\Plug-in Support\Databases

The best date to go to is the last one you remember that was good. The re-scanning should re-create the information lost by going back to a previous backup.

As suggested by other replies, I also unchecked the “empty trash automatically…” option.

1 Like

Fantastic, this resolved my issue.

In an effort to add another folder to my Movies I accidentally replaced the existing folder path. When I corrected the path, Plex found and reindexed my collection (65 movies) but now the Recently Added is in Reverse.

Is there an easy fix to this? Is there a way to replicate my steps but have the Movies index in the right order?

https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/

1 Like

Thanks! That worked.

1 Like

For anyone who might be interested. There is a way to get the files to be in whatever order that you want, it just takes some work. For my own purposes I only really care about the seeing the 20-30 most recent in that list, everything else is old. So what I do is remove those files from the folders, rescan the folders through Plex so that they are not in the recent list (or Plex at all). Then I copy each one back one at a time and rescan after each file is added. This will put them in the recent list in the order that I added them.

To make the process easier I usually write a Windows BAT file to copy the file, I also set Plex to rescan at a higher frequency or when files are added.

Feels like picking the “date created” or “date modified” from the file would make more sense?

Else I agree with previous post, remove and re-add the last 20-30 movies…