Koozali.org: home of the SME Server

Install SABnzbd on SME 7.4

Offline smeerbartje

  • *
  • 71
  • +0/-0
Install SABnzbd on SME 7.4
« on: December 16, 2008, 10:47:44 PM »
I'm trying to install SABnzbd on my SME 7.4 server. SABnzbd is a free/open-source cross-platform binary newsreader written in Python. It simplifies the process of downloading from Usenet dramatically, thanks to its friendly web-based user interface and advanced built-in post-processing options that automatically verify, repair, extract and clean up posts downloaded from Usenet. SABnzbd also has a fully customizable user interface, and offers a complete API for third-party applications to hook into (quote)

I'm pretty new to installing "external" software to SME server, but I think with a little help from each other, we could mange it :-). After downloading the latest version I tried to unzip and copy to the home (admin) directory of SME. The manual tells me then to run the following command: "python SABnzbd.py" which results in the error: Sorry, requires Python 2.4.3 or higher. This can be right, because SME default comes with version 2.3.4. So how do I install a new version of Python??

By the way, I will create a wiki entry if we can manage to install SABnzbd...
« Last Edit: December 17, 2008, 11:38:06 AM by smeerbartje »

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #1 on: December 18, 2008, 09:19:05 AM »
Nobody? Can someone please give me a hint on how to update python on 7.4?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Install SABnzbd on SME 7.4
« Reply #2 on: December 18, 2008, 09:30:17 AM »
hi..

if you have a virtual machine you could try to upgrade your python but you are going into big troubles.. yum uses python and I suppose that upgrading/changing python would break yum..

anyway, have you searched on google?

this is the first answer I found with "python 2.4.3 centos 4"

Ciao
Stefano

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Install SABnzbd on SME 7.4
« Reply #3 on: December 18, 2008, 11:04:22 PM »
Nobody? Can someone please give me a hint on how to update python on 7.4?

Look at http://wiki.contribs.org/Pootle

Offline tec

  • ***
  • 48
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #4 on: December 19, 2008, 12:03:07 PM »
Hi,
if you just want a NZB downloader, you can try Hellanzb. This worked for me on the SME without any Problems.
Cheers

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #5 on: December 19, 2008, 12:05:14 PM »
Hi,
if you just want a NZB downloader, you can try Hellanzb. This worked for me on the SME without any Problems.
Cheers

You're serious?? Is there a contrib available or w step-by-step installation guide?

Offline tec

  • ***
  • 48
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #6 on: December 19, 2008, 01:24:26 PM »
Yes there is something like a rough Step-by Step Guide
Search for Hellanzb here and you find
http://forums.contribs.org/index.php/topic,37002.0.html

Keep in mind that Hellanzb is only the Downloadpart. If you want a nice Webfrontend you can choos zussaweb.
Hope this helps
Cheers

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #7 on: December 19, 2008, 01:27:29 PM »
Yes there is something like a rough Step-by Step Guide
Search for Hellanzb here and you find
http://forums.contribs.org/index.php/topic,37002.0.html

Keep in mind that Hellanzb is only the Downloadpart. If you want a nice Webfrontend you can choos zussaweb.
Hope this helps
Cheers

Great! I will try this later on...

Offline si_blakely

  • *
  • 57
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #8 on: December 22, 2008, 10:32:53 AM »
I use Ninan (ninan.sourceforge.net) - install java (using the howto), then extract the ninan files into /opt/ninan. A wee tweak sorts out an issue with running the script as root. I created an smb ibay containing the downloads directory and a directory for nzb files (saving an nzb file in this directory adds it to the queue). I have also written a download script that modifies permissions and moves some files into a specific directory structure (for sharing to additional devices via TwonkyServer/OxylBox/smb)

Works like a charm.

Si

Offline SuperGrover

  • ***
  • 56
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #9 on: November 09, 2010, 11:46:18 AM »
Bit of an old topic  :-?

I'm still looking for a newsleecher to run on the SME server, but didn't succeed so far with neither SABnzbd nor Ninan.

@si_blakely, could you explain a little bit more on Ninan?

Java is installed and working, Ninan is in the /opt/ninan directory and the ibay is created. How do I get Ninan started en what is the webadress to access it?

Offline si_blakely

  • *
  • 57
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #10 on: November 09, 2010, 12:35:41 PM »
First, comment out the root user check in ninancore.sh This is probably bad practice to run as root, but I have not felt the urge to try to create a more restricted user to do this.
Code: [Select]
#if [ `whoami` == root ]
#then
#   echo "Ninan should NOT run as root!"
#   exit -1
#fi

