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.

Plex-Database - moving to Docker

Featured Replies

Hi folks,

 

i decided to move my Plex installation from the extra folder to a docker because this "old" plex installation is not working properly under 6.3.1

Now i have some questions about the database because after my fist attempt, plex didn't see my database and creates a new one.

 

1) Is the old database compatible to the docker plex?

2) Why is the docker install of plex ignoring the old path of the database?

3) Is it generaly possible to use an "old version" database on docker?

 

The database files are stored under "/mnt/cache/data/plex" so maybe docker has no access to this path but i dont know, how to fix this.

 

Maybe someone can give me a hint, how to mange this with docker because my database is huge and i dont like to create a new on.

Thanks for your help

It should work, others have done it.  Docker paths are different because they're isolated, indirect.  Are you sure you understand how that works?  Check the Docker FAQ, I think it will help.

Hi folks,

 

i decided to move my Plex installation from the extra folder to a docker because this "old" plex installation is not working properly under 6.3.1

Now i have some questions about the database because after my fist attempt, plex didn't see my database and creates a new one.

 

1) Is the old database compatible to the docker plex?

2) Why is the docker install of plex ignoring the old path of the database?

3) Is it generaly possible to use an "old version" database on docker?

 

Maybe someone can give me a hint, how to mange this with docker because my database is huge and i dont like to create a new on.

Thanks for your help

Answer to 1 & 3 is "Depends"  IE: completely depends upon the app itself (and what you mean by "old" - old as in from the plugin but same version of plex, or old as in from the plugin running a previous version of plex).  Not quite sure what you mean by the question for #2

 

While not strictly applicable to plugin -> docker, this post http://lime-technology.com/forum/index.php?topic=40937.msg445818#msg445818 should get you through the process

  • Author

I use the latest version of Plex but still under the "extra" folder on the USB-FlashDrive - so old means "no Docker"

You could think of the "official" plex that gets installed from the extra folder as an unmanaged plugin. I think it has a Settings page in the webUI. Can you post a screenshot of the Settings page showing how you have it configured?

  • Author

Here is the screenshot of the Plex config  ;)

Its fairly simpel because there is not much to config.

But when i give this path to the docker install, it ignores this.

Plex-Settings.jpg.61bd5d53fe8005b9ad73bb4965bddd0d.jpg

You basically have a folder with the plex library in it and then plex has unrestricted access to all of your storage. Easy that way but not really conforming to the docker philosophy of isolation.

 

I personally don't like the "lazy" way of giving a docker access to all of your disks and user shares by mapping /mnt to /mnt, or even mapping /mnt/user to whatever.

 

Handling the library is going to be pretty simple. It is your other mappings that we need to figure out. Do you have specific user shares that you would like to let plex access?

On second thought, it probably isn't possible to use your current library without mapping /mnt to /mnt, since /mnt is where the library thinks everything is.

 

Do you have any other dockers installed?

  • Author

No there are no user shares - only a Movie share and a TV-Show share. So that means, docker hase some restrictions or did i understand it wrong?

Yes, i use plexpy.

Docker.jpg.46649b30facb3bedefbacee724149325.jpg

No there are no user shares - only a Movie share and a TV-Show share. So thats means, docker hase some restrictions or did i understand it wrong?

Yes, i use other dockers like plexpy and munin server.

Sounds like you have somehow missed out on the concept of user shares. When you say you have a Movie share and a TV-Show share, where do you see these shares in the unRAID webUI? Are they not under Shares - User Shares?
  • Author

No there are no user shares - only a Movie share and a TV-Show share. So thats means, docker hase some restrictions or did i understand it wrong?

Yes, i use other dockers like plexpy and munin server.

Sounds like you have somehow missed out on the concept of user shares. When you say you have a Movie share and a TV-Show share, where do you see these shares in the unRAID webUI? Are they not under Shares - User Shares?

 

You are right, they are under user share - my fault, sorry.

Shares.jpg.b3c9b5aa16bacb4cf765a12d61268bc5.jpg

Show us a screenshot of your plexpy docker settings.

  • Author

This are the screens from plexpy.

Is also installt under /mnt/cache but not at "data" but at "appdata"

Maybe i can fix the problem if i move all plex files from data to appdata?

plexpy_01.jpg.6001d13f7a508ef5aed618853ec7b2c2.jpg

plexpy_02.jpg.a13f6b3301cde76f6c3bcba3a1730cbd.jpg

OK, you already have an appdata share. Is it set to cache-only or cache-prefer?

  • Author

OK, you already have an appdata share. Is it set to cache-only or cache-prefer?

 

Prefer is used. This was a default - i didnt change anything on this folder/share

OK, you already have an appdata share. Is it set to cache-only or cache-prefer?

 

Prefer is used. This was a default - i didnt change anything on this folder

OK, that is the way it should be.

 

A little googling leads me to believe you can get your plex library to see your media in a new location, so it should be possible to isolate your plex docker and not give it access to your whole server. Doing that is a little more complicated though.

 

Have you read any of the Docker FAQ mentioned by others on this thread?

 

I would really like for you to actually understand volume mappings if you don't already. I think some never bother and just fill things like others have told them, then they really don't know how anything works and will never be able to help themselves.

 

Do you understand volume mappings?

  • Author

Pffff.... a little bit but not much and not for docker - so it seems difficult... hmmm, ok.

  • Author

So, what is the conclusion now? Is it possible to move the database or not? May i need to study the whole Docker Docs for just one Plugin how to get it working?

It seems that this is an overkill for just one Docker-App...  :-\

I don't understand why you think it's hard?  Or why you are asking if it can be done?  It would have only taken a few minutes to understand from the FAQ what is needed and why.  It's very simple.  For security, Docker containers are isolated from the full system, so in the container setup you map the paths that they can see, and they can't see anything else.  They cannot see the whole server.  Then in Plex you use the local mapping!  Simple!  What is so hard about that?

  • Author

Got it by myself now. The Point was to map the path for Movies and TV-Shows - in my case /mnt/user - and its working now.

Thanks for your help.

Got it by myself now. The Point was to map the path for Movies and TV-Shows - in my case /mnt/user0 - and its working now.

Thanks for your help.

You're going to want to use /mnt/user, not /mnt/user0  Any files movies / tv which are still sitting on the cache drive won't be playable using your path until mover runs

Got it by myself now. The Point was to map the path for Movies and TV-Shows - in my case /mnt/user0 - and its working now.

Thanks for your help.

You're going to want to use /mnt/user, not /mnt/user0  Any files movies / tv which are still sitting on the cache drive won't be playable using your path until mover runs

Agree. Seldom any good reason to use /mnt/user0 for anything. And if you don't know why you did it that way, then you have no reason to do it that way. Change it to /mnt/user and it should still work just fine.

 

Also, giving plex access to /mnt/user means you are giving it access to all your user shares, which it probably doesn't really need.

 

If you want to try to do this better, take a look at this link from plex. If you understand volume mapping, you should be able make more restrictive volume mappings for each of the user shares plex does need to access, and then get plex to find them using the information given at that link.

  • Author

Thanks Squid and trurl, you are right - /mnt/user is the right path. With user0, i am not able to play my movies, so i changed it.

Thanks for this hint  ;)

 

EDIT: Plex-Docker is working now, BUT... i was not able to use the existing Plex-Database. As soon as i copy all files to the new location, PlexWeb and the Server are not working. Docker says, Plex is running but the client cant see the Server - so there must be some differences between Docker plex and plex at the extra folder...

 

Archived

This topic is now archived and is closed to further replies.

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.