Page 1 of 1
Sickbeard post processing script
Posted: February 9th, 2011, 10:24 pm
by deltaleader
I recently migrated my sabnzbd plus sickbeard setup to Linux, and in general all is working great. The only issue that I have left is that the post processing script for Sickbeard (sabtosickbeard.py) fails when a new show downloads. I have verified that the script can be ran called directly from terminal, but it still fails in Sabnzbd.
This is the error that I get:
Exit(-1) Cannot run script /home/xxxxxx/Scripts/sabToSickBeard.py
Any ideas? Thanks for the help in advance.
Re: Sickbeard post processing script
Posted: February 10th, 2011, 12:29 am
by Mar2zz
Did you rename autoProcessTV.cfg.sample to autoProcessTV.cfg and edited it with your setup?
Is Sickbeard running as the same user you execute this manually with? (stop then edit /etc/init.d/sickbeard and edit USER=)
The best option is to symlink sabtosickbeard.py to your scriptsdirectory (ln -s /home/xxxxxx/sickbeard/sabToSickbeard.py /home/xxxxx/Scripts/sabToSickbeard.py.
Is it really executable? running sh scriptname doesn't mean it's executable, running ./scriptname means it is.
If one of the above isn't a solution then I don't know...
Re: Sickbeard post processing script
Posted: February 10th, 2011, 3:26 pm
by deltaleader
Thanks for the help. I had already tried the first two suggestions, but have now tried making the script a symlink. When I run ./sabtosickbeard.py from the Sickbeard/autoprocessTV directory it runs OK. When I attempt to run it from ~/Scripts, it says -bash: ./sabToSickBeard.py: Too many levels of symbolic links"? Is this an issue?
Re: Sickbeard post processing script
Posted: February 10th, 2011, 3:32 pm
by Mar2zz
I don't know. Did you remove the sabToSickbeard.py in your scriptsdirectory prior to creating the symlink? If not, delete in your scriptsfolder and try again. And use fullpathnames for creating the link to avoid problems.
Re: Sickbeard post processing script
Posted: February 10th, 2011, 3:34 pm
by deltaleader
I did remove it first, and create the symlink with the full pathname. I just used the ~/ notation to make me have to type less here
. I'll report back after Sickbeard does it's thing tonight.
Re: Sickbeard post processing script
Posted: February 10th, 2011, 10:13 pm
by deltaleader
With using the symlink Sabnzbd wouldn't even see the script. I then deleted the symlink, and copied over the script from the autoprocesstv folder. Then verified that all scripts in my scripts folder were marked as executable. Works now. Thanks for the help!
Re: Sickbeard post processing script
Posted: February 11th, 2011, 1:05 am
by Mar2zz
glad it works for you. I symlink every script I have to my postprocessingfolder and that works ok, big questionmark why it won't work for you.