SabNZBd on Opensolaris?

Feel free to talk about anything and everything in this board.
mad99
Newbie
Newbie
Posts: 32
Joined: November 22nd, 2008, 4:42 am

SabNZBd on Opensolaris?

Post by mad99 »

Hi Forum,
is anyone running SabNZBd on OpenSolaris (2008.11) successfully?
I am planning to build my fileserver with Solaris and it would be a nice add-on to have Sab running there, too?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SabNZBd on Opensolaris?

Post by shypike »

Provided Python 2.5 is available, it's not very hard to install it.
Most of the required packages can be installed manually.
There's only one exception: that's the yEnc package (it requires a C compiler).
If you do not install it, SABnzbd will work, only a bit slower.

Look at this page for more info:
http://sabnzbd.wikidot.com/install-cc42

Starting at where cheetah-2.0.1 is mentioned.
You can skip the CherrPy part.

The biggest challenges may be par2cmdline.
Unrar you can get pre-built here: http://www.rarlab.com/rar_add.htm

BTW: I assume you're looking at Solaris for Intel/AMD (and not SPARC).
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SabNZBd on Opensolaris?

Post by shypike »

Actually, a number of Python things are present in Sun's package manager.
Python
unzip
pyopenssl

So Cheetah, yEnc, par2cmdline and unrar you'll have to install manually.
You can do without yEnc.
mad99
Newbie
Newbie
Posts: 32
Joined: November 22nd, 2008, 4:42 am

Re: SabNZBd on Opensolaris?

Post by mad99 »

Thx for your help, I will try it as soon as I have my OS-Box running...
Btw. yes you are right, I am using the OSx86, not Sparc.

Update:
I managed to install/compile & run SabNZBd on my Solaris Box:
root@opensolaris:/daten/public/SabNZBd/SABnzbd-0.4.2# python2.5 ./SABnzbd.py -b0 -s 0.0.0.0:8080
2009-01-11 19:00:48,677::INFO::--------------------------------
2009-01-11 19:00:48,678::INFO::SABnzbd.py-0.4.2 (rev=1447)
2009-01-11 19:00:48,678::INFO::Platform = posix
2009-01-11 19:00:48,679::INFO::Python-version = 2.5.2 (r252:60911, Oct  7 2008, 08:56:44) [C]
2009-01-11 19:00:48,682::INFO::[sabnzbd] Loading data for rss_data.sab from /root/.sabnzbd/cache/rss_data.sab
2009-01-11 19:00:48,685::INFO::[sabnzbd] Loading data for bytes7.sab from /root/.sabnzbd/cache/bytes7.sab
2009-01-11 19:00:48,685::INFO::[sabnzbd] Loading data for queue7.sab from /root/.sabnzbd/cache/queue7.sab
2009-01-11 19:00:48,686::INFO::All processes started
2009-01-11 19:00:48,688::INFO::_yenc module... found!
2009-01-11 19:00:48,688::INFO::celementtree module... found!
2009-01-11 19:00:48,689::ERROR::par2 binary... NOT found!
2009-01-11 19:00:48,689::INFO::rar binary... found (/usr/sbin/unrar)
2009-01-11 19:00:48,690::INFO::unzip binary... found (/usr/bin/unzip)
2009-01-11 19:00:48,690::INFO::pyOpenSSL... NOT found - try apt-get install python-pyopenssl (SSL is optional)
2009-01-11 19:00:48,774::INFO::Web dir is /daten/public/SabNZBd/SABnzbd-0.4.2/interfaces/Default
2009-01-11 19:00:48,779::INFO::Starting SABnzbd.py-0.4.2
2009-01-11 19:00:48,781::INFO::[nzbqueue] Saving queue
2009-01-11 19:00:48,782::INFO::[sabnzbd] Saving data for queue7.sab in /root/.sabnzbd/cache/queue7.sab
2009-01-11 19:00:48,782::INFO::[sabnzbd] Saving data for bytes7.sab in /root/.sabnzbd/cache/bytes7.sab
2009-01-11 19:00:48,783::INFO::[sabnzbd] Saving data for rss_data.sab in /root/.sabnzbd/cache/rss_data.sab
2009-01-11 19:00:48,850::INFO::[sabnzbd.misc] URLGrabber starting up
2009-01-11 19:00:48,860::INFO::Starting web-interface on :8080
11/Jan/2009:19:00:48 CONFIG INFO Server parameters:
11/Jan/2009:19:00:48 CONFIG INFO   server.environment: production
11/Jan/2009:19:00:48 CONFIG INFO   server.log_to_screen: True
11/Jan/2009:19:00:48 CONFIG INFO   server.log_file: /root/.sabnzbd/logs/cherrypy.log
11/Jan/2009:19:00:48 CONFIG INFO   server.log_tracebacks: True
11/Jan/2009:19:00:48 CONFIG INFO   server.log_request_headers: False
11/Jan/2009:19:00:48 CONFIG INFO   server.protocol_version: HTTP/1.0
11/Jan/2009:19:00:48 CONFIG INFO   server.socket_host:
11/Jan/2009:19:00:48 CONFIG INFO   server.socket_port: 8080
11/Jan/2009:19:00:48 CONFIG INFO   server.socket_file:
11/Jan/2009:19:00:48 CONFIG INFO   server.reverse_dns: False
11/Jan/2009:19:00:48 CONFIG INFO   server.socket_queue_size: 5
11/Jan/2009:19:00:48 CONFIG INFO   server.thread_pool: 10
11/Jan/2009:19:00:49 HTTP INFO Serving HTTP on http://0.0.0.0:8080/

