# DBRepair

DBRepair is a one-shot container that repairs a corrupted Plex Media Server database. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6101/dbrepair

## Description

DBRepair is a one-shot container that repairs a corrupted Plex Media Server database. It mounts the PMS data directory, runs an offline SQLite integrity check and repair, then exits automatically, making it suitable for self-hosters recovering from a database corruption without keeping Plex running.

## Platform availability

Available on 0 of 10 platforms.

## Health score

60/100 (Good), based on 4 of 5 factors.
- Maintained: 72 (last commit 3 days ago)
- Popular: 65 (1,775 GitHub stars)
- Easy to install: 15 (0 install platforms, install notes)
- Security check: 75 (no serious findings)

## Links

- GitHub: https://github.com/ChuckPa/DBRepair
- Docker Hub: https://hub.docker.com/r/bmmbmm01
- Official website: https://forums.plex.tv

## Common questions

### How long should DBRepair take, especially for a large database?

Cleaning and Exporting can take the longest, potentially hours, while the other steps progress more quickly. Stopping it early could cause database corruption. Once it finishes, the database should be back to normal size and you should not need to run WebTools DB Optimization.

### Can I still use the old DBRepair.sh with Plex 1.43 and later?

Plex 1.43.0 changes caused the old DBRepair.sh to be phased out in favor of a new compiled program. The current shell script has FTS repair disabled, and older PMS versions below 1.43.0 are not supported. You can still use it for normal optimization, but it will not address FTS issues.

### Where should I get the new DBRepair program packages while regular releases are paused?

The new DBRepair program packages are available as a ZIP file from the Plex Forum DBRepair development thread. The developer says the program is stable except for a few remaining edge cases around host and identity detection.

### Does DBRepair support Plex installed as a Snap?

DBRepair v1.04.00 has Snap support. The developer is asking users to report whether it solves the problem.

### Where will the Linux self-patch instructions for DBRepair.sh be posted?

Linux users who want to self-patch DBRepair.sh should look for the instructions in the Plex forum, where the developer said he would post them soon. Development testing for the new program will resume after the current database incompatibility issues are cleared.

## 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.
- Android TV: Android TV is Google’s operating system for smart TVs and streaming devices.
- 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…
- Plezy: Modern cross-platform media client with Flutter UI for native performance, streaming and offline playback, HDR and Dolby Vision support, pl…

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