[Support] Linuxserver.io - Plex Media Server


Recommended Posts

Under Settings -> Transcoder, the "Transcoder temporary directory" is listed as /var/tmp.

 

Correct me if I'm wrong, but that's essentially a non-persistent location on what is essentially a "ram disk?"  That is to say, its not anywhere on /boot and its certainly not on my array anywhere.  Which doesn't explain why huge files are showing up inside the plex folder under appdata.

 

So I changed it to /mnt/user/temp which is a less than ideal location because its slow, however if it starts creating large files again, the array has enough room that it won't make a huge difference if I don't catch it right away.

 

These files seem like temporary files, should they not be getting deleted by Plex during some maintenance event of some sort?

Link to comment

You haven't told us which of those paths are container paths, which are host paths.

 

57 minutes ago, tucansam said:

Under Settings -> Transcoder, the "Transcoder temporary directory" is listed as /var/tmp.

 

Correct me if I'm wrong, but that's essentially a non-persistent location on what is essentially a "ram disk?"

Assuming this is a path specified within the Plex application itself, it sounds like a path that would be inside docker.img unless you have mapped it to the host.

 

59 minutes ago, tucansam said:

So I changed it to /mnt/user/temp which is a less than ideal location

That also sounds like a path that would be inside docker.img unless you have mapped it to the host.

 

Do you understand mappings?

 

Link to comment

Not sure if I understand mappings or not.  I think what happens inside a docker image is magic and I don't understand any of it, at all, even a little bit.

 

/mnt/user/temp is a share exported by my unraid server as "temp" across the network, so I guess that would make it a host path, right?

 

Link to comment
18 minutes ago, tucansam said:

Not sure if I understand mappings or not.  I think what happens inside a docker image is magic and I don't understand any of it, at all, even a little bit.

 

/mnt/user/temp is a share exported by my unraid server as "temp" across the network, so I guess that would make it a host path, right?

 

Only if you mapped it in the docker settings. Example- I use /transcode for transcode location in plex and I have it mapped to /tmp/PlexRamScratch/ which is a folder in unraid's ram.

1275509877_ScreenShot2021-08-23at7_34_05PM.png.15d4f75006f27d29868ed0c21541f667.png

 

You would need a similar mapping.

Link to comment

So /tmp is RAM, then, and I am free to put stuff there that I don't need to survive a reboot?  Stupid question, I know.  But before I accidentally fill up my 8GB USB unraid thumb drive I want to be certain.  Mine has a lot of stuff in it:

 

root@ffs2:~# ls /tmp
ca.backup2/              fix.common.problems/      recycle.bin/
ca_notices/              notifications/            tmux-0/
community.applications/  plugins/                  unassigned.devices/
emhttp/                  preclear_assigned_disks1  user.scripts/
root@ffs2:~#
 

 

Link to comment

Seems this has gotten off track. As far as I know, Plex does Sync+ into a subfolder of Transcode, and there isn't any way to change that.

 

By default, Transcode is a subfolder of the Plex library (appdata). Many people configure Transcode to go to RAM instead for improved performance.

 

But RAM may not have enough space for Sync+, which was the point of my earlier post.

On 8/23/2021 at 11:50 AM, trurl said:

You should setup Transcode to go to some share outside appdata if you are going to be doing large Plex syncs.

 

Link to comment
On 8/24/2021 at 7:08 PM, wgstarks said:

Where are these files being created (file path)?

 

 

/mnt/disks/ssd/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+/36266422/61/379844.mp4
/mnt/disks/ssd/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+/36266422/e8/254825.mp4
 

These are 700-1000MB each.  

 

Are these left over temp files from some failed watching of content?  Can I delete them?  I'm manually tar'ing my appdata folder and have noticed a ton:

 

root@ffs2:/mnt/disks/ssd/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache# find . * | grep mp4
./Transcode/Sync+/36266422/61/379844.mp4
./Transcode/Sync+/36266422/e8/254825.mp4
./Transcode/Sync+/36266422/5f/14352.mp4
./Transcode/Sync+/36266422/32/14353.mp4
./Transcode/Sync+/36266422/4b/14354.mp4
./Transcode/Sync+/36266422/31/14355.mp4
./Transcode/Sync+/36266422/e3/256938.mp4
./Transcode/Sync+/36266422/47/256936.mp4
./Transcode/Sync+/36266422/fb/256939.mp4
./Transcode/Sync+/36266422/36/256940.mp4
Transcode/Sync+/36266422/61/379844.mp4
Transcode/Sync+/36266422/e8/254825.mp4
Transcode/Sync+/36266422/5f/14352.mp4
Transcode/Sync+/36266422/32/14353.mp4
Transcode/Sync+/36266422/4b/14354.mp4
Transcode/Sync+/36266422/31/14355.mp4
Transcode/Sync+/36266422/e3/256938.mp4
Transcode/Sync+/36266422/47/256936.mp4
Transcode/Sync+/36266422/fb/256939.mp4
Transcode/Sync+/36266422/36/256940.mp4
root@ffs2:/mnt/disks/ssd/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache#

Link to comment
14 hours ago, Schicksal said:

Do you have those little preview thumbnails activated?

They are getting huge.

 

 

You mean the thumbnails for movies and show posters?  Or individual episodes an scenes?

 

How do I turn them off?

 

 

 

Link to comment
On 8/15/2021 at 2:09 PM, tucansam said:

Hey guys,

 

I noticed some giant MP4 files in my plex appdata share.....

 

/mnt/disks/ssd/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+/36266422/61/379844.mp4
/mnt/disks/ssd/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache/Transcode/Sync+/36266422/e8/254825.mp4
 

These are 700-1000MB each.  

 

