Post processing script keeps not being run because "does not exist".

My media server log shows:

Jan 23, 2018 19:03:01.846 [0x1461badfd700] ERROR - DVR:Recorder: Postprocessing script ‘/usr/local/bin/dvrPostProcess.sh’ doesn’t exist, skipping.

Yet when I do an ls in /usr/local/bin I see:

-rwxrwxrwx 1 nobody users 47 Jan 23 17:18 dvrPostProcess.sh*
root@Tower:/usr/local/bin#

Does anybody have any idea why this is occuring?

Been years since I played in linux,
Basic ideas…

  1. do you actually have an asterisk on the end of the actual file name “*” after doing ls, or, is that some formatting/indicator I don’t remember?
  2. Though you’ve (apparently) set permissions for that single file so that anyone can rwx it, does Plex/the user Plex runs as have access to /usr/local/bin (I’d think and hope not) - try placing the script in a sub folder you create under the Plex Media server’s volatile directory, perhaps, the same location one would install plug-ins, but, …/scripts - with the same perms/owners as the Plex folders.

The asterisk isnt actually on the file name, its just dvrPostProcess.sh. I moved the script to the root of my TVShows directory and it still does the same thing:

-rwxrwxrwx 1 nobody users 47 Jan 23 17:18 dvrPostProcess.sh*
root@Tower:/mnt/user/TVShows#

Jan 23, 2018 22:33:01.812 [0x1461be1cb700] ERROR - DVR:Recorder: Postprocessing script ‘/mnt/user/TVShows/dvrPostProcess.sh’ doesn’t exist, skipping.

I took a look at the .ts file that Plex created and it has the same user/group as the script does.

Sorry. I’m out of ideas. I hope someone else can assist you. May wish to share your Plex server version, and what OS it’s on specifically.

Im 99% sure the problem is PEBKAC. I completely forgot I was running Plex in a docker container thus its pathing is going to be different than the underlying OS. I will verify that tonight. Sorry.

Ha. Darn those PICNIKs
Good luck

And yes that was the issue. I should have had /media instead of /mnt/user because it was running in a docker.

Good to hear.
Aren’t you glad I wanted you to post what OS you were running on? :wink:

So, while you’re here but before you leave, what does the script do?
And, any links to where you got the script/apps it runs, in case anyone else wants to do the same thing?

I am running Unraid 6.4.0. That question was enough to remind me about the docker.

The script just moves recorded tv shows into a folder that is outside of my TVShows share. Im basically trying to replicate what I do on my windows 7 computer using Plex in that I record on Windows 7, then have Videoredo-Autoprocessor detect a new recording and scan it for commercials then use VideoRedo to verify the commercial points and save off the commercial-less recording into the TVShows share.

Here is the entirety of the script:

#!/bin/bash
mv "$1" /media/public/RecordedTv/

One bizarre thing I ran into which I unfortunately didnt notice until the next day was that two shows were scheduled to be recorded but werent moved into RecordedTV yet directories were made for them on my TVShows share but nothing is in them. Since I didnt notice until the following day the Plex log had nothing.