Truenas Scale - CodecManager: failed to extract zip

Server Version#: 4.147.1

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, this is what I see in the 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. I’m attaching some screenshots of what I hope is relevant in case anyone can suggest what I could possibly do to get this codec download/unzip/install process working.

Thank you in advance!

User and Group configuration in Truenas Plex application settings:

User 3001 (puser) details:

User (puser) 3001 permissions on Codecs directory:

The contents of the Codecs directory when this failure occurs:

1 Like

In case anyone else has this issue, the solution for me was to update the plex config dataset’s ACL mode to ‘Passthrough’.

Someone kindly helped me on the Truenas forum:

1 Like