Are these left over temp files from some failed watching of content?  Can I delete them?  I'm manually tar'ing my appdata folder and have noticed a ton:

 

root@ffs2:/mnt/disks/ssd/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache# find . * | grep mp4
./Transcode/Sync+/36266422/61/379844.mp4
./Transcode/Sync+/36266422/e8/254825.mp4
./Transcode/Sync+/36266422/5f/14352.mp4
./Transcode/Sync+/36266422/32/14353.mp4
./Transcode/Sync+/36266422/4b/14354.mp4
./Transcode/Sync+/36266422/31/14355.mp4
./Transcode/Sync+/36266422/e3/256938.mp4
./Transcode/Sync+/36266422/47/256936.mp4
./Transcode/Sync+/36266422/fb/256939.mp4
./Transcode/Sync+/36266422/36/256940.mp4
Transcode/Sync+/36266422/61/379844.mp4
Transcode/Sync+/36266422/e8/254825.mp4
Transcode/Sync+/36266422/5f/14352.mp4
Transcode/Sync+/36266422/32/14353.mp4
Transcode/Sync+/36266422/4b/14354.mp4
Transcode/Sync+/36266422/31/14355.mp4
Transcode/Sync+/36266422/e3/256938.mp4
Transcode/Sync+/36266422/47/256936.mp4
Transcode/Sync+/36266422/fb/256939.mp4
Transcode/Sync+/36266422/36/256940.mp4
root@ffs2:/mnt/disks/ssd/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache#
  


Safe to delete?

The /Sync+ folder is where Plex stores the temp files that users select to be downloaded to their devices until they are downloaded.  It is not controlled by the trancode folder location, which is where tmp files created when a file is streamed are stored.  If they aren't being removed, then one of your users has (probably) mistakenly selected lots of files e.g. a whole season or a whole library to be downloaded, but e.g. doesn't have the space on their device to sync them, or have enough BW to sync them, or never connects that device again for long enough, meaning they don't get uploaded to their device.

 

Sadly, Plex doesn't make it easy to work out which user is syncing.  I don't like the feature for my users as they always do it wrong, meaning my server wastes a lot of resources and space, so I turn off user syncing for most users.  If you don't want this behaviour, then go through each of your users and Disable "Allow Downloads".  Then delete the files from the Sync+ folder.

Edited by DZMM
  • Like 1
Link to comment

I love this container for it's ease of configuring HW transcoding using my Nvidia P2000 also for HDR tone mapping.

I need help figuring out how I can direct play from Plex clients on a vlan/subnet different from the unRAID server. The unRAID server is on 172.27.10.1/24. All clients on the same subnet can direct play content but smart TVs, Apple TVs etc are on an IoT vlan 172.27.20.1/24. When playing back from these clients all content is played through the relay and transcoded down to 1.9Mbps. I'm experienced with Plex and been running it for many years. I have another Plex server on Windows also on 172.27.10.1/24 and clients on 172.27.20.1/24 direct play from this server. The firewall rules in place between the vlans allow connections from 172.27.20.1/24 on all Plex ports, including GDM, to both the unRAID Plex server and the Windows Plex server. The container is running i host network mode.

 

I'm pulling my hair out not having been able to resolve this. What troubleshooting steps can I take? Or is this i limitation of running Plex in a container? (I did some quick testing using other Plex containers with the same issue e.g. official Plexinc and binhex Plex containers) 

Link to comment
2 hours ago, alturismo said:

may take a look here in plex settings if that helps

image.thumb.png.2dbe745f3f0437e2fb198ec3946adba7.png

Thanks but that's not it. I forgot to mention that the 172.27.20.0/24 IoT VLAN has been defined in LAN Networks already and the config is exactly the same as on the Windows based Plex server which can be accessed directly by clients in the IoT network...

Link to comment

No expert here.  But do you have your Plex Docker's Network set to Host?

 

If it is set to Bridge (or something else), I would kinda expect the setting in the Plex app not to work.

 

With it set to Host, then it might work, or it may need some extra Docker Voodoo (Variable?) to pass that setting to the outside world (or let it in).  Just spit balling here...

 

 

PLEX Host.JPG

Link to comment

I found this.  Perhaps opening up GDM Network Discovery ports?

 

  

On 10/18/2019 at 3:24 PM, adminmat said:

Update!  I got it working! This time with much less whining on the forums as usual 😃

It was GDM Network Discovery!! I had to open a destination port range to my Plex server's IP address. Ports 32410 to 32414.

So I'm allowing GDM port range 32410-32414, UDP to my Plex IP address!

I'm allowing 32400 and 8324 also to the Plex IP. 

Thanks @Hoopster for looking at it with me.

 

solution.PNG.99e720396fe0404dbdb4168ec0a28ceb.PNG

 

Link to comment

When I play videos on my Roku, the first 3-5 seconds of audio is missing.  Videos play, but there is no sound at all.  Eventually the sound catches up and then all is well.  Has been doing this now for about a week, no change in the server config that I am aware of.

 

When I play videos on the Plex app on my LG TV, audio is not sync'd with video.  If I change from "original quality" to the one just under it, ie, "original quality 10.8mbps" to "10mbps" then it works just fine.  I only watch on the TV a few times a month, so not sure when it started happening.

 

In the browser on my PC none of these problems exist. 

 

No problems of any kind existed a month or so ago.

Link to comment
3 hours ago, ConnerVT said:

No expert here.  But do you have your Plex Docker's Network set to Host?

 

If it is set to Bridge (or something else), I would kinda expect the setting in the Plex app not to work.

 

With it set to Host, then it might work, or it may need some extra Docker Voodoo (Variable?) to pass that setting to the outside world (or let it in).  Just spit balling here...

 

 

PLEX Host.JPG

Thanks, network is already set to host mode (which is the default for this image)...

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.