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.
Sickbeard post processing script
-
- Newbie
- Posts: 5
- Joined: February 9th, 2011, 10:18 pm
Re: Sickbeard post processing script
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...
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...
Last edited by Mar2zz on February 10th, 2011, 1:26 pm, edited 1 time in total.
-
- Newbie
- Posts: 5
- Joined: February 9th, 2011, 10:18 pm
Re: Sickbeard post processing script
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
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.
-
- Newbie
- Posts: 5
- Joined: February 9th, 2011, 10:18 pm
Re: Sickbeard post processing script
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.
-
- Newbie
- Posts: 5
- Joined: February 9th, 2011, 10:18 pm
Re: Sickbeard post processing script
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
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.