However, I do not see it getting executed (because the log file doesn’t get updated) and also I don’t see any indication in any log file (which should I be looking for in anyways?) that the post processing step actually executed…
Unlikely since the script is 777 and gid plex… I can run it as plex user or user with plex gid no problem from the command line. In the case it isn’t accessible I’d expect an error message somewhere in the (debug) logs…
Ok, so after unsuccessfully digging through the plex server logs I started to monitor the the journal of systemd for the plexmediaserver service. Turns out, that the user plex didn’t have the same environment set up as when you substitute user to plex. The journal showed that the binary I used in the script was missing a linked library. I searched this forum and found other users having run into a similar issue (but with FFmpeg). I was able to resolve my issue by adding the following lines (ubuntu 18.04 LTS) at the beginning of the script: