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.

Docker File on my Cache drive is 63 gigs and Plex will not add new files.

Featured Replies

Hey there.  I have encountered a problem and I think it may have something to do with my server.

 

I run a Plex server with my rig and currently it's not adding new content when I add it, however I can see that it SCANS the new files, just not add them.  Up until recently I had the settings set to that new content goes to the cache driver first and I could use the MOVER to move the files to the array. I had that set up for about 2 years.  Recently, when I move files from my PC to the server, they will show up on the server but when I scan they will not be added to Plex.  I installed Jellyfin just to troubleshoot and Jellyfin picked up the files that Plex missed.  Has anyone else had this problem?  I've already done all the Plex clearing metadata and saving room troubleshooting that I have read online and it still doesn't work.  Could I delete the Docker Image and just rescan the libraries?  I honestly don't know how to proceed.

  • Community Expert

You need to fix your container volumes/paths to stop plex from writing data inside the docker.img.

 

Post a full screenshot of your plex docker template, if necessary redact your plex claim token if one is visible.

Edited by MowMdown

  • Community Expert
1 minute ago, MowMdown said:

Post a full screenshot of your plex docker template

Even better would be your docker run

  • Author
43 minutes ago, MowMdown said:

You need to fix your container volumes/paths to stop plex from writing data inside the docker.img.

 

Post a full screenshot of your plex docker template, if necessary redact your plex claim token if one is visible.

Where would I find my Plex docker template?  Sorry I am new.

  • Community Expert
11 minutes ago, TwoWheelUnion said:

Where would I find my Plex docker template?  Sorry I am new.

Click on the plex docker icon, click edit, that's the template.

  • Author
9 hours ago, trurl said:

Even better would be your docker run

 

PLEX2.jpg

  • Author
8 hours ago, MowMdown said:

Click on the plex docker icon, click edit, that's the template.

 

PLEX.jpg

  • Community Expert

in plex did you run the trouble shoot tools?

image.thumb.png.b69e7deed6ca2d1dc92595aa27147652.png

