Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unraid plexinc/pms-docker plex database corrupted. Help navigate through the madness

Featured Replies

Just have so much information, but just need some step by step assistance on navigating with unraid's terminal and the right commands related to Plexinc and version 6.12.10 . I have started the basics steps but not getting anywhere. Using PlexDB Repair utility but different command needed for plexinc docker in Unraid. Anyone encounter this dilemma?

Edited by ButchR
More information needed to acquire the right help.

  • Author

Wow. Thank you. I will read this more in depth to plan a strategy for my issue with plex-inc docker app.

  • 2 weeks later...
  • Author

Update, been reading some information on using app dbrepair. Just wanted to make sure I have the many setting values correct.

image.png

Here is an reference example from documentation:

image.png

I am going to change Repository to plexinc/pms-docker as in this document, right? Is the any other settings that need to be changed other Plex Database Folder, to into this unraid docker app?

Edited by ButchR

  • Community Expert

Correct

as that tells the docker to kill teh corect plex if its not stoped more a safety net catch all but its best to use the repo to guarantee that docker only is stoped. leaving as plex will intaite a search so anything with the word plex will be killed / stoped...

the tricky part is settign the please database path, which should mirror your appdata folder.

  • Author

Okay. I just changed Repository.

image.png

This is an example in document:

image.png

This is my dbrepair docker install setting before install process.

image.png

This is my shares view. Please note you will see DBRepair there already. This is because I started to do some steps manually ( 2 weeks ago). Did some prep, but did not run dbrepair. Just could not figure out the proper execution for plexinc-docker. Just wanted to confirm the correct path to install dbrepair docker correctly. Please see below.

image.png

  • Author

I hope everything made sense. I am just installing the dbrepair app on my Uraid server. On the second page of the install page setting parameters I need to confirm the correct settings. This is the correct path to use, right?

/mnt/user/appdata/PlexMediaServer

image.png

  • Author

Think I am ready to continue, right?

image.png

  • Community Expert

yes, looks good

if you cd /mnt/user/appdata/Plex-Media-Server
and run command ls to list the contents

You should see a "Library" folder. If yes, then that's correct!

root@BMM-Tower:/mnt/vm-zfs/Dockers/Plex/database# ls

DBRepair.sh* Library/

root@BMM-Tower:/mnt/vm-zfs/Dockers/Plex/database#

  • Community Expert
13 minutes ago, ButchR said:

Think I am ready to continue, right?

image.png

the repositoy it self is wrong you don't change the repository at the top that the docker tag you pull
image.png

bmmbmm01/plex-dbrepair

repostiry should never change..

That repository needs to go here:
image.png

replace plex with the repository tag you have...

  • Community Expert

I see whats going on now... appologies for my over sight i didn't see what you rarly had on screen shot..
as in thoery the only thing you frealy have to do is add teh appdata folder to the plex Library and click apply no other chnages should be necessay to run a automatic repair...


what I recomend is opening 2 web pages in unraid...

this way we can grab the data needed...

image.png

so in one page be at teh dm repair install page noted on teh left. and edit your plex docker to grab the needed data form the right...

example:

Step 1 set the Plex folder path:
image.png

OPTIONAL / Recomend step 2 set the container name or image

image.png

OR

image.png

thats it... run my docker dbrepair...

Edited by bmartino1

  • Author

Sorry, I am confused. So I selected to install dbrepair app on unraid, then I get the following page in the install process:

image.png

I should not update this page ?

  • Author

Okay I see your new information now.. I will look at it now.

  • Author

Oh I am following your steps fine. Maybe I am missing something. Just wondering about step 2. Plex_Container_Match, Left top and bottom screen are the same. But the right top and bottom are different highlighted values . What should the Plex_Container_Match be the name or the repository value?

  • Community Expert

either or pick one. this is how my docker identifes the plex continer. by default it will search unraids dockers for anythign conting plex

I recomend using the repository image as its a direct this one and kill.

  • Community Expert

the issue you have atm is your calling a plex docker image and not my docker image:
image.png

you may need to delte your cuirent tempate and reinstall per teh CA Docker template:

go to
image.png
select teh template:
image.png

and hit the x to remove the tempalte:
image.png

then go to the apps page and install... Your making this more complcated then it actual is...

  • Author

So "step 2 set teh continer name or image" has two options?

image.png

What determines the correct option in step 2 for my setup?

Dbrepair has not been installed in unraid docker, yet.

Sorry I hope I did not give the wrong information where my unraid plex is setup now. I don't understand completely. What exactly is the issue. When I installed Plex initially I used plexinc.

  • Community Expert

step 2 is optional stop trying to set it if you don't know...

  • Author

