FYI; I set up an environment where I can reproduce this issue, folder permissions etc is all 100% identical. This is done to preserve the working one and to not pollute it. I am attempting to play the same video file though.
Plex Folder Permissions
drwxrwxrwx 3 root users 0 Apr 11 23:08 Cache
drwxrwxrwx 3 root users 0 Apr 11 23:08 Metadata
drwxrwxrwx 3 root users 0 Apr 11 23:07 Media
drwxrwxrwx 3 root users 0 Apr 11 23:07 Logs
-rwxrwxrwx 1 1026 users 1286 Apr 11 23:06 Preferences.xml
-rwxrwxrwx 1 1026 users 3 Apr 11 23:06 plexmediaserver.pid
drwxrwxrwx 3 root users 0 Apr 11 23:04 Plug-ins
drwxrwxrwx 7 root users 0 Apr 11 23:03 Plug-in Support
drwxrwxrwx 3 root users 0 Apr 11 23:03 Codecs
drwxrwxrwx 3 root users 0 Apr 11 23:03 Crash Reports
/Codecs
drwxrwxrwx 3 root users 0 Apr 11 23:28 EasyAudioEncoder-133-linux-ubuntu-x86_64.tmp
drwxrwxrwx 2 root users 0 Apr 11 23:27 57aa73f-1206-linux-ubuntu-x86_64
/EasyAudioEncoder-133-linux-ubuntu-x86_64.tmp
drwxrwxrwx 2 root users 0 Apr 11 23:28 EasyAudioEncoder
As you can see, I’ve been quite lazy and given everyone full control over those files who is capable of logging in to the server.
Same log part with VERBOSE level
note; can be found in attached logs as well
Apr 11, 2017 23:24:18.109 [0x7f8f9ffff700] INFO - CodecManager: obtaining EAE
Apr 11, 2017 23:24:18.110 [0x7f8f9ffff700] DEBUG - Downloading document https://plex.tv/api/codecs/easyaudioencoder?build=linux-ubuntu-x86_64&deviceId=5224f49b-fe84-4384-a24d-8fc85ad473ab&oldestPreviousVersion=1%2E2%2E5%2E2966-3f767e7&version=133
Apr 11, 2017 23:24:18.110 [0x7f8f9ffff700] DEBUG - HTTP requesting GET https://plex.tv/api/codecs/easyaudioencoder?build=linux-ubuntu-x86_64&deviceId=5224f49b-fe84-4384-a24d-8fc85ad473ab&oldestPreviousVersion=1%2E2%2E5%2E2966-3f767e7&version=133
Apr 11, 2017 23:24:18.400 [0x7f8f9ffff700] DEBUG - HTTP 200 response from GET https://plex.tv/api/codecs/easyaudioencoder?build=linux-ubuntu-x86_64&deviceId=5224f49b-fe84-4384-a24d-8fc85ad473ab&oldestPreviousVersion=1%2E2%2E5%2E2966-3f767e7&version=133
Apr 11, 2017 23:24:18.402 [0x7f8f9ffff700] DEBUG - Caching document https://plex.tv/api/codecs/easyaudioencoder?build=linux-ubuntu-x86_64&deviceId=5224f49b-fe84-4384-a24d-8fc85ad473ab&oldestPreviousVersion=1%2E2%2E5%2E2966-3f767e7&version=133 as 7db5dc82c1fe3b83396d497b5d7d98fc680728f7
Apr 11, 2017 23:24:18.406 [0x7f8f9ffff700] DEBUG - HTTP requesting GET https://downloads.plex.tv/codecs/133/linux-ubuntu-x86_64/EasyAudioEncoder-linux-ubuntu-x86_64.zip
Apr 11, 2017 23:24:19.594 [0x7f8fabbff700] DEBUG - HTTP 200 response from POST http://127.0.0.1:32600/devices/discover
Apr 11, 2017 23:24:21.023 [0x7f8f9ffff700] DEBUG - HTTP 200 response from GET https://downloads.plex.tv/codecs/133/linux-ubuntu-x86_64/EasyAudioEncoder-linux-ubuntu-x86_64.zip
Apr 11, 2017 23:24:21.191 [0x7f8f9ffff700] ERROR - Unzip: could not set executable bit on output file
Apr 11, 2017 23:24:21.193 [0x7f8f9ffff700] ERROR - CodecManager: failed to extract zip
Apr 11, 2017 23:24:21.193 [0x7f8f9ffff700] ERROR - Error configuring transcoder: Decoder install failed: eac3_eae
Apr 11, 2017 23:24:21.193 [0x7f8f9ffff700] DEBUG - Streaming Resource: Terminated session 0x7f8fa3c39660:z1u2u16sxc8g20ht0j0n52el with reason Conversion failed. A required codec could not be found or failed to install.
Additional info
I’ll look in to the mount parameters and specifically exec and noexec options tomorrow after work.
Just a hypothesis; Plex is not setting the execution bit on the same level as root.
I created a random file in the folder with touch test, did chmod -x test and got the following error;
chmod: changing permissions of ‘test’: Operation not permitted
When I prefixed the command with sudo it did set the execution bit.
Did Plex Media Server, prior to 1.5.3, not set the execution bit when attempting to download the codes and do things with it?