(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.
Locked
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by sander »

I still have a problem with Ubuntu 9.04 Jaunty Alpha 5: sabnzbdplus' installation is still blocked by python2.6, whereas python2.5 is installed too.

I already tried a remove and purge, but no results.

Tips?

Code: Select all

sander@jaunty:~$ sudo apt-get install sabnzbdplus
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  sabnzbdplus: Depends: python (< 2.6) but 2.6.1-0ubuntu3 is to be installed
E: Broken packages
sander@jaunty:~$ 


sander@jaunty:~$ which python2.5
/usr/bin/python2.5
sander@jaunty:~$ 

Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by sander »

After starting a fresh VM with a fresh Jaunty Alpha 5, and activating multiverse and universe, installation and running of sabnzbdplus went OK.

Code: Select all

ubuntu@ubuntu:~$ sudo apt-get install sabnzbdplus
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  libtidy-0.99-0 par2 python-chardet python-cheetah python-cherrypy
  python-feedparser python-openssl python-utidylib python-yenc unrar
Suggested packages:
  python-openssl-doc python-openssl-dbg sabnzbdplus-theme-smpl
  sabnzbdplus-theme-iphone
The following NEW packages will be installed:
  libtidy-0.99-0 par2 python-chardet python-cheetah python-cherrypy
  python-feedparser python-openssl python-utidylib python-yenc sabnzbdplus
  unrar
0 upgraded, 11 newly installed, 0 to remove and 423 not upgraded.
Need to get 1403kB of archives.
After this operation, 6484kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://archive.ubuntu.com jaunty/main libtidy-0.99-0 20081224cvs-1 [137kB]
Get:2 http://archive.ubuntu.com jaunty/universe python-chardet 1.0.1-1.1 [172kB]
Get:3 http://archive.ubuntu.com jaunty/universe python-cheetah 2.0.1-2ubuntu1 [198kB]
Get:4 http://archive.ubuntu.com jaunty/universe python-cherrypy 2.3.0-1 [243kB]
Get:5 http://archive.ubuntu.com jaunty/universe python-feedparser 4.1-12 [114kB]
Get:6 http://archive.ubuntu.com jaunty/main python-openssl 0.7-2ubuntu1 [88.5kB]
Get:7 http://archive.ubuntu.com jaunty/main python-utidylib 0.2-3.2ubuntu1 [8544B]
Get:8 http://archive.ubuntu.com jaunty/universe sabnzbdplus 0.4.6+repack-0ubuntu1 [221kB]
Get:9 http://archive.ubuntu.com jaunty/multiverse unrar 1:3.8.5-1 [98.7kB]
Get:10 http://archive.ubuntu.com jaunty/universe par2 0.4-10 [102kB]
Get:11 http://archive.ubuntu.com jaunty/universe python-yenc 0.3+debian-2ubuntu1 [19.2kB]
Fetched 1403kB in 1s (737kB/s)     
Selecting previously deselected package libtidy-0.99-0.
(Reading database ... 105825 files and directories currently installed.)
Unpacking libtidy-0.99-0 (from .../libtidy-0.99-0_20081224cvs-1_i386.deb) ...
Selecting previously deselected package python-chardet.
Unpacking python-chardet (from .../python-chardet_1.0.1-1.1_all.deb) ...
Selecting previously deselected package python-cheetah.
Unpacking python-cheetah (from .../python-cheetah_2.0.1-2ubuntu1_i386.deb) ...
Selecting previously deselected package python-cherrypy.
Unpacking python-cherrypy (from .../python-cherrypy_2.3.0-1_all.deb) ...
Selecting previously deselected package python-feedparser.
Unpacking python-feedparser (from .../python-feedparser_4.1-12_all.deb) ...
Selecting previously deselected package python-openssl.
Unpacking python-openssl (from .../python-openssl_0.7-2ubuntu1_i386.deb) ...
Selecting previously deselected package python-utidylib.
Unpacking python-utidylib (from .../python-utidylib_0.2-3.2ubuntu1_all.deb) ...
Selecting previously deselected package sabnzbdplus.
Unpacking sabnzbdplus (from .../sabnzbdplus_0.4.6+repack-0ubuntu1_all.deb) ...
Selecting previously deselected package unrar.
Unpacking unrar (from .../unrar_1%3a3.8.5-1_i386.deb) ...
Selecting previously deselected package par2.
Unpacking par2 (from .../archives/par2_0.4-10_i386.deb) ...
Selecting previously deselected package python-yenc.
Unpacking python-yenc (from .../python-yenc_0.3+debian-2ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up libtidy-0.99-0 (20081224cvs-1) ...

Setting up python-chardet (1.0.1-1.1) ...

Setting up python-cheetah (2.0.1-2ubuntu1) ...

Setting up python-cherrypy (2.3.0-1) ...

Setting up python-feedparser (4.1-12) ...

Setting up python-openssl (0.7-2ubuntu1) ...

Setting up python-utidylib (0.2-3.2ubuntu1) ...

Setting up sabnzbdplus (0.4.6+repack-0ubuntu1) ...

Setting up unrar (1:3.8.5-1) ...

Setting up par2 (0.4-10) ...
Setting up python-yenc (0.3+debian-2ubuntu1) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...
ubuntu@ubuntu:~$




ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sabnzbdplus
2009-03-06 18:12:04,965::INFO::--------------------------------
2009-03-06 18:12:04,966::INFO::sabnzbdplus-0.4.6 (rev=1888)
2009-03-06 18:12:04,967::INFO::Platform = posix
2009-03-06 18:12:04,967::INFO::Python-version = 2.5.4 (r254:67916, Feb 19 2009, 13:04:55)
[GCC 4.3.3]
2009-03-06 18:12:04,969::INFO::No download_dir defined, setting value to "downloads/incomplete"
2009-03-06 18:12:04,970::INFO::download_dir directory: /home/ubuntu/downloads/incomplete does not exist, try to create it
2009-03-06 18:12:04,974::INFO::No complete_dir defined, setting value to "downloads/complete"
2009-03-06 18:12:04,974::INFO::complete_dir directory: /home/ubuntu/downloads/complete does not exist, try to create it
2009-03-06 18:12:04,982::INFO::No script_dir defined, setting value to ""
2009-03-06 18:12:04,983::INFO::No nzb_backup_dir defined, setting value to ""
2009-03-06 18:12:04,984::INFO::No cache_dir defined, setting value to "cache"
2009-03-06 18:12:04,985::INFO::cache_dir directory: /home/ubuntu/.sabnzbd/cache does not exist, try to create it
2009-03-06 18:12:04,987::INFO::[sabnzbd] Loading data for rss_data.sab from /home/ubuntu/.sabnzbd/cache/rss_data.sab
2009-03-06 18:12:04,988::INFO::[sabnzbd] /home/ubuntu/.sabnzbd/cache/rss_data.sab missing
2009-03-06 18:12:05,015::INFO::[sabnzbd] Loading data for bytes7.sab from /home/ubuntu/.sabnzbd/cache/bytes7.sab
2009-03-06 18:12:05,016::INFO::[sabnzbd] /home/ubuntu/.sabnzbd/cache/bytes7.sab missing
2009-03-06 18:12:05,016::INFO::[sabnzbd] Loading data for queue7.sab from /home/ubuntu/.sabnzbd/cache/queue7.sab
2009-03-06 18:12:05,017::INFO::[sabnzbd] /home/ubuntu/.sabnzbd/cache/queue7.sab missing
2009-03-06 18:12:05,018::WARNING::[downloader] No active primary servers defined, will not download!
2009-03-06 18:12:05,019::INFO::All processes started
2009-03-06 18:12:05,042::INFO::_yenc module... found!
2009-03-06 18:12:05,043::INFO::celementtree module... found!
2009-03-06 18:12:05,044::INFO::par2 binary... found (/usr/bin/par2)
2009-03-06 18:12:05,045::INFO::unrar binary... found (/usr/bin/unrar)
2009-03-06 18:12:05,045::INFO::unzip binary... found (/usr/bin/unzip)
2009-03-06 18:12:05,046::INFO::nice binary... found (/usr/bin/nice)
2009-03-06 18:12:05,047::INFO::ionice binary... found (/usr/bin/ionice)
2009-03-06 18:12:05,047::INFO::pyOpenSSL... found (True)
2009-03-06 18:12:05,073::INFO::Web dir is /usr/share/sabnzbdplus/interfaces/Default
2009-03-06 18:12:05,079::INFO::Starting sabnzbdplus-0.4.6
2009-03-06 18:12:05,081::INFO::[nzbqueue] Saving queue
2009-03-06 18:12:05,081::INFO::[sabnzbd] Saving data for queue7.sab in /home/ubuntu/.sabnzbd/cache/queue7.sab
2009-03-06 18:12:05,082::INFO::[sabnzbd] Saving data for bytes7.sab in /home/ubuntu/.sabnzbd/cache/bytes7.sab
2009-03-06 18:12:05,103::INFO::[sabnzbd] Saving data for rss_data.sab in /home/ubuntu/.sabnzbd/cache/rss_data.sab
2009-03-06 18:12:05,106::INFO::[sabnzbd.misc] URLGrabber starting up
2009-03-06 18:12:05,107::INFO::Starting web-interface on localhost:8080
06/Mar/2009:18:12:05 CONFIG INFO Server parameters:
06/Mar/2009:18:12:05 CONFIG INFO   server.environment: production
06/Mar/2009:18:12:05 CONFIG INFO   server.log_to_screen: True
06/Mar/2009:18:12:05 CONFIG INFO   server.log_file: /home/ubuntu/.sabnzbd/logs/cherrypy.log
06/Mar/2009:18:12:05 CONFIG INFO   server.log_tracebacks: True
06/Mar/2009:18:12:05 CONFIG INFO   server.log_request_headers: False
06/Mar/2009:18:12:05 CONFIG INFO   server.protocol_version: HTTP/1.0
06/Mar/2009:18:12:05 CONFIG INFO   server.socket_host: localhost
06/Mar/2009:18:12:05 CONFIG INFO   server.socket_port: 8080
06/Mar/2009:18:12:05 CONFIG INFO   server.socket_file:
06/Mar/2009:18:12:05 CONFIG INFO   server.reverse_dns: False
06/Mar/2009:18:12:05 CONFIG INFO   server.socket_queue_size: 5
06/Mar/2009:18:12:05 CONFIG INFO   server.thread_pool: 10
06/Mar/2009:18:12:05 HTTP INFO Serving HTTP on http://localhost:8080/
2009-03-06 18:12:05,378::INFO::Lauching browser with http://localhost:8080/sabnzbd
127.0.0.1 - - [06/Mar/2009:18:12:20] "GET /sabnzbd HTTP/1.1" 302 - "" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020518 Ubuntu/9.04 (jaunty) Firefox/3.0.6"
127.0.0.1 - - [06/Mar/2009:18:12:21] "GET /sabnzbd/ HTTP/1.1" 200 - "" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020518 Ubuntu/9.04 (jaunty) Firefox/3.0.6"
127.0.0.1 - - [06/Mar/2009:18:12:21] "GET /sabnzbd/static/stylesheets/default.css HTTP/1.1" 200 - "http://localhost:8080/sabnzbd/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020518 Ubuntu/9.04 (jaunty) Firefox/3.0.6"
127.0.0.1 - - [06/Mar/2009:18:12:21] "GET /sabnzbd/static/stylesheets/defaultcolors.css HTTP/1.1" 200 - "http://localhost:8080/sabnzbd/" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020518 Ubuntu/9.04 (jaunty) Firefox/3.0.6"
127.0.0.1 - - [06/Mar/2009:18:12:21] "GET /sabnzbd/static/images/favicon.ico HTTP/1.1" 200 - "" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020518 Ubuntu/9.04 (jaunty) Firefox/3.0.6"
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

The version in ubuntu's repositories hasn't been updated at all yet; as you can see it's still the initial package uploaded prior to the python 2.6 changeover. Some issues had to be sorted out first, the results of that have just been uploaded as the 4th revision of 0.4.7 for jaunty on the PPA, it's very much like the update I intend to send into the official repositories.
User avatar
Shadowtester
Newbie
Newbie
Posts: 44
Joined: July 31st, 2008, 11:04 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by Shadowtester »

jcfp

Is there any chance you could create a unofficial debian repository for some of us other poor sap whos skills compiling from source is not that great.
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

Shadowtester wrote:Is there any chance you could create a unofficial debian repository for some of us other poor sap whos skills compiling from source is not that great.
Too much work, I'm not a debian user and there's no convenient launchpad ppa style "upload a source package and we'll take care of building and hosting" service for it. Work to get the package into debian (sid/unstable) is mostly done though. Feel feel to try the following script, it will try to download and build things from current svn.

Remember: it's svn, every bug is a feature. Don't use for Ubuntu. No support.

Code: Select all

#!/bin/sh
#
# build package, grabbing debian dir from svn;
# assumes common packaging utils are available:
# i.e. lintian dpkg-dev devscripts svn

PKGNAME=sabnzbdplus
WORKDIR=/tmp
DEBUILD=/usr/bin/debuild
SVNURL=svn://svn.debian.org/svn/python-apps/packages/sabnzbdplus/

# create work env
mkdir -p $WORKDIR
cd $WORKDIR

# download stuff
svn checkout $SVNURL
cd $WORKDIR/$PKGNAME/trunk
uscan --force-download || exit 1

# prepare sources
cd $WORKDIR/$PKGNAME
tar -zxf $PKGNAME_*.orig.tar.gz || exit 1
UNTARDIR=$(readlink -f $PKGNAME_*.orig.tar.gz | sed -e "s/\(-src\|\.orig\|\)\.tar\.gz//")
cp -a $WORKDIR/$PKGNAME/trunk/debian $UNTARDIR/
cd $UNTARDIR || exit 1

# build package
[ -x $DEBUILD ] || exit 1
debuild -us -uc && ls -la $WORKDIR/$PKGNAME/*.deb
User avatar
nxmehta
Newbie
Newbie
Posts: 3
Joined: November 18th, 2008, 4:28 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by nxmehta »

Thanks so much for maintaining this unofficial repository.  I have a small request.  Can you update the init.d script to generate a pid file?  I'd like to use some monitoring software (monit) to watch and control sabnzbd.
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

Took me a few minutes to figure out how to only get the one (hopefully correct) pid, but here you go... please test by replacing /etc/init.d/sabnzbdplus with the attached file (don't forget to make it executable) and report back.
User avatar
nxmehta
Newbie
Newbie
Posts: 3
Joined: November 18th, 2008, 4:28 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by nxmehta »

jcfp wrote: Took me a few minutes to figure out how to only get the one (hopefully correct) pid, but here you go... please test by replacing /etc/init.d/sabnzbdplus with the attached file (don't forget to make it executable) and report back.
Tested it out and it works great.  Thanks for the change!  The only suggestion I would make is to name the file /var/run/$NAME.pid instead of /var/run/$NAME just to match the convention of how pid files are named.
typhoe
Newbie
Newbie
Posts: 8
Joined: February 2nd, 2009, 12:17 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by typhoe »

Hi,

using the 0.4.9 version from the intrepid PPA, it seems I can't use the rss feed agregation anymore.

The rss_download does not seem to pass the apikey needed (Trying to use the preview and click a link get me an error: Session Key Required).

Has anyone encounter the same problem?

I read that the new security mecanism should not impact rrs feed but only third app... ? Is it only happening in the ppa package?

Thanks,
Typhoe
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

That's a bug in the 0.4.9 release, see here.
typhoe
Newbie
Newbie
Posts: 8
Joined: February 2nd, 2009, 12:17 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by typhoe »

Thank you for the quick answer.

I didn't find that topic in my search :/

Sorry for the bother.

So I'll just wait for the fix next week.

Regards,
Typhoe
Arg0t
Newbie
Newbie
Posts: 6
Joined: April 25th, 2009, 10:29 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by Arg0t »

Running 4.9 on Jaunty. Had an issue where I could not get the download rate over 500KB/s with SAB taking 100% of one cpu core. Tried changing settings and disks with no joy.

Fix was changing SAB to use Python 2.6 rather than 2.5, now get download rates of 2.5MB/s and 30% cpu usage. Do not have a clue why 2.5 has such a large impact on performance on my machine.
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by jcfp »

You're the first to get better results with python 2.6, certain functions in 0.4.x are supposed to not work with that (shutdown, scheduling, ...). Unfortunately I can't do any real testing at the moment since I haven't upgraded to jaunty yet. Probably best to wait and see if anybody else notices similar symptoms; if so please do report.
User avatar
sander
Release Testers
Release Testers
Posts: 8829
Joined: January 22nd, 2008, 2:22 pm

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by sander »

Arg0t wrote: Running 4.9 on Jaunty. Had an issue where I could not get the download rate over 500KB/s with SAB taking 100% of one cpu core. Tried changing settings and disks with no joy.

Fix was changing SAB to use Python 2.6 rather than 2.5, now get download rates of 2.5MB/s and 30% cpu usage. Do not have a clue why 2.5 has such a large impact on performance on my machine.
Triggered by your post, I tried this on Jaunty on my laptop, and as you can see below, I get no relevant difference.

First python 2.5:

python2.5 SABnzbd.py:

Code: Select all

Stage Download
    [Time-Taken]: 3 minutes 11 seconds 
    [Avg-Speed]: 1155kB/s

Stage Par2
    [PAR-INFO] Boys MP3: => Verified in 23.7s, all files correct
    [DEL-INFO] Boys MP3: => Deleted 3 file(s)

Stage Unrar
    [RAR-INFO] Boys MP3: => Unpacked 23 files/folders in 13.1s
    [DEL-INFO] Boys MP3: => Deleted 12 file(s) 

Then python 2.6:

python2.6 SABnzbd.py

Code: Select all


Stage Download
    [Time-Taken]: 3 minutes 9 seconds 
    [Avg-Speed]: 1166kB/s

Stage Par2
    [PAR-INFO] Boys MP3: => Verified in 25.0s, all files correct
    [DEL-INFO] Boys MP3: => Deleted 3 file(s)

Stage Unrar
    [RAR-INFO] Boys MP3: => Unpacked 23 files/folders in 6.5s
    [DEL-INFO] Boys MP3: => Deleted 12 file(s) 
Please don't send me unrequested PM's; the forum is the best way to communicate.
If someone helps you, please reply to that help.
f you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
altmenorg
Newbie
Newbie
Posts: 1
Joined: April 13th, 2009, 2:32 am

Re: (Unofficial) Ubuntu repository for SABnzbd+

Post by altmenorg »

Hi,

I'm one of the uploaders of sabnzbd for Ubuntu (I uploaded 0.4.9 to Jaunty).
I'm not an expert in Python myself (I'm more in C++ for what I manage to code), but as a packager, fill free to send me any svn diff, or patch that would eventually issues.
I can upload to the next branch (Karmic) or provide a stable release update for jaunty.
Locked