Library Not Updating

Plex Media Server has a database that stores information about the media on your server.

If the database is corrupt, it will cause problems such as not being able to add/delete media from libraries. If the corruption is bad enough, Plex Media Server will cease to run.

You should download and run the PlexDBRepair utility.


Windows

  1. Go to https://github.com/ChuckPa/PlexDBRepair/blob/master/DBRepair-Windows.bat
  2. Click the download icon on the right side of the window:
    Screenshot (1900)
  3. Run the bat file from the command prompt. ex: C:\DBRepair-Windows.bat

Other Platforms (Linux, Docker, NAS, Mac, etc)


Windows Sample Output
c:\Temp>DBRepair-Windows.bat
13:50:03.44 --  ====== Session begins. (Fri 02/17/2023) ======
13:50:03.68 --  Exporting Main DB
13:50:18.92 --  Exporting Blobs DB
13:50:18.98 --  Exporting Complete.
13:50:18.98 --  Creating Main DB
13:50:22.34 --  Verifying Main DB
13:50:23.42 --  Main DB verification check is: ok
13:50:23.42 --  Main DB verification successful.
13:50:23.43 --  Creating Blobs DB
13:50:23.49 --  Verifying Blobs DB
13:50:23.63 --  Blobs DB verification check is: ok
13:50:23.64 --  Blobs DB verification successful.
13:50:23.64 --  Import and verification complete.
13:50:23.65 --  Reindexing Main DB
13:50:24.76 --  Reindexing Blobs DB
13:50:24.81 --  Reindexing complete.
13:50:24.81 --  Moving current DBs to DBTMP and making new databases active
        1 file(s) moved.
        1 file(s) moved.
        1 file(s) moved.
        1 file(s) moved.
13:50:24.82 --  Database repair/rebuild/reindex completed.
13:50:24.82 --  ====== Session completed. ======