# Post-Processing Scripts Not Getting Executed?

**URL:** <https://forums.plex.tv/t/post-processing-scripts-not-getting-executed/551626>\
**Category:** Live TV & DVR\
**Created:** [March 7, 2020, 3:11am UTC](https://forums.plex.tv/t/post-processing-scripts-not-getting-executed/551626 "2020-03-07T03:11:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uviteru](https://avatars.discourse-cdn.com/v4/letter/u/3ab097/32.png) [@uviteru](https://forums.plex.tv/u/uviteru)\
**Post date:** [March 7, 2020, 3:11am UTC](https://forums.plex.tv/t/post-processing-scripts-not-getting-executed/551626/1 "2020-03-07T03:11:15Z")

</div>

Hi All,

I have a post-processing script that I created, but I always get the error “An error occurred while post-processing the recording”. I tried to troubleshoot, but I can’t get any information about what went wrong out of my script. The log file that I write to never appears. I even made a super simple script to do nothing but echo a string to a file in a totally different directory (I know Plex deletes the one in .grab), but even that is not working.

I can see in my plex logs that it is indeed calling the right script with the proper argument, (see attached–search for plexPostTest.sh), but it seems like the content of the script is never getting executed. It always returns with error code 13. I couldn’t find anything of significance on that online anywhere…

Does anyone have any ideas about what could be going on?

[Plex Media Server Logs\_2020-03-07\_02-56-28.zip](https://forums.plex.tv/uploads/short-url/6zKTthveVrelMTelZNFi8fH1A5K.zip) (3.0 MB)

Server Version#: 1.18.7.2457  
Player Version#: 1.6.3.1009-57cf57c8  
Tuner Make/Model: HDHomeRun EXTEND  
Using XMLTV?: No

EDIT:  
I should note that I successfully ran this script in a sandbox, (both the simple and complex one) so it shouldn’t be related to any fat-fingering.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [June 5, 2020, 3:11am UTC](https://forums.plex.tv/t/post-processing-scripts-not-getting-executed/551626/2 "2020-06-05T03:11:15Z")

</div>

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