DVR PostProcessing Script not executing

Hi,

I created a simple post_processing script that just logs $1 (the 1st argument to the script call) to a local file.

I want this to be executed whenever a DVR recording finishes to ultimately convert the recording and notify me that a new recording is available.

I configured it in the server UI

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…

Any ideas?

It’s in your home directory where user plex probably doesn’t have access to it. Put it somewhere where it has access.

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…

Fair enough. I only handle Linux/server side. DVR/LiveTV is a facet I can’t work with (no cable… only satellite here)

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:

LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
export LD_LIBRARY_PATH

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.