When I rip new movies, Plex doesn't recognize in library

Server Version#: Version 4.51.1
Player Version#:

Hello,

I am sorry if this subject was brought up before and I missed it. Anyway, I am using a Drobo5N NAS to stream my movies over Roku. That is not the issue. The issue is that if I add new movies to the Library (and yes, Plex is looking at the Movies folder), they do not appear in my master library when I open up Plex. The PC that I am using to rip is Win10 and I am using DVDFab12 to rip as a MKV. Never had any issues before, it’s all of a sudden this is happening. Below I’ve attached the log Plex has provided.

Any help would be appreciated!

Thank you!

John D.

“type”: “info”,
“host”: “192.168.1.126:32400”,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.67”,
“browser”: {
“platformVersion”: “10”,
“id”: “edge”,
“name”: “Microsoft Edge”,
“version”: “91.0”,
“platform”: “Windows”,
“platformID”: “windows”,
“platformModifierKey”: “ctrl”
},
“version”: “4.51.1”,
“primaryServerUrl”: “https://192-168-1-126.1ea7b7346be74256ad8f202f6acbde09.plex.direct:32400/”,
“primaryServerAuthToken”: true,
“username”: “john.dominick@comcast.net”,
“cloudUrl”: [
{
“scheme”: “https”,
“address”: “plex.tv”,
“uri”: “https://plex.tv”,
“testState”: “connected”,
“isBundled”: false,
“isFallback”: false,
“relay”: false,
“isUntested”: false,
“isPending”: false,
“isConnected”: true,
“isUnauthorized”: false,
“isUnavailable”: false,
“isFailed”: false,
“isAborted”: false,
“isLoopback”: false,
“isPrivate”: false,
“isHttps”: true,
“isSecure”: true,
“isPlexDirect”: false,
“currentTest”: null,
“sources”: [
{
“id”: “internal”

The log file is from the web interface, not the server.

Please pull the server log files from Settings → Troubleshooting → Download Logs.

Attach the entire ZIP file to the thread. Just drag it into the message window. It will insert at the cursor location.

Also, what is the name of the last movie you added that does not appear in Plex?

My apologies. The last movie I ripped was Shooter.mkv.

Here is the server log file.

Thank you for the help!

Plex Media Server Logs_2021-07-11_09-14-55.zip (4.9 MB)

Thanks for the log files.

Three things.

The first one is the cause of your current issues. The other two are recommendations based on other things I noticed in the log files.

  1. Database corruption on your Plex Media Server. This is why Plex is not recognizing your new movies. When severe, it can also affect playback of existing movies.

Jul 11, 2021 08:45:12.051 [0x32d1f440] ERROR - SQLITE3:0x5d9e, 11, database corruption at line 64757 of [bf8c1b2b7a]

  1. Is Plex scanning temporary or working directories as you add media to the system?

If so, this can cause issues with media recognition, metadata downloading, etc. It can also lead to database corruption.

Example log entry (there are several thousand in the log files). It looks like Plex may be scanning a temporary or working area:

Jun 14, 2021 18:14:14.451 [0x31e47440] INFO - Library section 1 (Movies) will be updated because of a change in "/mnt/DroboFS/Shares/Plex/Movies/Video/01278794_SHOOTER/Shooter Tireur d'élite.theatrical.mkv"

  1. Your media naming & structure could be better. This is not causing your current problems, but if you follow Plex naming & organization guidelines, you will have less issues with Plex correctly recognizing and classifying new media.
/mnt/DroboFS/Shares/Plex/Movies/Shooter.mkv
/mnt/DroboFS/Shares/Plex/Movies/RESIDENT EVIL  EXTINCTION.mkv
/mnt/DroboFS/Shares/Plex/Movies/RESIDENT EVIL AFTERLIFE.mkv
/mnt/DroboFS/Shares/Plex/Movies/RESIDENT EVIL.mkv
/mnt/DroboFS/Shares/Plex/Movies/RESIDENT_EVIL_APOC.mkv
/mnt/DroboFS/Shares/Plex/Movies/RESIDENT_EVIL_FINAL_CHAPTER.theatrical.mkv
/mnt/DroboFS/Shares/Plex/Movies/Resident Evil Retribution.mkv


Database Corruption

Plex DocumentationRepair a Corrupt Database 1.22.0 and earlier

You’ve three choices:

  1. Repair the database
  2. Restore from a backup
  3. Delete and start over (your media is not touched)

Repairing the database, which is not always possible, requires the most work. It also potentially saves the most information - play history, library organization, etc.

If you’ve a backup of the database, and the backup is not corrupt, you can restore from the backup. Metadata, etc for additions since the backup will be lost, but rescanning the libraries will pick them up. Database backups are scheduled in Settings → Scheduled Tasks, which also lists the backup location.

To determine whether or not a backup is corrupt, you can use the SQLITE commands listed in the “Repair a Corrupt Database…” document. Alternately, you can load the backup database on your system, scan your libraries, add/remove a movie, then pull log files and look in Plex Media Server.log for any entries regarding database corruption (load the backup, make Plex read/write to the database, then check logs for corruption).

The third alternative is to delete the database. This is like starting over from scratch. Your media files are not touched. However, you will lose library definitions, metadata customizations, play history, etc. You will have to recreate your libraries, reshare them with any users, etc.


Workflow

It is best to perform your media preparation (ripping, transcoding, etc) outside of Plex, then add the media to the system once the prep work is done.

Plex will pick up when a file is added/deleted/modified.

If you are ripping a movie into an area monitored by Plex, it will continuously scan that folder for changes, since the ripping application is continuously writing to the same folder.

This can cause Plex to have trouble correctly recognizing the media and downloading correct metadata. It can also lead to database corruption as Plex is continuously trying to update its database as the file changes.


Naming & Organization

Plex DocumentationNaming and Organizing Your Media

You should follow Plex requirements for media naming and organization. See the documentation, but the basics are (a) each movie in its own folder, and (b) add the year to the movie name.

This is to head off future issues. Spending a few minutes now can head off problems in the future.

Placing each movie in its own folder will speed up Plex scanning for new media. Plex scans for changes (Settings → Library → Run a partial scan). If each movie is in its own folder, Plex scans just the one item. If you have the movies in the same folder, Plex scans all of them instead of just the new addition. This isn’t a problem with small libraries, but can help as your libraries grow.

Also, if you want to add any extras - deleted scenes, outtakes, etc - you must place the movie in its own folder ( Local Files for Movie Trailers and Extras).

Adding the year helps Plex correctly recognize the movie and download the correct metadata. This is especially helpful where there are several movies in a franchise (Resident Evil, Fast & Furious, etc).

Instead of:

/mnt/DroboFS/Shares/Plex/Movies/
../Shooter.mkv
../RESIDENT_EVIL_APOC.mkv
../RESIDENT EVIL  EXTINCTION.mkv
../RESIDENT EVIL AFTERLIFE.mkv
../RESIDENT EVIL.mkv

Consider:

/mnt/DroboFS/Shares/Plex/Movies/
../Shooter (2007)/Shooter (2007).mkv
../Resident Evil (2002)/Resident Evil (2002).mkv
../Resident Evil Apocalypse (2004)/Resident Evil Apocalypse (2004).mkv
../Resident Evil Extinction (2007)/Resident Evil Extinction (2007).mkv
../Resident Evil Afterlife (2010)/Resident Evil Afterlife (2010).mkv
1 Like

Thanks Ford! I’ll take your suggestions under advisement. Since I only have 60 movies, I may just delete the Just delete the corrupted db and start over. I do have a backup, but it’s from maybe 4 years ago.

Ford,

May be a stupid question. What if I use an old DB backup to restore? I know I have added less than 20 movies since the backup. Will this cause issues or will the Library just go out and get updated with the metadata from the Internet?

Thanks again!
John

If the old database is not corrupt, then you’ll be OK.

When you rescan the libraries plex will pick up anything that was added since the backup date.

The “Repair a corrupt database” document has info on using SQLITE3 to check for corruption.

You could also load the backup, scan to pick up changes, let Plex pick up new additions, download metadata, etc, then check the log files for any database corruption. If corrupt, then you’ll have to start over. If not, you can run with it.

Unzip the log file and look in Plex Media Server.log (rolls to .1, .2, etc) for the messages like the one in my earlier reply. It will have “ERROR - SQLITE3” and contain “corruption.” You may see several warning messages if the backup was made when running a different version of Plex Media Server. The server should pick up any database format changes and adjust accordingly.

Hi Ford,

Well I took the jump and started with a clean db file. Already it’s helping. It’s seeing new media, like Shooter, that was added before. Having a difficult time with meta-data loading. Some, movies don’t have the correct artwork. So, I am re-ripping, renaming and placing each movie in its own folder.

Thanks for all of the help!!

John

Good to hear things are working.

FYI, you should not have to re-rip to have Plex recognize the movies.

Plex looks at folder/file names for matching (*). You may want to re-rip for quality or other purposes, but you do not have to do so just to get Plex to recognize the movies.


(*) Plex does not read embedded metadata from MKV files. Plex can be configured to read embedded metadata from MP4 files (Metadata Agents).

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