Synology FAQ - Questions, Answers, and How-To's

FAQ 17: Recover from a corrupt database

On Synology NAS machines, we have direct GUI access to the database area.
We can use File Station to recover if PMS was previously able to make database backups

  1. Open Control Panel - Shared Folders - EDIT the Plex share
    a. Permissions tab
    b. Give your username R/W permission to the Plex share

  2. Open File Station

  3. Navigate to the databases folder

  • DSM 6: Plex / Library / Application Support / Plex Media Server / Plug-in Support / Databases

  • DSM 7: PlexMediaServer / AppData / Plex Media Server / Plug-in Support / Databases


4. If you have corresponding .wal or .shm for the main Database file, delete them

  1. Rename com.plexapp.plugins.library.db to com.plexapp.plugins.library.db-damaged

  2. Due to how Synology handles making copies of files (Skip or Overwrite only),
    a. Copy your most recent backup to another folder somewhere
    b. Rename it to add -copy to the name
    c. Move the renamed copy back here.

  3. Rename it to be the original, proper, name

  4. Right-click com.plexapp.plugins.library.db → Properties

  5. Set the owner to be plex . (It will have changed when you made a copy)

  6. Start Plex

  7. Scan Files to bring the database back into sync with your current media status

  8. When you are satisfied the -damaged file is no longer needed, you can delete it.

Go to Index

2 Likes