Create  /etc/init.d/ninan and set it executable
Code: [Select]
#!/bin/sh
#
# /etc/init.d/ninan
#

DESC="Usenet Client"
NAME=Ninan
SCRIPTNAME=/etc/init.d/ninan
DIR=/opt/ninan

#
#    Function that starts the service.
#
s_start() {
    cd $DIR &&
    nohup ./ninancore.sh &
}

#
#    Function that stops the service.
#
s_stop() {
    cd $DIR &&
    ./ninanstop.sh
}

case "$1" in
  start)
    echo -n "Starting $DESC: $NAME"
    s_start
#    rc_status -v
    ;;
  stop)
    s_stop
#    rc_status -v
    ;;
  restart)
    echo -n "Restarting $DESC: $NAME"
    s_stop
    sleep 2
    s_start
#    rc_status -v
    ;;
  *)
 
echo "Usage: ninan {start|stop|restart}"

esac

# rc_exit

link this from /etc/rc.d/rc3.d/S99ninan although I am not sure that this quite works properly. If not, just login and execute /etc/init.d/ninan

The url is http://host:9090/ninan but you could easily set up a proxypass forward to do this from apache. I set up the directories so that \\host\nntp\nzbfiles is the nzbin directory (just copy a newzbin file there and ninan will download it) and \\host\nntp\downloads is where the downloads happen. I also do not bind ninan to the external interface, so I have to be within the local network or tunnelled in to use it. I have a GreaseMonkey script in Firefox that adds a download button when browsing Newzbin so it is a one click download.

Hope this helps.

Si

Offline SuperGrover

  • ***
  • 56
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #11 on: November 09, 2010, 02:10:44 PM »
wow, such a quick reply! Thanks, I'll try it later today, and I will post my findings.

Grtz

Offline SuperGrover

  • ***
  • 56
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #12 on: November 09, 2010, 02:41:09 PM »
Hmm, does not seem to work yet.  :?

Code: [Select]
GET %2Fninan HTTP%2F1.1
Host%3A 192.168.0.100%3A9090
User-Agent%3A Mozilla%2F5.0 (Windows%3B U%3B Windows NT 6.1%3B nl%3B rv%3A1.9.2.12) Gecko%2F20101026 Firefox%2F3.6.12
Accept%3A text%2Fhtml%2Capplication%2Fxhtml%2Bxml%2Capplication%2Fxml%3Bq%3D0.9%2C*%2F*%3Bq%3D0.8
Accept-Language%3A nl%2Cen-us%3Bq%3D0.7%2Cen%3Bq%3D0.3
Accept-Encoding%3A gzip%2Cdeflate
Accept-Charset%3A ISO-8859-1%2Cutf-8%3Bq%3D0.7%2C*%3Bq%3D0.7
Keep-Alive%3A 115
Connection%3A keep-alive
Cookie%3A auth_probe%3D1%3B auth_tkt*********************

I assume this settings can be done from a web application??
Quote
I set up the directories so that \\host\nntp\nzbfiles is the nzbin directory (just copy a newzbin file there and ninan will download it) and \\host\nntp\downloads is where the downloads happen.

If I check the Ninan site, all required files are 755, but in my phpAdmin, there's no table added to MySQL :?:
« Last Edit: November 09, 2010, 02:45:56 PM by SuperGrover »

Offline si_blakely

  • *
  • 57
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #13 on: November 09, 2010, 03:36:39 PM »
Do a ps -ef | grep ninan to see if the ninan process is running.

If not, cd into /opt/ninan and run nohup ./ninancore.sh &

The nohup.out file contains the logging info.

Si

Offline SuperGrover

  • ***
  • 56
  • +0/-0
Re: Install SABnzbd on SME 7.4
« Reply #14 on: November 09, 2010, 08:51:26 PM »
Seems to me that ninan is running:

