Issue running Custom Script on Sonarr
Hi,
The original issue I'm trying to resolve:
- Sonarr tells Deluge to download - works.
- Upon download complete Deluge will unrar if needed - works.
- Sonarr will the import the unrar'd file - works.
- Sonarr runs a script made to cleanup the unrar'd file in torrent folder after successful import - does not work.
Some relevant info on my setup;
I've got Sonarr and Deluge running in Docker containers off my Synology NAS. Sonarr has permissions working so far as I can tell as it can read and write to necessary folders fine.
The script currently has -rwxrwxrwx permissions, so should be executable.
The script is found OK on path I specified as the 'Test' function works.
When checking logs after it's supposed to have run a script it just declares that it failed to run script with status 255.
The script in question is Fryfrog's - https://gist.github.com/fryfrog/94716e7e27ba38dff57c7631d9f58bed
I've tried everything I could come up with or that I found through googling - any ideas on what the issue could be?
Posted Dec 26, 2019, 11:19 PM UTC
Are you running it on Sonarr V2 or V3? V3 is still in development, but this makes a significant difference on how the Custom Script function works. Also, are you using the correct notifiers?? On Download and On Upgrade are the two you need I believe.
V2, so the 'Test' function doesn't actually test anything other than that the script is found; I'm on master branch so I might switch to Beta to test that.
Yeah, Download and On Upgrade are only times it's run.