Truenas Scale - CodecManager: failed to extract zip

I have posted this on the Plex forums too, but I thought I’d also post it here just in case anyone can help as I’ve had nothing in the Plex forum thus far.

I have my plex server running in Truenas Scale using the dedicated truenas application:

**App Version:**1.42.2.10156-f737b826c

**Version:**1.2.16

Everything is great except for when the server needs to transcode videos for clients that don’t support some of the x265 files I have.

When I come across this problem, in the plex server logs it looks as though I get a good 200 response when requesting to download the zip for EasyAudioEncoder-linux-x86_64-standard.zip, and then I see the 3 error messages in the log:

  • Unzip: could not set executable bit on output file
  • CodecManager: failed to extract zip
  • Error configuring transcoder: Decoder install failed: eac3_eae

I ‘believe’ I’ve got the permissions OK with the Codecs directory, but I wanted to put the details on here in case I’m missing something obvious.

When this error happens, I see a .tmp folder left in the Codecs directory with the EasyAudioEncoder folder inside it.

I’ve seen people on the web suggesting deleting this .tmp folder will solve the issue but that’s not the case for me.

The truenas user and group (puser) that owns the plex_config directory is the same user that is defined in the Plex application’s ‘User ID and Groups’. This user seems to have all the write permissions it needs in the Codecs directory, so I don’t think this is the issue. Doesn’t look like I can attach screenshots here to show more details, but hopefully someone can suggest what I could possibly do to get this codec download/unzip/install process working.

Thank you in advance!

To me it sounds like you might have the restricted ACL mode enabled which can restrict applications from setting posix style permissions (instead of ACLs). If this is the case please change this to passthrough and try again.

aside from that, make sure that the Codecs directory has execute permissions…

and do post what the permissions are if that doesn’t help

1 Like

What a dude, thank you so much, that fixed it. I changed the plex config dataset’s ACL mode to passthrough and it’s all good now.

1 Like