Code: [Select]
[root@server ~]# ps -ef | grep ninan
root      8787  8752  0 20:44 pts/3    00:00:00 grep ninan
root     18311     1  0 11:40 ?        00:00:00 /bin/bash ./ninancore.sh
root     25812     1  0 14:33 ?        00:00:00 /bin/sh /etc/init.d/ninan start
root     25813 25812  0 14:33 ?        00:00:00 /bin/bash ./ninancore.sh
root     26101     1  0 14:39 ?        00:00:00 /bin/sh /etc/init.d/ninan start
root     26102 26101  0 14:39 ?        00:00:00 /bin/bash ./ninancore.sh
root     26358     1  0 14:44 ?        00:00:00 /bin/bash ./ninancore.sh
root     26658     1  0 14:49 ?        00:00:00 /bin/bash ./ninancore.sh
root     32516     1  0 17:13 ?        00:00:00 /bin/sh /etc/init.d/ninan start
root     32517 32516  0 17:13 ?        00:00:00 /bin/bash ./ninancore.sh
root     32571     1  0 17:13 ?        00:00:00 /bin/bash ./ninancore.sh
root     32651     1  0 17:14 ?        00:00:00 /bin/bash ./ninancore.sh

Still can't login, this is the nohup.out file:
Code: [Select]
2010-11-09 20:47:14.687::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2010-11-09 20:47:15.403::INFO:  jetty-6.1.21
2010-11-09 20:47:17.434:/ninan:INFO:  Initializing Spring root WebApplicationContext
2010-11-09 20:47:18,547 INFO  backend.configuration.Config.initProperties - Initializing configuration properties
2010-11-09 20:47:18,956 INFO  backend.configuration.Config.load - Ninan properties has been loaded.
2010-11-09 20:47:19,031 DEBUG backend.db.AbstractDAO.<init> - Database type is HSQLDB - org.hsqldb.jdbcDriver
2010-11-09 20:47:19,065 INFO  backend.newsfile.ArticleCache.<clinit> - Max memory used by Ninan: 63 Mb.
2010-11-09 20:47:19,066 DEBUG backend.newsfile.ArticleCache.<clinit> - BUFSIZE: 32768 bytes.
2010-11-09 20:47:19,067 DEBUG backend.newsfile.ArticleCache.<init> - Article cache enabled
2010-11-09 20:47:19,565 DEBUG backend.newsserver.SpeedManager.<init> - MS_BETWEEN_FULLSPEED_SAMPLES: 1000 SAMPLE_DURATION_FULLSPEED: 30000
2010-11-09 20:47:19,565 DEBUG backend.newsserver.SpeedManager.<init> - MS_BETWEEN_THROTTLE_SAMPLES: 100 SAMPLE_DURATION_THROTTLE: 15000
2010-11-09 20:47:19,598 DEBUG backend.rmi.server.threading.RMIThreads.addListener - Addlistener: Thread[NinanRMIServer_1,5,main]
2010-11-09 20:47:20,308 DEBUG frontend.ApplicationEventReceiver.onApplicationEvent - Got ContextRefreshedEvent at 1289332040305
2010-11-09 20:47:22,172 ERROR backend.rmi.NinanRMIServer.run - Unable to open RMI connection to NinanRMIServer - is the RMI registry running?
dk.team.ninan.rmi.exceptions.NinanRMIException: RMI Binding problem; nested exception is:
java.rmi.server.ExportException: Port already in use: 9099; nested exception is:
java.net.BindException: Address already in use
at dk.team.ninan.backend.rmi.NinanRMIServer.getInstance(NinanRMIServer.java:129)
at dk.team.ninan.backend.rmi.NinanRMIServer.run(NinanRMIServer.java:159)
Caused by: java.rmi.server.ExportException: Port already in use: 9099; nested exception is:
java.net.BindException: Address already in use
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:393)
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:129)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:190)
at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:68)
at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:222)
at dk.team.ninan.backend.rmi.NinanRMIServer.getInstance(NinanRMIServer.java:120)
... 1 more
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at dk.team.ninan.backend.rmi.NinanSslRMIServerSocketFactory$1.<init>(NinanSslRMIServerSocketFactory.java:55)
at dk.team.ninan.backend.rmi.NinanSslRMIServerSocketFactory.createServerSocket(NinanSslRMIServerSocketFactory.java:55)
at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:649)
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:299)
... 9 more
2010-11-09 20:47:23.342::WARN:  failed SelectChannelConnector@0.0.0.0:9090: java.net.BindException: Address already in use
2010-11-09 20:47:23.342::WARN:  failed Server@1609c13: java.net.BindException: Address already in use
2010-11-09 20:47:23.342::WARN:  EXCEPTION
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.Server.doStart(Server.java:235)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)

I have no clue on how to get it working. In the meantime I use SABnzbd on my win 7 PC, but I really like to be able to send NZB's over the internet to my server (always on), to be able to check the download when I get home  :grin: