"Scan Library Files" is not adding (or removing) Movies

FYI, 4.139.0 is the version of Plex Web. The version of Plex Media Server is listed further down, under the server name (Settings → Server_Name → General). Your server is running v1.41.0.8994.

Thanks for including the log files.

From Plex Media Server.log:

Sep 30, 2024 15:15:07.324 [0x700000a22000] ERROR - [DatabaseFixups] SQLITE3:(nil), 11, database corruption at line 68825 of [a29f994989]
Sep 30, 2024 15:15:07.324 [0x700000a22000] ERROR - [DatabaseFixups] SQLITE3:(nil), 11, database corruption at line 68975 of [a29f994989]
Sep 30, 2024 15:15:07.324 [0x700000a22000] ERROR - [DatabaseFixups] SQLITE3:(nil), 11, statement aborts at 7: [SELECT coalesce((SELECT max(blockid) FROM 'main'.'fts4_metadata_titles_icu_segments') + 1, 1)] database disk image is malformed
Sep 30, 2024 15:15:07.324 [0x700000a22000] ERROR - [DatabaseFixups] SQLITE3:(nil), 11, statement aborts at 172: [update metadata_items set extra_data=? where metadata_type=? and library_section_id=? and id=?] database disk image is malformed
Sep 30, 2024 15:15:07.325 [0x700000a22000] ERROR - [DatabaseFixups] Exception inside transaction (inside=1) (/System/Volumes/Data/data/actions-runner/_work/plex-media-server/plex-media-server/Library/MetadataCollection.cpp:525): sqlite3_statement_backend::loadOne: database disk image is malformed
Sep 30, 2024 15:15:07.325 [0x700000a22000] ERROR - [DatabaseFixups] Fixup 29DatabaseFixupsSyncCollections threw an exception: sqlite3_statement_backend::loadOne: database disk image is malformed

The server has database corruption.

Download and run the Plex DBRepair Utility: GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server databases

Use a MacOS terminal window to run it.

Stop PMS, then use the AUTO option to try repairing the database.

If it cannot repair the db, reply back to the thread with the output from the terminal window.

You can also try REPLACE. It will check the backup databases and use one of those if possible.

The README has additional information on how to use the tool.


This works on Linux. MacOS should be similar.

# Download latest version. 
# This overwrites any existing version.  Remove "-O DBRepair.sh" to not overwrite.
wget -O DBRepair.sh https://github.com/ChuckPa/PlexDBRepair/releases/latest/download/DBRepair.sh

# Make it executable
chmod a+x DBRepair.sh

# Run it
./DBRepair.sh
1 Like