(Unofficial) Ubuntu repository for SABnzbd+

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
couchboy
Newbie
Newbie
Posts: 1
Joined: March 20th, 2010, 11:49 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by couchboy »

getting strange error. kind of new to linux perhaps you could provide a suggestion?

W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2A8E3034D018A4CE
rosarch
Newbie
Newbie
Posts: 17
Joined: March 21st, 2010, 5:23 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by rosarch »

Hi - Well impressed with how this has all moved on since I last looked, I am using this succesfully on one PC but am having some issues on a new setup.

Basically I have been dual booting between Windows & and Ubuntu 9.10 but have just been intorduced to virtualbox, so am now running a test ubuntu guest ontop of windows 7 using VB

I follow the setup an all looks good, however when I complete the wizard it goes into a loop and restarts the wizard each time I go to sabnzbd in a browser. I have tried this twice with the same results, is this because a file is not writeable?

Any guidance will be appreciated  :)
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

rosarch wrote:I follow the setup an all looks good, however when I complete the wizard it goes into a loop and restarts the wizard each time I go to sabnzbd in a browser. I have tried this twice with the same results, is this because a file is not writeable?
Could well be. Wizard comes up if there's no server defined (iirc). Anyway, set logging to max ('-l 2' command line option - that's a lowercase L there) and check.
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

couchboy wrote:2A8E3034D018A4CE
Not our key. Freenx ppa?
rosarch
Newbie
Newbie
Posts: 17
Joined: March 21st, 2010, 5:23 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by rosarch »

jcfp wrote:
rosarch wrote:I follow the setup an all looks good, however when I complete the wizard it goes into a loop and restarts the wizard each time I go to sabnzbd in a browser. I have tried this twice with the same results, is this because a file is not writeable?
Could well be. Wizard comes up if there's no server defined (iirc). Anyway, set logging to max ('-l 2' command line option - that's a lowercase L there) and check.
My bad - server details were wrong - thanks jcfp  :)
th3joker
Jr. Member
Jr. Member
Posts: 64
Joined: January 25th, 2008, 8:15 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by th3joker »

Will the new version be added to the repository so we can update.

I'm getting some strange renaming errors where it's adding tv series info to non tv items.
Eoghlear
Newbie
Newbie
Posts: 2
Joined: July 21st, 2010, 4:10 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by Eoghlear »

JCFP,

I have been using your repo to install and run Sabnzbdplus for a while. Untill a few days ago i had no problems.
But after a reinstall of my Ubuntu 10.04 system it won't autostart everytime.

I have added my username in /etc/default/sabnzbdplus but on occasion it does not autostart. If i reboot the system, it will work agiain.
Is this a bug, or is there something else wrong? Our could i add Sabnzbd to the startup programs (how does one that?).

Thanks in advance.

Paul

PS. When i use [sudo sh -x /etc/init.d/sabnzbdplus start] i get this output:

