[Support] Linuxserver.io - Plex Media Server


Recommended Posts

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
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
2 minutes ago, BigFam said:

All Plex ports are open, including the GDM ports... (and tcp/udp for all ports also checked and confirmed)

i may would take a look then in plex logs, there should be the entries why its transcoding (remote device ... even its not) and open a post on plex forums so they look at it.

 

your server seems to bet setup fine, your clients also have direct play enabled i assume, it works on the same network setup with a win based plex server, not much to help from here then anymore.

  • Like 1
Link to comment

Hello all,

Sorry if this has already been asked before, but I've been trying my best all day to find a solution, so I figured I'd ask here.

I need to set GenerateBIFKeyframesOnly="0". Apparently, this is done with the preferences.xml file.

According to the Plex documentation, for Docker:

https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/

The location of this file will "depend on what you specified when setting up the Docker container". Any idea what I need to do to apply this setting? Is preferences.xml even something I should be messing with, or is it something that can be configured in extra parameters? Again, sorry if this has already been asked before.

Link to comment
5 minutes ago, seansallislyon said:

Hello all,

Sorry if this has already been asked before, but I've been trying my best all day to find a solution, so I figured I'd ask here.

I need to set GenerateBIFKeyframesOnly="0". Apparently, this is done with the preferences.xml file.

According to the Plex documentation, for Docker:

https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/

The location of this file will "depend on what you specified when setting up the Docker container". Any idea what I need to do to apply this setting? Is preferences.xml even something I should be messing with, or is it something that can be configured in extra parameters? Again, sorry if this has already been asked before.

The file is in /appdata/plexmediaserver/Library/Application Support/Plex Media Server/

Link to comment
On 8/30/2021 at 6:56 AM, alturismo said:

i may would take a look then in plex logs, there should be the entries why its transcoding (remote device ... even its not) and open a post on plex forums so they look at it.

 

your server seems to bet setup fine, your clients also have direct play enabled i assume, it works on the same network setup with a win based plex server, not much to help from here then anymore.

I am an idiot. When going over the configuration for the 10th time I found that the IP-address of the unRAID Plex server in the firewall group for Plex servers was missing a number at the end. Correcting the FW ip group fixed this problem so 100%user configuration error.

Thanks all for your kind help!

  • Like 1
Link to comment
  • 2 weeks later...

I have noticed that in the middle of the night my server is spun up.  In the log I find this error

 

Sep 14 03:06:04 Tower kernel: Plex Media Scan[15898]: segfault at 10 ip 00001548b94b97ca sp 00001548b46e08b8 error 4 in ld-musl-x86_64.so.1[1548b94a9000+53000]

 

What is the cause of this and how do I fix it?

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.