Recently Plex server stopped honoring the setting:
TranscoderTempDirectory="/plex/tmp"
It created a directory /tmp/pms- and files in /tmp that look like random uuids. I have only recently ran into this issue after running PMS for at least 5 years. The files and dir were created a little after 3:00am, but I don’t see that anyone was accessing the PMS at that time.
I’m running on the beta channel, but will be reverting to stable to see if the problem goes away.
Ah ha! I found this in the log: Plex Media Server.5.log:May 23, 2020 05:00:24.051 [0x7f65827fc700] DEBUG - Job running: EAE_ROOT='/tmp/pms-d4409607-1179-44e8-8b4e-87c3756b9916/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/99c90e0-3095-linux-x86_64/' XDG_CACHE_HOME='/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache' XDG_DATA_HOME='/usr/lib/plexmediaserver/Resources' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Transcoder' '-codec:1' 'eac3_eae' '-eae_prefix:1' '6632720a-aec5-4a0c-aae2-ae8c3e48cf77_' '-analyzeduration' '20000000' '-probesize' '20000000' '-i'
I’m not sure what started provoking this, it it appears that the EAE_ROOT is the problem. Where can I set EAE_ROOT so it doesn’t sue the default /tmp volume?
Pretty sure that is the new ‘Skip Intros’ feature, that scans your TV Shows to detect the Intros. It has been added with the latest release of PMS (and is enabled by default)
I thought the TMPDIR was handled by setting that in the WebUI (which writes out Preferences.xml). Not sure why EAE_ROOT is using /tmp. It could have been using it for awhile, but I never noticed it until something else happened (even a change in how I’ve been using Plex Server).
Hopefully it will make it through the night without this problem. Would it be possible for Plex Server to honor a global tmp setting for whatever it is doing?
Oh interesting! I just checked and, sure enough, it is on. I don’t have an issue with it being on by default, but I would like the feature to honor the tmp dir setting.
My Transcoder temp directory is a ram disk to keep the files off the SSD. I wonder if I move this new temp directory to the RAM disk, would it add any efficiency or speed to the intro detection process?
EAE_ROOT isn’t a variable I know of. Where did you get that information?
(I’m aware of what the transcoder uses. Specifically, where is it set as externally accessible?)
I also overrode PLEX_MEDIA_SERVER_TMPDIR in case that is different from the Preferences.xml file. It seems to me that EAE_ROOT should honor one of those settings. Could you get clarification on which one it honors? If it is its own thing, then there needs to be a way to set it.
Ah! Ok. It appears that before the new feature, the Preferences.xml file did what I needed it to do. This is not good enough with the skip intro feature. Hopefully tonight, the PLEX_MEDIA_SERVER_TMPDIR setting fixes the issue with /tmp.
My recommendation is that there is a clearly labeled setting (WebUI?) that covered all uses of a temporary directory.
Yes, that is the setting I’ve had for something like 5 years now. The problem is that EAE_ROOT doesn’t know about that setting! I hope that this disconnect will be fixed.