Plex Database Corruption unRaid Server

Thanks s ton. I’ll give this a shot tomorrow. I understood the docker had to be stopped, but lost command line prompt with the service stopped. I’ll report back with any other questions/issues. Thanks so for the help.

@gadget069

The container itself must be running (so you can exec into it)

When DBRepair.sh understands its container, it can start/stop PMS from the command menu (as I show in the documentation) else you must stop PMS manually.

Container = RUN
PMS = STOP

That’s how it works.

I was still having some issues figuring it out. I just did a quick google search for using this tool. I should’ve in the first place. I found this youtube vid, Plex DBRepair Script on Unraid. Made sense and it worked. Maybe this vid will help other newbs like me. Thanks everyone for your help.

1 Like

when running ./DBRepair.sh I receive the error below

root@Tower:~# ./DBRepair.sh
bash: ./DBRepair.sh: /bin/sh^M: bad interpreter: No such file or directory

I’ve also tried to follow SpaceInvader One’s video, but get the below error when trying to run Plex SQLite

root@Tower:/mnt/cache/appdata/plex-sqlite/plexmediaserver# ls
CrashUploader* Plex\ DLNA\ Server* Plex\ Media\ Scanner* Plex\ Relay* Plex\ Script\ Host* Plex\ Tuner\ Service* etc/
Plex\ Commercial\ Skipper* Plex\ Media\ Fingerprinter* Plex\ Media\ Server* Plex\ SQLite* Plex\ Transcoder* Resources/ lib/
root@Tower:/mnt/cache/appdata/plex-sqlite/plexmediaserver# “Plex SQLite” “$DB” “PRAGMA integrity_check”
bash: Plex SQLite: command not found

any other suggestions?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.