February 14, 20251 yr has anyone had it where their plex docker just stopped scanning some libraries? my TV and animie is still scanning /updating but my movies just arent scanning the folders anymore i verified the data is being moved from radarr to the correct location but plex just wont find the data. i also ran the fix common problems thinking it was a permission problem but it didnt find anything. unraid-plex-diagnostics-20250214-0025.zip
February 14, 20251 yr Community Expert in plex empty the trash for all of your libaries Under trouble shoothing run the optimize database and clean bundles then go back to the libraries and rescan for media... Unraid diags are no good here as this is a file access or internal plex issues... Unless you have bad media file accesses permissions... stop all dockers and run docker safe perms. and.or run chmod 777 -R * chown nobody:users -R * in the library that your missing content... you may have content that merged with other media files... and may need to unmerge and fix the metadata...
February 15, 20251 yr Author i tried all the stuff you mentioned above including looking for duplicates to see if it merged some data and none of that resolved my issue. i have pulled the logs from plex itself im a little unsure of whats going on here its like plex doesnt see updates to the folder. Plex Media Server Logs_2025-02-14_20-07-27.zip
February 15, 20251 yr Author looking a bit closer and it looks like my TV and Animie sections are updating as well. see below for example
June 20, 20251 yr On 2/15/2025 at 3:14 AM, zarken said:Fixed it. TY for the help it turns out the Plex DB was corrupted How did you find out the database was corrupt?
June 20, 20251 yr Author I don't recall all the steps I had went through and what forum I had ended up on exactly but there are some instructions you can find on repairing the db or you can use one from built in backup you can restore by renaming the backup to the live db name.
June 21, 20251 yr Community Expert 15 hours ago, nerbonne said:How did you find out the database was corrupt?I get notfied on my cell pohone when plex is loged into the account that claimed the docker runnig it. It will notify you... Tehre are other ways to run a check against the sql file for plex to see if its corupted..https://support.plex.tv/articles/repair-a-corrupted-database/To check for corruption in your Plex database, you can use the PRAGMA integrity_check; command within the SQLite console that Plex uses. If the database is corrupted, you might see error messages, and you can then attempt to repair it using commands like VACUUM or by restoring from a backup. Here's a more detailed breakdown:1. Accessing the SQLite Console:Stop Plex Media Server:Ensure Plex Media Server is not running before making any database changes. Locate the database:Find the com.plexapp.plugins.library.db file, typically located in the Plug-in Support/Databases folder within your Plex Media Server data directory. Open the console:You'll need to use a tool like sqlite3 or the Plex database repair script, like DBRepair on GitHub, to access the database. 2. Checking for Corruption:Run the integrity check: Inside the SQLite console, execute the command PRAGMA integrity_check;.Analyze the output: If the database is valid, the output will be "ok". If there are errors, you'll see specific messages indicating the type and location of the corruption. 3. Repairing the Database (if necessary):Try VACUUM:Execute the command VACUUM; to rebuild the database structure and potentially fix errors. Restore from backup:If the integrity check reveals significant corruption, consider restoring a recent backup of your database. Plex automatically backs up the database regularly if scheduled tasks are enabled. Use a repair tool:Tools like DBRepair can automate the process of checking, repairing, and optimizing the database. 4. Post-Repair Steps:Rebuild Indexes:.Opens in new tabAfter repairing, you might need to rebuild the database indexes to ensure optimal performance. Refresh Libraries:.Opens in new tabIf you've made significant changes to the database, refresh your Plex libraries to ensure metadata is up-to-dateAs I recenlty had to deal with plex coruptions...ended up finding a nice project for plex databse repairs..https://github.com/ChuckPa/DBRepairdownload the project tar"https://github.com/ChuckPa/DBRepair/archive/refs/tags/v1.11.03.tar.gzextracted the dbrepair-version folder and script in my docker volume mount for /config fixing and ran it.https://github.com/linuxserver/docker-plex/issues/425#event-17945050644
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.