Plex Post Processing Script fail

I am having trouble getting a post processing script to run correctly. Maybe someone has some words of advice or is seeing something I am missing. I simple want to get it to run and I will alter it after. My Plex server is running in a docker on Unraid. All the script currently does is creating a file. the script is below.

The script is located in a directory called content and is called from post processing setting using /content/test.sh

If I run the script outside of Plex and in the docker it runs fine and creates the file. However when it is run via post processing I get the following message in the log:

Mar 08, 2019 08:38:51.073 [0x1504acdce700] DEBUG - Job running: ‘/content/test.sh’ ‘/content/Recordings/.grab/81df13f5082cb869c9b9d9c061f5e3aecf574e1c/Carnival Eats (2014) - S03E02 - Lights and Literature.ts’
Mar 08, 2019 08:38:51.076 [0x1504acdce700] DEBUG - Jobs: Starting child process with pid 6587
Mar 08, 2019 08:38:51.126 [0x1504b51fc700] VERBOSE - DVR:Subscription: Not checking provider TIDAL, type not supported.
Mar 08, 2019 08:38:51.127 [0x1504b03f9700] VERBOSE - JobManager: child process with PID 6587 exited
Mar 08, 2019 08:38:51.127 [0x1504b03f9700] DEBUG - Jobs: ‘/content/test.sh’ exit code for process 6587 is 2 (failure)
Mar 08, 2019 08:38:51.127 [0x1504acdce700] ERROR - DVR:Recorder: Postprocessing script ‘/content/test.sh’ exited with error code 2.

PLEASE HELP!!! :slight_smile:

#! /bin/bash
touch “testing”

Server Version#: 1.14.1.5488
Player Version#: 3.77.4

Solved!!!

Turns out I was creating the script in Notepad++ on a Windows machine and then transferring it to my Unraid box. Basically what you have to do if you come across this issue is change your end of line character from Windows to Unix in Notepad++.

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