Okay. I just like figure out what steps I need to take now to repair the database. Lot of information for me, I need to reassert where I am in the process and define what is my step by step scenario is now.

  1. Need to install dbrepair app for my Unraid server. (Set configuration)

  2. Run dbrepair app.

  • Author

I am discovering some information. Just enough to get me a few steps to succeed I hope. Okay docker repositories are in two different forms; Images or Docker (format) I am reading the link information about both right now.

image.png

Also, looking into templates for docker containers. Trying comprehend the complex in a short period of time to fix my Plex database corruption. I wish I knew all that there is know to resolve this issue.

Edited by ButchR

  • Community Expert
4 hours ago, ButchR said:

Okay. I just like figure out what steps I need to take now to repair the database. Lot of information for me, I need to reassert where I am in the process and define what is my step by step scenario is now.

  1. Need to install dbrepair app for my Unraid server. (Set configuration)

  2. Run dbrepair app.

You're killing me here :/ ... I can't type to save my life...

correct I can't make it any simpler as I can't preset data I don't know... and don't have full data here no other info that i can use to fully clairfy and I can't assist anymore... GO ASK AI!

Also things your asksing are outlined in the template! Outlined Here mutiple times and expalined on the DOkcer hub and the unraid suprot post...
So I don't understand nor get your confusion... and IDK what your doing outside of not asking clear cut question... or not folwing basic instructions... too braod... not specfic enouth...

I don't know if you didn't use a template default data path to the plex media folder that contins the database files... PLEAS POST THE APPDATA FOLDER FOR YOUR PLEX FOLDER AND WHAT DOCKER IAMGE YOUR RUNNIGN!!!!
IDK which plex is your main plex IDK wher your data is And I don't need to know...

POST A DAM DIAG FILE!!! some one else will assit...

I don't know how your runnign plex. There are Many plex dockers. I prefer linuxserver per example...

Your caught up on a non problem due to the nature of how i programed the docker and the template based on a recomendation to supply what ever your plex dokcker repository docker image is... AND are in advacne seeting chaign things you shouldn't

SO AGAIN! So the plex match is litelr a "filter" of words to find what the filter catches and dockers to kill so the plex docker to ensure it is stoped. AS YOU WILL BREAK PLEX IF ITS ON AND THIS CONECT TO THE DATBASE TO REPAIR!!!
ALL it does, by this setting islooking for anything with "plex" per docker ps and KILL IT! so no plex is NOT running!

as my docker hub image/repoiostoy
https://hub.docker.com/r/bmmbmm01/plex-dbrepair
the unraid temaptel based on your edits NEEDS TO BE DESTORYED AND INSTALLED default settings... with only 1 change...

SEE SUPPORT!:
https://forums.unraid.net/topic/196453-support-plex-db-repair-docker/#findComment-1601211
based on the unraid tmplate I've done a lot of YOu can't mess this up scripting in this docker... As IT will auto map the unraid docker sock to connect to be able to kil dockers, This will auto filter and kill any and all things named plex (with safe guards to not killl itself as the dbrepair image is called plex-dbrepair)...

This will auto run the dbreapir automatic unless you change the variables... LIKE DID YOU EVEN READ THE ORANGE! or tempate settings...

just set the appdata and click apply this auto does EVERYTHING FOR YOU! You ONLY AND just need to set the DB folder to the plex Libray folder... thats it...

PER YOOUR POST AND DATA HERE this should be:
/mnt/user/appdata/Plex-Media-Server

Otherwise YOU HAVE A DIFFENT DAT PATH TO THE DATABASE!

SO RECAP!!!
DEFUALT TEMPTE INSTALL CHANGE ONLY THIS!!! AND NOTHING ELSE!
image.png

CLICK APPLY
image.png

then open the docker/ continaer log of dbrepair... as THIS RUNS THE SCRIPT AND DBREPAIR APP!!!! LET it finish...

dbreapir automaticaly will run and repair the plex database...
See LOG THAT IT!

I litterly can't make it any simpler.... Ialso Can't gurantee a dbrepair will fix your isseus given basic docker and unraid tempatle setups... given teh issues here...

To assist further, I will not be back... Please Post the docker your trying to repaire SCREENSHOTS! and MY DOCKER LOGS based on the log I can infomr you what happened....!
Then i can assit further... as You shouldn't have to supply the plex OR EDIT THE repo... its recomen so only that gets killed. as if you have plex or if plex is in any other docker this Docker will KILL THEM! That all

https://youtu.be/URXvnFnlUeE?si=yBVbU6tk2zr-N8dS

  • Author

Oh thank you very much for your help.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.