Page 1 of 1

Latest sichrage update broken startup script

Posted: Mon Oct 19, 2015 7:29 am
by infinityzx
Here we go again :-/ new update new bug

Starting SickBeard-TVRage/usr/local/bin/python2.7: can't open file 'SickBeard.py': [Errno 2] No such file or directory

It's just me?

Thanks

Re: Latest sichrage update broken startup script

Posted: Mon Oct 19, 2015 7:38 am
by infinityzx
You should change this line into start-stop.sh

DAEMON="/usr/local/bin/python2.7 SickBeard.py"

TO

DAEMON="/usr/local/bin/python2.7 $PKG_DIR/SickBeard-TVRage/SickBeard.py"

Re: Latest sichrage update broken startup script

Posted: Mon Oct 19, 2015 5:42 pm
by clinton.hall
in the start-stop.sh script it does

Code: Select all

	cd $PKG_DIR/$PKG_NAME
before calling the daemon.

So this should work... and this has not changed in recent updates... Works fine here...

What version have you updated to?

Re: Latest sichrage update broken startup script

Posted: Mon Oct 19, 2015 7:15 pm
by infinityzx
Updated to version: 20150812, but oddly I don't have that entry in my startup scrips

PKG_NAME="SickBeard-TVRage"
PKG_DIR="/usr/local/AppCentral/sickbeard-tvrage"
RUN_AS="admin:administrators"
CONFIG_DIR="$PKG_DIR/config"
REPOS_DIR="$PKG_DIR/repository"
PID_FILE="$PKG_DIR/$PKG_NAME.pid"
DAEMON="/usr/local/bin/python2.7 SickBeard.py"
DAEMON_PACKAGE="/usr/local/AppCentral/python/lib/python2.7/site-packages" #change according to daemon version used
DAEMON_OPTS=" --daemon --datadir $PKG_DIR/config --pidfile $PID_FILE"
GIT_URL="git://github.com/SICKRAGETV/SickRage.git"
GIT_URL1="http://github.com/SICKRAGETV/SickRage.git"
export PYTHON_EGG_CACHE=/volume1/home/admin/.python-eggs

Re: Latest sichrage update broken startup script

Posted: Thu Oct 22, 2015 7:58 pm
by clinton.hall
search further down the script... it must be there... in the start section.

Re: Latest sichrage update broken startup script

Posted: Tue Nov 10, 2015 5:39 pm
by infinityzx
Really don't know why, but I'm facing with any kind of issues :-)
This after the latest upgrade :-/

Traceback (most recent call last):
File "SickBeard-TVRage/SickBeard.py", line 58, in <module>
import sickbeard
File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/sickbeard/__init__.py", line 37, in <module>
from sickbeard import providers
File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/sickbeard/providers/__init__.py", line 19, in <module>
from sickbeard.providers import btn, newznab, womble, thepiratebay, torrentleech, kat, iptorrents, torrentz, \
File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/sickbeard/providers/kat.py", line 184, in <module>
provider = KATProvider()
File "/volume1/.@plugins/AppCentral/sickbeard-tvrage/SickBeard-TVRage/sickbeard/providers/kat.py", line 52, in __init__
'search': base_url + '%s/',
NameError: global name 'base_url' is not defined

Re: Latest sichrage update broken startup script

Posted: Tue Nov 10, 2015 6:30 pm
by infinityzx
Looks like an issue pulled from the GIT repository.

Fixed it by editing kat.py line
'search': base_url + '%s/',
should look like
'search': 'base_url' + '%s/',
after that sick rage starts and successfully updates