but right now I don't get the GUI in my browser, just the following output on the console(local and remote):
::ffff:127.0.0.1 - - [11/Jan/2009:19:01:46] "GET /favicon.ico HTTP/1.1" 200 1406 "" "Mozilla/5.0 (X11; U; SunOS i86pc; de; rv:1.9.0.4) Gecko/2008111710 Firefox/3.0.4"
::ffff:127.0.0.1 - - [11/Jan/2009:19:03:35] "GET / HTTP/1.1" 200 - "" "Mozilla/5.0 (X11; U; SunOS i86pc; de; rv:1.9.0.4) Gecko/2008111710 Firefox/3.0.4"

after editing the .ini I downloaded a .nzb file for verification of funtionality, just the GUI is not shown :-(
Last edited by mad99 on January 11th, 2009, 2:56 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SabNZBd on Opensolaris?

Post by shypike »

SABnzbd only has a web interface, remember?
Which URL did you use in your browser?

BTW why are you using release 0.4.2? We're on 0.4.6 now.
Last edited by shypike on January 14th, 2009, 9:56 am, edited 1 time in total.
mad99
Newbie
Newbie
Posts: 32
Joined: November 22nd, 2008, 4:42 am

Re: SabNZBd on Opensolaris?

Post by mad99 »

WebInterface was what I meant by writing GUI  ;)
thats why I wrote I don't get the GUI in my browser...
User avatar
sander
Release Testers
Release Testers
Posts: 8886
Joined: January 22nd, 2008, 2:22 pm

Re: SabNZBd on Opensolaris?

Post by sander »

mad99 wrote:
11/Jan/2009:19:00:49 HTTP INFO Serving HTTP on http://0.0.0.0:8080/

but right now I don't get the GUI in my browser, just the following output on the console(local and remote):
::ffff:127.0.0.1 - - [11/Jan/2009:19:01:46] "GET /favicon.ico HTTP/1.1" 200 1406 "" "Mozilla/5.0 (X11; U; SunOS i86pc; de; rv:1.9.0.4) Gecko/2008111710 Firefox/3.0.4"
::ffff:127.0.0.1 - - [11/Jan/2009:19:03:35] "GET / HTTP/1.1" 200 - "" "Mozilla/5.0 (X11; U; SunOS i86pc; de; rv:1.9.0.4) Gecko/2008111710 Firefox/3.0.4"

