@vincent-geannin said:
So, My plex user Home directory is : “/media/5c4d0750-5db4-426b-acbb-9fd836d1a129/plexmediaserver”
the codec Directory is “/media/5c4d0750-5db4-426b-acbb-9fd836d1a129/plexmediaserver/Library/Application Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64”
And If I do an ls : # ls -la total 4416 drwxr-xr-x 2 plex plex 4096 Jun 18 18:33 . drwxr-xr-x 3 plex plex 4096 Jun 17 11:47 .. -rw-r--r-- 1 plex plex 297488 Jun 18 18:24 libaac_encoder.so -rw-r--r-- 1 plex plex 238872 Jun 18 18:24 libac3_decoder.so -rw-r--r-- 1 plex plex 1309976 Jun 17 11:54 libh264_decoder.so -rw-r--r-- 1 plex plex 1208728 Jun 17 18:12 liblibx264_encoder.so -rw-r--r-- 1 plex plex 263480 Jun 18 18:33 libmp3_decoder.so -rw-r--r-- 1 plex plex 618008 Jun 17 11:52 libmpeg4_decoder.so -rw-r--r-- 1 plex plex 565032 Jun 17 11:55 libmsmpeg4v3_decoder.so
Running a debug command I was provided I saw messages like this:
FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/' LD_LIBRARY_PATH=/usr/lib/plexmediaserver '/usr/lib/plexmediaserver/Resources/Plex Transcoder' -v debug
Rescanning for external libs: '/config/Library/Application\ Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/'
Loading external lib /config/Library/Application Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/libh264_decoder.so
Error loading external lib: /config/Library/Application Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/libh264_decoder.so: failed to map segment from shared object: Operation not permitted
Loading external lib /config/Library/Application Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/libac3_decoder.so
So I made sure the mount where plex was now trying to execute stuff from had an ‘exec’ option (not as a docker option, or inside docker, just regular old fstab).
Options in /etc/fstab before
defaults,noatime,auto,user
Options in /etc/fstab after
defaults,noatime,auto,user,exec
Which made those ‘operation not permitted’ messages go away, but not the cannot play this video thing. Error in the log seems the same too.
on my installation on debian jessie I don’t have the /etc/systemd/system/plexmediaserver.service to modify in the first place and only /etc/init.d/plexmediaserver… What do I do?
@theyouri said:
Just to note: ‘exec’ does not solve the issue.
Running a debug command I was provided I saw messages like this:
FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/' LD_LIBRARY_PATH=/usr/lib/plexmediaserver '/usr/lib/plexmediaserver/Resources/Plex Transcoder' -v debug
Rescanning for external libs: '/config/Library/Application\ Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/'
Loading external lib /config/Library/Application Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/libh264_decoder.so
Error loading external lib: /config/Library/Application Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/libh264_decoder.so: failed to map segment from shared object: Operation not permitted
Loading external lib /config/Library/Application Support/Plex/Codecs/416836c-1053-linux-ubuntu-x86_64/libac3_decoder.so
So I made sure the mount where plex was now trying to execute stuff from had an ‘exec’ option (not as a docker option, or inside docker, just regular old fstab).
Options in /etc/fstab before
defaults,noatime,auto,user
Options in /etc/fstab after
defaults,noatime,auto,user,exec
Which made those ‘operation not permitted’ messages go away, but not the cannot play this video thing. Error in the log seems the same too.
Thanks for the feedback. So are you still getting these in the log and failing to stream ?
ERROR - [Transcoder] Unrecognized option 'crf:0'. ? - [Transcoder] Error splitting the argument list: Option not found ERROR - Failed to start session successfully.
@sandmarq said:
on my installation on debian jessie I don’t have the /etc/systemd/system/plexmediaserver.service to modify in the first place and only /etc/init.d/plexmediaserver… What do I do?
I don’t know which error messages you are getting in the server log - so cannot advise.
@vincent-geannin said:
I found the PB, you are right, it was the exec right that was disable.
I remove the “noexec” option on the fstab file for drive were the plex home was and remount the drive
Then When I try to play a Film, it’work.
Vincent
Could you get me the log file using the same media file as before with it working. just want to see what the transcoder logs now that you permitted execution
I also change the right on the files in the Codec directory : I add the execution right : -rwxr-xr-x 1 plex plex 297488 Jun 18 18:24 libaac_encoder.so -rwxr-xr-x 1 plex plex 238872 Jun 18 18:24 libac3_decoder.so -rwxr-xr-x 1 plex plex 1309976 Jun 17 11:54 libh264_decoder.so -rwxr-xr-x 1 plex plex 1208728 Jun 17 18:12 liblibx264_encoder.so -rwxr-xr-x 1 plex plex 263480 Jun 18 18:33 libmp3_decoder.so -rwxr-xr-x 1 plex plex 618008 Jun 17 11:52 libmpeg4_decoder.so -rwxr-xr-x 1 plex plex 565032 Jun 17 11:55 libmsmpeg4v3_decoder.so
~~My Local was set correctly however when i went to my application support folder and noticed the new “Plex” folder as mentioned here i noticed that the .so files were missing correct exec permissions. A simple
chmod a+x *.so inside that folder and i was back up and running.~~
That actually did not work. Some reason the video switched back to direct play so i thought it did.
I have checked permissions, local and restarted and it seems like its time to roll back i guess.
@dhruvb14 said:
~~My Local was set correctly however when i went to my application support folder and noticed the new “Plex” folder as mentioned here i noticed that the .so files were missing correct exec permissions. A simple
chmod a+x *.so inside that folder and i was back up and running.~~
That actually did not work. Some reason the video switched back to direct play so i thought it did.
I have checked permissions, local and restarted and it seems like its time to roll back i guess.
would need to see what errors you are getting. The issues discussed in these posts would stop it streaming.
Change: test -f “/usr/lib/plexmediaserver/start.sh” || exit 0 to : test -f “/usr/lib/plexmediaserver/Resources/start.sh” || exit 0
nano /etc/systemd/system/plexmediaserver.service
In my config there isn’t the follow command so i past : Environment=LC_ALL=en_US:en Environment=LANG=en_US:en
I can’t umount my disk of plex server says in use so i reboot my server
I’m running now 0.9.17.3 before i try it with 0.9.17.2 but i can’t play any media file’s i get dirrecly a error for now after editing this and reboot mij server i can play : Music , Video ( mkv ) only have , pictures
PlexPASS release 0.9.17.3 which was released earlier today has changes to address the locale issue for the plexmediaserver.service and also the location of the Codecs directory has changed Codecs are now under the Plex Media Server directory instead of the separate Plex/Codecs directory
Any changes to /etc/fstab will apply as before and for those of you that added execute permissions to the Codecs directory contents, could you first try 0.9.17.3 as is and see if you get an error Operation not permitted in the log. Add the execute permissions if you find they are necessary.
New codecs will be downloaded when you stream media needing it.
I already try that @sa2000 i have first installed 0.9.7.2 and problems with start because of the wrong location of start.sh in my eyes. later 0.9.7.3 same problem start.sh wrong directory so changed the init.d script start plex get error’s :
This messages i get with both versions:
ERROR - [Transcoder] Unrecognized option ‘crf:0’.
Jun 13, 2016 11:37:50.872 [0x7fc6e7fff700] ? - [Transcoder] Error splitting the argument list: Option not found
Jun 13, 2016 11:37:50.872 [0x7fc6ebbff700] ERROR - Failed to start session successfully.
Jun 13, 2016 11:37:50.873 [0x7fc6f4bff700] ERROR - JobManager: child process returned: Operation not permitted (1)
Jun 13, 2016 11:37:52.497 [0x7fc6e2bff700] WARN - Got a request to stop a transcode session without a session GUID (or with an invalid one).
Jun 13, 2016 11:37:53.775 [0x7fc6eb3fe700] ERROR - [Transcoder] Unrecognized option ‘crf:0’.
Jun 13, 2016 11:37:53.776 [0x7fc6edbff700] ? - [Transcoder] Error splitting the argument list: Option not found
Jun 13, 2016 11:37:53.776 [0x7fc6ebbff700] ERROR - Failed to start session successfully.
Jun 13, 2016 11:37:53.776 [0x7fc6f4bff700] ERROR - JobManager: child process returned: Operation not permitted (1)
Its a log from before but messages on 0.9.17.3 are the same so i read on the forum someone remove the noexec option of fstab and
I didn;t get awnsers on this messages so i downgrade to 0.9.16.6 and i have no errors when i upgrade i can;t play any media… so for now i run 1 day without problems with the newest version