# Plex DBRepair

Plex DBRepair is a one-shot Docker container that runs the official compiled DBRepair release by ChuckPa to repair a corrupted or damaged Plex Media Server database. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/1992/plex-dbrepair

## Description

Plex DBRepair is a one-shot Docker container that runs the official compiled DBRepair release by ChuckPa to repair a corrupted or damaged Plex Media Server database. At startup it downloads the latest DBRepair build for the machine's architecture, you mount the Plex appdata folder, the repair runs once, and the container exits. It is aimed at homelab users troubleshooting Plex database problems, and you should stop Plex and keep a verified backup before running it, since the tool modifies the SQLite database directly. Avoid it on Plex 1.43.0 and later, where Plex changed its FTS SQL schema. Note: the project's GitHub repository has been archived, so no further updates are expected.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

12/100 (Low), based on 3 of 4 factors.
- Maintained: 0 (GitHub repository is archived)
- Popular: 14 (4 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)

## Links

- Docker Hub: https://hub.docker.com/r/bmmbmm01/plex-dbrepair
- Unraid: https://ca.unraid.net/apps/plex-dbrepair-0ol9xfv19k5ftr?q=plex-dbrepair
- GitHub: https://github.com/bmartino1/plex-dbrepair-docker

## Common questions

### Should I stop Plex before running Plex DBRepair?

Yes. Stop the Plex container or process before the repair, and if using the Docker helper variables it can use the Docker socket to stop and restart Plex.

### Which folder do I need to mount into the Plex DBRepair container?

Mount the parent Plex appdata directory to /config, not the Library folder itself. It must contain the Plex nested folders, including Library/Application Support/Plex Media Server.

### Does Plex DBRepair need exposed ports or network access?

No. The container does not need a network.

### Do I need to back up my database first?

Yes. The container modifies the Plex SQLite database directly, so you should have verified, working backups before proceeding.

### Is Plex DBRepair safe for the latest Plex database schema?

The project warns that it is not meant to be run on the latest Plex SQL changes to FTS.

## Alternatives

- Airwave: Airwave is a self-hostable service that turns your Plex library into custom, always-on live TV channels with a channel guide, recording, an…
- Ampache: Ampache is a self-hosted, web-based media server that streams and manages your music and video libraries from any device.
- Channels: Channels DVR is a self-hosted digital video recorder and streaming server that records live TV channels and lets you watch them alongside y…
- Emby: Emby is a self-hosted media server that organizes personal video, music, photo, and live TV libraries and streams them to smart TVs, stream…
- Infuse: Ignite your video content with Infuse – the beautiful way to watch almost any video format on your iPhone, iPad, and Apple TV.
- Jellyfin: Jellyfin is a Free Software Media System that puts you in control of managing and streaming your media.
- Kodi: Kodi is a free, open-source media center and player that organizes and plays movies, shows, music, and photos on TVs, computers, and mobile…
- MediaChips: MediaChips is a desktop app for organizing local media libraries.
- Music Assistant: Music Assistant is a self-hosted, open-source music library manager for Home Assistant.
- OSMC: OSMC (Open Source Media Center) is a free and open source media player based on Linux and founded in 2014 that lets you play back media fro…
- Plex: Plex is a LinuxServer.io Docker container that runs Plex Media Server so home users can organize and stream personal video, music, and phot…
- Rygel: Rygel is a home media server for Linux that shares your audio, video, and pictures across your local network.

---
Source: Our Local Host (https://ourlocalhost.com/app/1992/plex-dbrepair), the self-hosted and open-source app directory.