after editing the .ini I downloaded a .nzb file for verification of funtionality, just the GUI is not shown :-(
You're using an incorrect URL in your webbrowser: you should use http://localhost:8080/sabnzbd and not http://localhost:8080/

Your log says "GET / HTTP/1.1", whereas correct URL results in logging "GET /sabnzbd HTTP/1.1", like here:

Code: Select all

05/Oct/2008:10:41:51 HTTP INFO Serving HTTP on http://0.0.0.0:8080/
2008-10-05 10:41:51,720::INFO::Lauching browser with http://localhost:8080/sabnzbd
2008-10-05 10:41:51,757::INFO::[downloader] [email protected]:119: Initiating connection
2008-10-05 10:41:51,829::INFO::[downloader] [email protected]:563: Initiating connection
::ffff:127.0.0.1 - - [05/Oct/2008:10:41:52] "GET /sabnzbd HTTP/1.1" 302 - "" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3"
HTH
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 8886
Joined: January 22nd, 2008, 2:22 pm

Re: SabNZBd on Opensolaris?

Post by sander »

shypike wrote: Provided Python 2.5 is available, it's not very hard to install it.
@shypike:

BTW: Is there any experience with SABnzbd on Python 2.6? OpenSUSE 11.1 has introduced Python 2.6, it seems.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: SabNZBd on Opensolaris?

Post by switch »

We don't support Python 2.6
I believe most bits work, however whenever sabnzbd does it's internal restart, such as when saving certain config values, the program exits.
User avatar
sander
Release Testers
Release Testers
Posts: 8886
Joined: January 22nd, 2008, 2:22 pm

Re: SabNZBd on Opensolaris?

Post by sander »

switch wrote: We don't support Python 2.6
I believe most bits work, however whenever sabnzbd does it's internal restart, such as when saving certain config values, the program exits.
OK. I'm still "safe" for at least 10 months as Ubuntu 9.04 Jaunty will still have python 2.5: http://packages.ubuntu.com/jaunty/python mentions "Package: python (2.5.2-3ubuntu1)"
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SabNZBd on Opensolaris?

Post by shypike »

switch wrote: We don't support Python 2.6
We use about 10 different packages from other parties (either embedded or installed Python modules).
These aren't all compatible with Python 2.6.
We keep an eye on progress in that area.

A transfer to Python 3 might be years away.
mad99
Newbie
Newbie
Posts: 32
Joined: November 22nd, 2008, 4:42 am

Re: SabNZBd on Opensolaris?

Post by mad99 »

@shypike:
thx for pointing out this stupid error :-) I must havr read this a thousand times while thinking what could be the problem... So now I know: the user (me) ist the problem...
jordz
Newbie
Newbie
Posts: 19
Joined: December 21st, 2008, 10:49 am

Re: SabNZBd on Opensolaris?

Post by jordz »

I'm using python 2.6 @ Arch Linux.

Installed these packages from Arch: 'python-cheetah' 'python-feedparser' 'python-yenc' 'pyopenssl'

I only get a few warnings at startup, but it works fine :)
I'm using the cherrypy provided by sabnzbd.
I got the same warning when using cherrpy provided by Arch.

/opt/sabnzbd/cherrypy/lib/cptools.py:4: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/opt/sabnzbd/cherrypy/lib/sessions.py:16: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/opt/sabnzbd/cherrypy/_cperror.py:190: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  self.message = message
Last edited by jordz on January 14th, 2009, 7:40 am, edited 1 time in total.
Arch Linux sabnbzd-svn package: http://aur.archlinux.org/packages.php?ID=21941
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: SabNZBd on Opensolaris?

Post by shypike »

I think "deprecated" is just a warning and should not interfere with normal operation.

However, there can be all sorts of subtle incompatibilities in other areas.
Last edited by shypike on January 14th, 2009, 9:54 am, edited 1 time in total.
mad99
Newbie
Newbie
Posts: 32
Joined: November 22nd, 2008, 4:42 am

Re: SabNZBd on Opensolaris?

Post by mad99 »

I am using Python 2.52 on osol and didn't get any errors/warnings. atm everything is running, I even have a webinterface ::)
Post Reply