Plex Transcoding Issue After Plex Update

Hello,
For a while I had the update notification lit up on the Plex server dashboard and I finally did it by doing:
sudo apt-get update
then
sudo apt-get upgrade

Previously this has worked without any issues except for one time and I had to reinstall the server and lost all of the server data like the watch show and movie data and all of the users who have played streams.

This time I had the problem updating again and it was only playing the streams locally via Direct Play. In the console I was getting this error:

Message

[Req#10cb5/Transcode/ddd0dfa9-bc60-4d17-aa4d-7ffef98e3b7a/bd13a7e1-2f4f-482e-9095-c9f04341f4e3] [eac3_eae @ 0x7ff30d13d580] EAE timeout! EAE not running, or wrong folder? 
Could not read '/tmp/pms-9b0bc462-cbe5-44cb-a6d1-f5f3b46f0a58/EasyAudioEncoder/Convert to WAV (to 8ch or less)/ddd0dfa9-bc60-4d17-aa4d-7ffef98e3b7a_14335-0-3073.wav'

After a bit of searching on google it sounds like it’s a permission issue that got screwed up during the update. Some people were saying to remove the codecs because plex would re-download them. I tried renaming them and restarting and no dice, so then I removed the folder ‘Easy Audio Converter’ and now nothing will play, even locally. So I think it’s safe to say I’ve screwed this up and probably need a reinstallation. So, is there a safe way to do a reinstallation without losing all of the server data?

Installation: VirtualBox image running on x64 based system

The files seems to be located inside /tmp folder. This is a tmpfs and usually will be cleaned up during reboot. Therefore, did you already tried to restart your system?

Yes I tried rebooting and also restarting the service and neither brought Easy Audio Converter back.

I tried watching a movie last night locally on plex and was successful, it’s just some movies/shows don’t play and transcoding non locally still doesn’t work.

Actually, it looks like the EasyAudioEncoder was re-downloaded after all. It must have took a little bit because it wasn’t there a few minutes after rebooting yesterday.

So it looks like im now back to my original problem after doing the manual update, im getting the error below:

Message
[Req#2b1bb/Transcode/58f60534-fc5c-44e6-93cf-7f9e49840163/9eb89c8f-5f28-4493-9384-f5c3db26b0da] [eac3_eae @ 0x7f00c3bdeb80] EAE timeout! EAE not running, or wrong folder? Could not read '/tmp/pms-068bc58b-70eb-4a5e-b2a9-8fe9788b22e9/EasyAudioEncoder/Convert to WAV (to 8ch or less)/58f60534-fc5c-44e6-93cf-7f9e49840163_29894-0-612.wav'```


[Req#2b1df/Transcode/057aac52-c6d4-4a41-9451-1b905540c418/f67c3782-dd2f-4d15-872d-09c119d9781d] Error while decoding stream #0:1: No space left on device

The 2nd error references no space left on device but there should be plenty. I did notice in HTOP that my cpu (for the vm) is at 100% and there’s 3 processes that say Transcoder and look like they are stuck possibly because nothing is currently being play on my server.

Here are the /tmp & /EasyAudioEncoder folders, maybe this will tell you what is not obvious to me?

dietpi@DietPi:/tmp$ ls -l
total 104
-rw-r--r-- 1 plex     dietpi   105965 May 17 07:59 43d67b0ac2bed4de021646eb3ead2028.jpg
drwxr-xr-x 3 plex     dietpi       60 May 16 21:05 pms-068bc58b-70eb-4a5e-b2a9-8fe9788b22e9
drwx------ 3 root     root         60 May 16 07:52 systemd-private-f81324c4c3cb4a81a8b92778c39cb7f3-haveged.service-ytCg65
prw-rw-rw- 1 root     root          0 May 16 07:52 vhclient
drwxrwxrwx 2 root     root         60 May 16 07:52 vhclient_ipc
prw-rw-rw- 1 root     root          0 May 16 07:52 vhclient_response
drwxr-xr-x 3 www-data www-data     60 May 16 07:52 www-data-temp-aspnet-0

dietpi@DietPi:/tmp/pms-068bc58b-70eb-4a5e-b2a9-8fe9788b22e9/EasyAudioEncoder$ ls -l
total 0
drwxr-xr-x 2 plex dietpi  40 May 16 21:05 'Convert to Dolby Digital (High Quality - 640 kbps)'
drwxr-xr-x 2 plex dietpi  40 May 16 21:05 'Convert to Dolby Digital (Low Quality - 384 kbps)'
drwxr-xr-x 2 plex dietpi  40 May 16 21:05 'Convert to Dolby Digital Plus (High Quality - 384 kbps)'
drwxr-xr-x 2 plex dietpi  40 May 16 21:05 'Convert to Dolby Digital Plus (Max Quality - 1024 kbps)'
drwxr-xr-x 2 plex dietpi  40 May 16 21:05 'Convert to WAV (to 2ch or less)'
drwxr-xr-x 2 plex dietpi 160 May 17 09:10 'Convert to WAV (to 8ch or less)'

Ahh the /tmp folder seems to be too small. You could try to enlarge this one or move temp location outside tmpfs.

I checked and it’s 5gb, do you think it should be doubled?

dietpi@DietPi:/tmp$ df -h /tmp
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           5.0G  256K  5.0G   1% /tmp

how much phys memory does your system has? Because all this will go into ram.

free -m

However, it will be cleaned after a reboot. Means you would need to be checked during the error occurs, to see how memory consumption will be. If I recall correctly, we had once a case where Plex did quite strange things storing a hell of data inside /tmp.

it looks low maybe?

dietpi@DietPi:/tmp$ free -m
              total        used        free      shared  buff/cache   available
Mem:           1995         327          73          13        1594        1499
Swap:          8191          75        8116

Looks like I only have 2gb on the VM, I’m going to bump that up to 4gb.

image

Check memory utilisation while running plex

The memory errors are gone now, i think those were only present because of the 3 stuck transcoder processes that were running. The culprit seems to be this one as its re-occuring:

[Req#7dc/Transcode/D916C67A-55BF-485A-82C2-833C10BFFA8B/ddf3dbd4-fafe-444a-9ec9-c6ed15eb2a88] Error while decoding stream #0:1: I/O error

Request: [127.0.0.1:34706 (Loopback)] POST /video/:/transcode/session/0279AA3D-545C-4AB4-84C6-E36BB74648A6/37eb975a-a5d3-456f-abd6-ba8af913093d/progress/log?level=0&message=%5Beac3_eae%20%40%200x7f6515c99240%5D%20EAE%20timeout%21%20EAE%20not%20running%2C%20or%20wrong%20folder%3F%20Could%20not%20read%20%27%2Ftmp%2Fpms-180fd30b-71c4-4bbf-96e9-00a2bb15e98b%2FEasyAudioEncoder%2FConvert%20to%20WAV%20%28to%208ch%20or%20less%29%2F0279AA3D-545C-4AB4-84C6-E36BB74648A6_1493-0-0.wav%27 (12 live) #1132 Signed-in Token (user) (range: bytes=0-)

[Req#1290/Transcode/0279AA3D-545C-4AB4-84C6-E36BB74648A6/37eb975a-a5d3-456f-abd6-ba8af913093d] [eac3_eae @ 0x7f6515c99240] EAE timeout! EAE not running, or wrong folder? Could not read ‘/tmp/pms-180fd30b-71c4-4bbf-96e9-00a2bb15e98b/EasyAudioEncoder/Convert to WAV (to 8ch or less)/0279AA3D-545C-4AB4-84C6-E36BB74648A6_1493-0-12.wav’

Back to 100% in htop

dietpi@DietPi:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:           3945         410        2941          17         593        3293
Swap:          8191           0        8191

I found this reddit post and the person seems to have the exact same problem and it looks like deleting the codecs folder seemed to have done the trick for them.

Do you happen to know where that folder lives?

https://www.reddit.com/r/PleX/comments/ybiw5b/eae_timeout_eae_not_running_or_wrong_folder/

Nvm I found it in:

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/

but still getting the same errors even after removing the Codec folder and after it re-downloaded it.

Can I copy any of these folders/files then do a reinstall and then copy them back so i dont lose all of my watched show data?

drwxr-xr-x 7 plex dietpi  4096 May 17 18:10  Cache
drwxr-xr-x 3 plex dietpi  4096 May 17 18:09  Codecs
drwxr-xr-x 4 plex dietpi  4096 May 17 18:09 'Crash Reports'
drwxr-xr-x 2 plex dietpi  4096 Mar 10 00:01  Diagnostics
drwxr-xr-x 2 plex dietpi  4096 Mar 10 00:01  Drivers
drwxr-xr-x 3 plex dietpi  4096 May 17 18:09  Logs
drwxr-xr-x 3 plex dietpi  4096 Mar 10 00:13  Media
drwxr-xr-x 6 plex dietpi  4096 Mar 10 00:53  Metadata
drwxr-xr-x 7 plex dietpi  4096 Mar 10 00:03 'Plug-in Support'
drwxr-xr-x 2 plex dietpi  4096 Mar 10 00:03  Plug-ins
-rw------- 1 plex dietpi  1072 May 17 18:09  Preferences.xml
drwxr-xr-x 3 plex dietpi  4096 Mar 10 00:17  Scanners
-rw------- 1 plex dietpi 12330 May 17 18:09 'Setup Plex.html'
drwxr-xr-x 2 plex dietpi  4096 Mar 10 00:03  Updates
-rw-r--r-- 1 plex dietpi     3 May 17 18:09  plexmediaserver.pid

I’m not an expert for Plex and I don’t use this software. Maybe you can ask this particular question within Plex forum?

1 Like

Might be permissions to your movies and tmp folder…see if you can add plex user to the group where you save your movies

My plex resides on my UnRAID box, sometimes I have to run the permissions fix to my file structure to ensure the docker containers can access those directories…so I am unsure exactly what the problem is directly in the DietPi build

I ended up saving my plex data folder and then copying it to a new VM with a fresh copy of dietPi and I was still having the same transcoding problem as before. I then tried changing the folder owner to the /tmp folder where the transcoding files lives to the plex user and still no joy. Finally I just tried the plex reinstall command thinking all of my settings would be wiped but it wasnt and now everything is working!

In the future to do the update without breaking anything, should I just do the reinstall command again?

dietpi-software reinstall 42

usually this is not needed as Plex is updated via apt package manager. Probably there where some other issues.