I would recommend moving to Linux IO Plex Docker...
As example to fix you docker pathing and data...
as it sounds like you hit you 100 GB set for the docker image and you let /config (plex Library / sql grow outside of a volume...
image.thumb.png.8a2c88ce9cfbe863900a4a3be4714e10.png

Edited by bmartino1

  • Author
9 hours ago, TwoWheelUnion said:

So I tried this.  I deleted the docker file then reinstalled previously installed apps now plex is doing this.  Please help, any suggestions would be good.  Jellyfin and tautulli are working perfectly after the docker delete and re-install.

PLEX 3.jpg

  • Author

I asked Chat GPT about the error and it said this.

 

The error code you're seeing indicates that your Plex Media Server is performing database migrations, which can happen after an update or when there are significant changes to the library. Here’s how you can address this issue:

Wait it Out: Sometimes, the best approach is to simply wait. Database migrations can take some time, depending on the size of your library and the changes being made.

I just wonder if it's trying to connect to an new IP or something.

  • Community Expert

give it time to parse your library data. that normal to see

If longer than 3 hours stop start the docker and check again.

Edited by bmartino1

  • Author
7 minutes ago, bmartino1 said:

give it time to parse your libary data. that normal to see

 

Thanks for the reassurance.  I just wonder why jellyfin worked right away.

  • Community Expert
4 minutes ago, TwoWheelUnion said:

Thanks for the reassurance.  I just wonder why jellyfin worked right away.

plex use a sql file to help speed things up and that database need to match settings and confirm or fix things before it can be used for media sharing. Jellyfin doen't..
 

 

Edited by bmartino1

  • Community Expert
1 hour ago, TwoWheelUnion said:

 

PLEX.jpg

 

I see a couple things you can improve on here:

 

1. Your media should be stored in a root share that you would have created. For example: /mnt/user/plexmedia and then inside that would be your plex library folders "movies" and "tv shows"

 

Your first path should be changed from /mnt/user to /mnt/user/plexmedia (or whatever you call it)

 

2. The transcode path is not a valid unraid location, ideally you'd just delete this or leave it blank and let plex handle it. If you prefer to transcode to your system RAM you could change it from /config/transcode to /dev/shm

 

These should fix your issue.

  • Author
1 minute ago, bmartino1 said:

plex use a sql file to help speed things up and that database need to match settings and confrim or fix things before it can be used for medai sharing. Jellyfin doen't..

If it helps when I go into "logs"  it says this.

2024-10-29 18:41:50,096 DEBG fd 8 closed, stopped monitoring <POutputDispatcher at 22418751581952 for <Subprocess at 22418748570848 with name plexmediaserver in state STARTING> (stdout)>
2024-10-29 18:41:50,096 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 22418745763616 for <Subprocess at 22418748570848 with name plexmediaserver in state STARTING> (stderr)>
2024-10-29 18:41:50,096 WARN exited: plexmediaserver (exit status 255; not expected)
2024-10-29 18:41:50,097 DEBG received SIGCHLD indicating a child quit
2024-10-29 18:41:52,100 INFO spawned: 'plexmediaserver' with pid 439
2024-10-29 18:41:52,848 DEBG 'plexmediaserver' stdout output:
Error: Unable to set up server: sqlite3_statement_backend::loadOne: database disk image is malformed (N4soci10soci_errorE)

  • Community Expert
1 minute ago, TwoWheelUnion said:

If it helps when I go into "logs"  it says this.

2024-10-29 18:41:50,096 DEBG fd 8 closed, stopped monitoring <POutputDispatcher at 22418751581952 for <Subprocess at 22418748570848 with name plexmediaserver in state STARTING> (stdout)>
2024-10-29 18:41:50,096 DEBG fd 10 closed, stopped monitoring <POutputDispatcher at 22418745763616 for <Subprocess at 22418748570848 with name plexmediaserver in state STARTING> (stderr)>
2024-10-29 18:41:50,096 WARN exited: plexmediaserver (exit status 255; not expected)
2024-10-29 18:41:50,097 DEBG received SIGCHLD indicating a child quit
2024-10-29 18:41:52,100 INFO spawned: 'plexmediaserver' with pid 439
2024-10-29 18:41:52,848 DEBG 'plexmediaserver' stdout output:
Error: Unable to set up server: sqlite3_statement_backend::loadOne: database disk image is malformed (N4soci10soci_errorE)

 

See if you can restore the DB from a backup: https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/

  • Author
2 minutes ago, MowMdown said:

 

I see a couple things you can improve on here:

 

1. Your media should be stored in a root share that you would have created. For example: /mnt/user/plexmedia and then inside that would be your plex library folders "movies" and "tv shows"

 

Your first path should be changed from /mnt/user to /mnt/user/plexmedia (or whatever you call it)

 

2. The transcode path is not a valid unraid location, ideally you'd just delete this or leave it blank and let plex handle it. If you prefer to transcode to your system RAM you could change it from /config/transcode to /dev/shm

 

These should fix your issue.

Thank you for the help.  I have a question.

When you say "Your first path should be changed from /mnt/user to /mnt/user/plexmedia (or whatever you call it)"

Do you mean the NAME of the server or the location of the content?  Dumb question I just want to be super clear so I can help others when they have this issue.

  • Author
6 minutes ago, MowMdown said:

 

I see a couple things you can improve on here:

 

1. Your media should be stored in a root share that you would have created. For example: /mnt/user/plexmedia and then inside that would be your plex library folders "movies" and "tv shows"

 

Your first path should be changed from /mnt/user to /mnt/user/plexmedia (or whatever you call it)

 

2. The transcode path is not a valid unraid location, ideally you'd just delete this or leave it blank and let plex handle it. If you prefer to transcode to your system RAM you could change it from /config/transcode to /dev/shm

 

These should fix your issue.

Thanks I made the changes.  I'll leave it for a couple hours and see if that fixed the problem.  I appreciate you taking the time.  

What I did was change the path to the place where the media is located and changed the transcode path to /dev/shm.

Let's see what happens!

  • Community Expert

... template path datas:

example image.thumb.png.ef71cf2c77d75196d3a3431862eaf594.png
In my case /mnt/user/appdata is Docker...
Inside data which is my plex files for movies, TV shows etc...
image.png.8fe6a039e2b56a05739e9865eab759af.png

so in the docker template i pass:
/mnt/user/Docker/Plax/Data
as the continer see is as /data:

image.png.4f66724a6f1bb7399903930769bebfa3.png

so in Plex when i add a libary that has Movie vs TV shows I add
/data/Movies:
image.thumb.png.49718d7052dd072954b73224028c59fa.png

  • Community Expert
24 minutes ago, TwoWheelUnion said:

Thank you for the help.  I have a question.

When you say "Your first path should be changed from /mnt/user to /mnt/user/plexmedia (or whatever you call it)"

Do you mean the NAME of the server or the location of the content?  Dumb question I just want to be super clear so I can help others when they have this issue.

image.png.3c17280af077c15800b3175e30629860.pngimage.png.35f2c32b136925c3ff5bdc7a55462320.png

 

My setup has a "media" share that I use to store my "movies" and "tv shows" the host path of this location is "/mnt/user/media"

 

So for plex, I would map /media to /mnt/user/media so when you're inside plex, and you add a library, you'd navigate to /media/movies for the movies library and /media/tv shows to add a tv shows library

  • 1 month later...
  • Community Expert

if it was not clear.

Example Setup:
image.thumb.png.93a36f7ab71955c874d3c1b5d95974a6.png

 

image.png.6c4a762bef662eac3decbd5467b35a45.png

 

image.png.cb9b60fe4cff14209a7df763a20e092d.png
*M<y Setup is not a normal setup. for backup plugins and other stuff i chose to do things this way usualy /tv /movies /pictures are 3 seperate location on your nas in 3 seperate locations thus plex would see /tc /movies / pictures to share...


So! Think of containers / dockers as type of VM, in that they have a seperate folder path that they read and understand...
In this case the Plex docker, the contianer has a "/pathname" in my case here /data

 

image.png.f21769a35daefb2ed472fbe8b49aa2cf.png


There are some default pathing as all linux systems run such as /root /home /var etc etc...

So when making a docker contianer path I must look at what services it has and where i want it to see the data at and then pass the data into the container.
Plex will see /data in this VM within its own root file system, Then with unraid folder pathing for /data is the content I want shared into or used for the plex docker to use.

Since this is a docker. We can control what /data points too...

In my case, I have a unriad share name called Docker(see pictures above). In side Docker I have another folder hierarchy setup and since i have a docker, lets call it plex
and in plex I have a unique folder structure. (more for my backup scritp and interaction with plugins for a ring sync.

So I tell the unraid plex template that /data is /mnt/user/Docker/plex/data (which contains my 3 media folder)

Since this is plex and plex doesn't like videos and tv shows together, (As its a pain for metadata and how plex database auto sets file path sets and organizes / fixes its own data.)

in my media folder has a folder for  /tv /movies /etc ....
Plex /data will now see the data I want passed to it in one location, so when setting plex stuff i know its at /data/whatever-subfodler-name....

So the container Plex when I docker console and cd into /data. I see my folders on unraids disk. in that case its my list of... In Plex under setting librat i then tell moveis/tv /picture to point at /data /movie /tv etc...

 

image.thumb.png.5db04c99c787b9ce86a4d53b0544b4c7.png


this can be done with any docker. This includes a 1 for 1 file replacement... 

 

jellyfin is getting closer. I prefer plex due to access to tuner and iptv stuff i've done many moons ago... My gripe with jeely fin is file format and detection issues. Plex would atlest see the content even if it marked it as different content. Jellyfin is quick fast and works but not as robust yet.

Hope this helps in understanding docekr and folder/file pathing

more with docker compose as unriad tempalte more or less builds the "docker run" command using  docker cli:

more info can be found in docker docs:
https://docs.docker.com/reference/build-checks/workdir-relative-path/

https://forums.docker.com/t/dynamic-file-path-access-in-docker-container/144009


also some side plex stuf example for unraid.
I have a usb win tuner card for atenna TV as i have lifetime plex pass.
also with linux IO i can easily pass a nvdia GPU
image.png.a2ca53bc10699e386930e5a20a19d255.png


 

--runtime=nvidia --hostname plex-docker.home.arpa --device=/dev/dvb/ --device=/dev/dri:/dev/dri

My extra paramerters.
instead of haveing a nice web ui tempatel one coud use extra parm to -v for varable and set them here...

--runtime is a addon for drivers for nvdia / amd hostname sets a docker hostanme (more a macvlan thing ipvlan can use but dns can breakdwon due to same IP same name)
the first --device pass is the usb tunner. Yes i could have used add device at the bottom of the unrad tempalte... same with /dev/dri
*Due to nvdia dropping support for pascal I have found that pass /dev/dri will grant card access within plex docker. for now. v400 nvdia driver needs installed for pascal support in unrad.

/dev/dri(is unraids host):/dev/dri (Is what the plex docker conatiner will see)
per example and why i'm clarifying to help understand why it is this way.
 

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.