Page 1 of 1

Failed to iniciate Sabnzbd on raspberry pi

Posted: December 1st, 2013, 6:08 am
by juandp77
Hello I'm geting this error: Starting SABnzbd+ binary newsgrabber:Illegal instruction
Anyone help me please

This is the log of: sudo sh -x /etc/init.d/sabnzbdplus start

Code: Select all

+ DAEMON=/usr/bin/sabnzbdplus
+ SETTINGS=/etc/default/sabnzbdplus
+ [ -x /usr/bin/sabnzbdplus ]
+ [ -r /etc/default/sabnzbdplus ]
+ DESC=SABnzbd+ binary newsgrabber
+ DEFOPTS=--daemon
+ sed -n 1s/^#\!\([a-z0-9\.\/]\+\)\(.*\)/\1(\2)?/p /usr/bin/sabnzbdplus
+ PYTHONEXEC=^/usr/bin/python( -OO)?
+ PIDFILE=/var/run/sabnzbdplus.pid
+ SETTINGS_LOADED=FALSE
+ unset USER CONFIG HOST PORT EXTRAOPTS
+ . /lib/lsb/init-functions
+ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
+ [ -r /lib/lsb/init-functions.d/20-left-info-blocks ]
+ . /lib/lsb/init-functions.d/20-left-info-blocks
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ true
+ start_sab
+ load_settings
+ [ FALSE != TRUE ]
+ . /etc/default/sabnzbdplus
+ USER=pi
+ CONFIG=
+ HOST=
+ PORT=
+ EXTRAOPTS=
+ [ -z pi ]
+ [ -z pi ]
+ OPTIONS=--daemon
+ [ -n  ]
+ [ -n  ]
+ SERVER=
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ SETTINGS_LOADED=TRUE
+ return 0
+ is_running
+ pgrep -f -x -u pi ^/usr/bin/python( -OO)? /usr/bin/sabnzbdplus --daemon.*
+ PID=
+ RET=1
+ [ 1 -gt 1 ]
+ return 1
+ log_daemon_msg Starting SABnzbd+ binary newsgrabber
+ [ -z Starting SABnzbd+ binary newsgrabber ]
+ log_daemon_msg_pre Starting SABnzbd+ binary newsgrabber
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm-256color != x ]
+ [ xxterm-256color != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /bin/echo -n [....] 
[....] + [ -z  ]
+ /bin/echo -n Starting SABnzbd+ binary newsgrabber:
Starting SABnzbd+ binary newsgrabber:+ return
+ start-stop-daemon --quiet --chuid pi --start --exec /usr/bin/sabnzbdplus -- --daemon
Illegal instruction
+ check_retval
+ [ 132 -eq 0 ]
+ log_end_msg 1
+ [ -z 1 ]
+ local retval
+ retval=1
+ log_end_msg_pre 1
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm-256color != x ]
+ [ xxterm-256color != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z 1 ]
+ true
+ true
+ /usr/bin/tput setaf 1
+ RED=
+ /usr/bin/tput setaf 2
+ GREEN=
+ /usr/bin/tput setaf 3
+ YELLOW=
+ /usr/bin/tput op
+ NORMAL=
+ /usr/bin/tput civis
+ /usr/bin/tput sc
+ /usr/bin/tput hpa 0
+ [ 1 -eq 0 ]
+ [ 1 -eq 255 ]
+ /bin/echo -ne [FAIL
[FAIL+ /usr/bin/tput rc
+ /usr/bin/tput cnorm
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm-256color != x ]
+ [ xxterm-256color != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z 1 ]
+ true
+ true
+ /usr/bin/tput setaf 1
+ RED=
+ /usr/bin/tput setaf 3
+ YELLOW=
+ /usr/bin/tput op
+ NORMAL=
+ [ 1 -eq 0 ]
+ [ 1 -eq 255 ]
+ /bin/echo -e  failed!
 failed!
+ log_end_msg_post 1
+ :
+ return 1
+ exit 1

Re: Failed to iniciate Sabnzbd on raspberry pi

Posted: December 1st, 2013, 6:11 am
by sander
What if you just run (=type) 'sabnzbdplus' from the command line?

Re: Failed to iniciate Sabnzbd on raspberry pi

Posted: December 1st, 2013, 6:14 am
by juandp77
The same: Illegal instruction

Re: Failed to iniciate Sabnzbd on raspberry pi

Posted: December 1st, 2013, 6:19 am
by sander
juandp77 wrote:The same: Illegal instruction
Really? Can you post the screen dump?

And what is the output of:

Code: Select all

head -20 `which sabnzbdplus`
Note: back ticks!

Re: Failed to iniciate Sabnzbd on raspberry pi

Posted: December 1st, 2013, 6:24 am
by juandp77
It just say that

head -20 `which sabnzbdplus`

Code: Select all

import sys
sys.path.insert(0,'/usr/share/sabnzbdplus')
if sys.version_info < (2,5):

Re: Failed to iniciate Sabnzbd on raspberry pi

Posted: December 1st, 2013, 7:25 am
by jcfp
"Illegal instruction" means something received signal 4 (SIGILL), probably the python interpreter itself rather than sabnzbd. Please check if python actually runs at all (just "python" on the command line + some simple imports, you can exit with "quit()" in the less than likely case it actually works).

Re: Failed to iniciate Sabnzbd on raspberry pi

Posted: December 3rd, 2013, 2:48 am
by sander
@juandp77 Can you do what jcfp advices, and post your feedback