June 30, 20251 yr Greetings,I was running 7.1.2 when I first noticed this problem, but I have just upgraded to 7.1.4 thinking it might be related to the networking issues mentioned in the patch notes.For some reason Plex is no longer adding anything to the library. I have added tens of thousands of movies and haven't changed my naming conventions so its not a format issue. When I scan library it does see the new movie and tv folders with the content, but doesn't add them. For example I can see it scan the folder with the movie or tv show name but Plex doesnt include them in the library. I can access the folders from other PCs, but for some reason there's a disconnect with Plex. I've also noticed some shows lost their movie posters and it allows me to match but does not update, likewise manually adding a movie poster gives me an error.I can still use unraid as a file server and plex works for existing movies, but it wont allow me to add (though I did add one episode from an existing show since I noticed this, which was in an existing folder).Could this be a networking or permissions issue? Any advice is much appreciated!
July 1, 20251 yr file permission issues maybee...plase run these commands with plex off to amke sure the medai folder for TV Movies are correct.stop all docker go to toolx> docker safe permissionset unraid docker permissions...cd /path to plex media/chown nobody:users -R *chmod 777 -R *then in plex make sure you run thorugh the basics for library scanning..go to and make sure you empty the trash to each of your librariesScan Library files and Refresh all metadata...you can scan all your libraires for new contentotherwsie you need to make sure the plex docker can read teh new tv / movie file path from within the container...console into plex cd to your path and look around...Otherwises your experiences database coruption issues... where its easeier to start plex over then it is to correct large libraries and have plex rescan folder to re import movies and tv.
July 1, 20251 yr Author Thanks for the reply. In going through your steps I ended up looking through the Plex logs and found it does appear to be a database corruption issue:Jul 01, 2025 10:36:08.555 [23153162644280] ERROR - SQLITE3:0x80000001, 11, database corruption at line 72267 of [a29f994989]Jul 01, 2025 10:36:08.555 [23153162644280] ERROR - SQLITE3:0x80000001, 11, statement aborts at 10: [SELECT (SELECT max(idx) FROM 'main'.'fts4_metadata_titles_icu_segdir' WHERE level = ?) + 1] database disk image is malformedJul 01, 2025 10:36:08.555 [23153162644280] ERROR - SQLITE3:0x80000001, 11, statement aborts at 186: [update metadata_items set extra_data=? where library_section_id=? and metadata_type=? and metadata_items.extra_data not like '%at^%3Asmart=1%' escape '^' and id not in (183595)] database disk image is malformedJul 01, 2025 10:36:08.555 [23153162644280] ERROR - Exception inside transaction (inside=1) (/home/runner/_work/plex-media-server/plex-media-server/Library/MetadataCollection.cpp:519): sqlite3_statement_backend::loadOne: database disk image is malformedJul 01, 2025 10:36:08.555 [23153162644280] WARN - Caught exception while scanning Movies: sqlite3_statement_backend::loadOne: database disk image is malformedIs there a way to save most of the configs if I were to rebuild? What would be the easiest way to go about fixing the db corruption, or easiest way to rebuild? Can I for example keep whats been played already if i rebuild?
July 1, 20251 yr https://support.plex.tv/articles/repair-a-corrupted-database/Depends on the plex docker you are running linux server docker image, then yes. Plex offical, no, any other that is not based on and off linux server no....This is due to the docker not having the sqlite packages installed to run the sql commands to login into the db file and repair the docker...as you will need to console into the docker run sql comands to connect to the plex db file and run sql comands to repair / fix the corruption...see github issue:https://github.com/linuxserver/docker-plex/issues/425#event-17945050644Ther I was presented with a docker mod option to install sqlite3GitHubGitHub - linuxserver/docker-mods at universal-package-ins...Documentation and Examples of base container modifications - GitHub - linuxserver/docker-mods at universal-package-installthen you can repair the plex database with this github project:https://github.com/ChuckPa/DBRepairmy placing the extracted tar realse file in the /config folder...with sqlite3 installed you can then run thorugh a nice script that will to it for you... This will repair plex...the script will shutdwon plex form within the docker, open the db file and run the plex needed sql comands to fix the coruption...
July 1, 20251 yr in plex extra parameters...-e DOCKER_MODS=linuxserver/mods:universal-package-install -e INSTALL_PACKAGES=sqlite3
August 20, 2025Aug 20 Author Thanks for the help, I rebuilt a plex anew but ran into the same issue again. I wasnt able to figure out how to run the repair commands but I will work with my brother in law on this. We were having issues actually figuring out how to present arguments to docker through unraid.It's really odd this would error out in the same way with 2 different plex installs, I wonder if the drives its hosted on are bad? Plex SHOULD be on some NVME drives my unraid appdata and whatnot is, not the data drives. Very annoying it would do that again like thatPlex Media Server Logs_2025-08-20_11-01-02.zip.
August 20, 2025Aug 20 There are two ways to interact with a container:This will open the conatiner console where you can run the commands inside the container shell. Click this button to open up the unraid console and type in docker exec -it plex followed by the command needed for sqlite db recovery (note: the container name in this command needs to be spelled exactly like it's named on your system and is case-sensitive)
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.