+ 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
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ unset USER CONFIG HOST PORT EXTRAOPTS
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ load_settings
+ . /etc/default/sabnzbdplus
+ USER=paul
+ CONFIG=
+ HOST=
+ PORT=
+ EXTRAOPTS=
+ [ -z paul ]
+ OPTIONS=--daemon
+ [ -n  ]
+ [ -n  ]
+ SERVER=
+ [ -n  ]
+ [ -n  ]
+ [ -n  ]
+ return 0
+ is_running
+ pgrep -f -x -u paul ^/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_use_usplash
+ [ n = y ]
+ type usplash_write
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm-color != x ]
+ [ xxterm-color != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ FANCYTTY=0
+ false
+ echo  * Starting SABnzbd+ binary newsgrabber
* Starting SABnzbd+ binary newsgrabber
+ COL=
+ start-stop-daemon --quiet --chuid paul --start --exec /usr/bin/sabnzbdplus -- --daemon
+ check_retval
+ [ 0 -eq 0 ]
+ log_end_msg 0
+ [ -z 0 ]
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ [  ]
+ [ 0 -eq 0 ]
+ echo    ...done.
  ...done.
+ return 0
+ return 0
+ dirname /var/run/sabnzbdplus.pid
+ [ -w /var/run ]
+ pgrep -f -x -n -u paul ^/usr/bin/python( -OO)? /usr/bin/sabnzbdplus --daemon
+ exit 0
Last edited by Eoghlear on July 21st, 2010, 4:21 pm, edited 1 time in total.
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

Eoghlear wrote: I have added my username in /etc/default/sabnzbdplus but on occasion it does not autostart. If i reboot the system, it will work agiain.
Is this a bug, or is there something else wrong? Our could i add Sabnzbd to the startup programs (how does one that?).
These kind of occasional failures are very hard to diagnose; very little changed in the init script since the previous release. All the output looks normal and indicates a properly configured and working install. I'll keep an eye for it, since there's two of you complaining about this, but I don't see any obvious cause right now.
Eoghlear
Newbie
Newbie
Posts: 2
Joined: July 21st, 2010, 4:10 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by Eoghlear »

Thanks for looking in to it when you have the time.
It happend in about 3 out of 10 times since my last reboot/starting the system up.
deviant
Newbie
Newbie
Posts: 3
Joined: January 14th, 2010, 2:08 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by deviant »

Adding the repo this way doesn't work under Linux Mint.

Follow jcfp's guide, then in terminal:

sudo gedit /etc/apt/sources.list

Find deb http://ppa.launchpad.net/jcfp/ppa/ubuntu Isadora main

Change Mint version (currently Isadora) to Ubuntu version (currently lucid)

Save, exit, then:

sudo apt-get update; sudo apt-get upgrade.
Fjerpje
Newbie
Newbie
Posts: 2
Joined: September 18th, 2010, 1:08 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by Fjerpje »

Hi there,

I'm having an Asrock 330HT with Ubuntu 10.4 with XBMCfreak Live CD Beta 1 with an updated version of XBMC to Beta 2.

Next to XBMC i installed Sabnzbdplus and follow the tutorial as described above. I modified my /etc/default/sabnzbdplus. Wich is here:

Code: Select all

# This file is sourced by /etc/init.d/sabnzbdplus
#
# When SABnzbd+ is started using the init script, the
# --daemon option is always used, and the program is
# started under the account of $USER, as set below.
#
# Each setting is marked either "required" or "optional";
# leaving any required setting unconfigured will cause
# the service to not start.

# [required] user or uid of account to run the program as:
USER="xbmc"

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=

# [optional] hostname/ip and port number to listen on:
HOST=192.168.1.171
PORT=9090

# [optional] extra command line options, if any:
EXTRAOPTS=
And here is the output when i execute the follow code "sudo sh -x /etc/init.d/sabnzbdplus start":

Code: Select all

[sudo] password for xbmc:
+ 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
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ start_sab
+ load_settings
+ [ FALSE != TRUE ]
+ . /etc/default/sabnzbdplus
+ USER=xbmc
+ CONFIG=
+ HOST=192.168.1.171
+ PORT=9090
+ EXTRAOPTS=
+ [ -z xbmc ]
+ OPTIONS=--daemon
+ [ -n  ]
+ [ -n 192.168.1.171 ]
+ SERVER=192.168.1.171
+ [ -n 9090 ]
+ SERVER=192.168.1.171:9090
+ [ -n 192.168.1.171:9090 ]
+ OPTIONS=--daemon --server 192.168.1.171:9090
+ [ -n  ]
+ SETTINGS_LOADED=TRUE
+ return 0
+ is_running
+ pgrep -f -x -u xbmc ^/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_use_usplash
+ [ n = y ]
+ type usplash_write
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != x ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput xenl
+ /usr/bin/tput cols
+ COLS=80
+ [ 80 ]
+ [ 80 -gt 6 ]
+ /usr/bin/expr 80 - 7
+ COL=73
+ printf  * Starting SABnzbd+ binary newsgrabber
 * Starting SABnzbd+ binary newsgrabber       + /usr/bin/expr 80 - 1
+ /usr/bin/tput hpa 79
                                                                               +                                                                                         printf
 + start-stop-daemon --quiet --chuid xbmc --start --exec /usr/bin/sabnzbdplus --                                                                                         --daemon --server 192.168.1.171:9090
Error:
Can't write to logfile
+ check_retval
+ [ 2 -eq 0 ]
+ log_end_msg 1
+ [ -z 1 ]
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ [ 73 ]
+ [ -x /usr/bin/tput ]
+ printf \r
+ /usr/bin/tput hpa 73
                                                                         + [ 1                                                                                          eq 0 ]
+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op
+ echo ]
]
+ return 1
+ exit 1
The problem is that Sabnzbdplus does not autostart when i turn on the machine. Since i'm no Linux expert i really don't know where to look or what to do so i am in need of some help of experienced Linux programmers. So if anyone can identify a problem and maybe knows a solution than please feel free to comment!

Thanks in advance,
Fjerpje
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

Fjerpje wrote:

Code: Select all

 + start-stop-daemon --quiet --chuid xbmc --start --exec /usr/bin/sabnzbdplus -- --daemon --server 192.168.1.171:9090
Error:
Can't write to logfile
Check permissions and ownership of the log file (and/or log directory). It has to be writetable for the user running the application ('xmbc' in your case). Most likely cause of this issue is running the application itself via sudo, which creates files in the home dir of the sudoer (xmbc account) but owned by root.
Fjerpje
Newbie
Newbie
Posts: 2
Joined: September 18th, 2010, 1:08 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by Fjerpje »

jcfp wrote:
Fjerpje wrote:

Code: Select all

 + start-stop-daemon --quiet --chuid xbmc --start --exec /usr/bin/sabnzbdplus -- --daemon --server 192.168.1.171:9090
Error:
Can't write to logfile
Check permissions and ownership of the log file (and/or log directory). It has to be writetable for the user running the application ('xmbc' in your case). Most likely cause of this issue is running the application itself via sudo, which creates files in the home dir of the sudoer (xmbc account) but owned by root.
Thanks for the info! It all works fine now. The developer of the XBMCfreak live CD beta 1 forgot to set the permissions of the .sabnzbd dir to the default user.
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by rascalli »

Will 0.5.6 Final be released soon on Ubuntu ?

---

Edit 19th November : And it is released ;-)
Last edited by rascalli on November 19th, 2010, 10:29 am, edited 1 time in total.
User avatar
daemox
Newbie
Newbie
Posts: 26
Joined: October 12th, 2010, 10:22 pm
Location: Cascadia
Contact:

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by daemox »

Thank you jcfp! I'm very appreciative for this PPA and all the packaging work you've done.

Thank you sir and take care!
daemox
daemox
Locked