Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Plex; media no longer adding to library

Featured Replies

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.

image.png

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!

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 permission

set 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 image.png

and make sure you empty the trash to each of your libraries
image.png

Scan Library files and Refresh all metadata...

image.png

image.png

you can scan all your libraires for new content
image.png

otherwsie 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.

  • 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 malformed

Jul 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 malformed

Jul 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 malformed

Jul 01, 2025 10:36:08.555 [23153162644280] WARN - Caught exception while scanning Movies: sqlite3_statement_backend::loadOne: database disk image is malformed

Is 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?

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-17945050644

Ther I was presented with a docker mod option to install sqlite3

GitHub
No image preview

GitHub - linuxserver/docker-mods at universal-package-ins...

Documentation and Examples of base container modifications - GitHub - linuxserver/docker-mods at universal-package-install

then you can repair the plex database with this github project:
https://github.com/ChuckPa/DBRepair

my 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...

in plex extra parameters...

-e DOCKER_MODS=linuxserver/mods:universal-package-install -e INSTALL_PACKAGES=sqlite3

  • 1 month later...
  • 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.

There are two ways to interact with a container:

  1. image.pngThis will open the conatiner console where you can run the commands inside the container shell.

  2. image.png 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)

  • Author

Cool thanks! We'll try this tonight!

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.