Plex will not run, says Stopped Manually after a few seconds

From Plex Media Server.log:

Feb 16, 2024 10:33:56.798 [140079610399376] ERROR - SQLITE3:0x80000001, 11, database corruption at line 70168 of [a29f994989]
Feb 16, 2024 10:33:56.798 [140079610399376] ERROR - SQLITE3:0x80000001, 11, database disk image is malformed in "PRAGMA cache_size=2048"

You’ve database corruption. It is bad enough that Plex Media Server refuses to run.

Option: Plex DBRepair Utility

If you are familiar with the Linux CLI, use the Plex DBRepair Utility [Download].

Run it as root. Use the AUTOMATIC option. If it runs into problems importing the database, try the IGNORE option.

If the repair fails, try the REPLACE option, to restore a backup copy of the database.


Option: Restore from backup with FileStation.

If you are not comfortable with the Linux CLI, you can try to restore from a backup using Synology File Station.

Note that this procedure does not check for database corruption, so it is possible that the backup may also be corrupt.

See FAQ 30 - DSM 7 - Database Repair using a Backup copy.


Option: Delete and start over

If the database cannot be repaired and no viable backup exists, then you can delete the database.

You will have to re-create all libraries and reshare them with any friends/family.

To delete the databases:

  1. Ensure Plex Media Server is stopped.
  2. Using File Station, navigate to the database folder, /PlexMediaServer/AppData/Plex Media Server/Plug-In Support/Databases.
  3. Delete everything in the folder.
  4. Start Plex Media Server.