Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: smeerbartje on December 16, 2008, 10:47:44 PM
-
I'm trying to install SABnzbd (http://www.sabnzbd.org/) 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 (http://www.sabnzbd.org/))
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...
-
Nobody? Can someone please give me a hint on how to update python on 7.4?
-
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 (https://www.centos.org/modules/newbb/viewtopic.php?viewmode=thread&topic_id=4317&forum=23&post_id=12420) is the first answer I found with "python 2.4.3 centos 4"
Ciao
Stefano
-
Nobody? Can someone please give me a hint on how to update python on 7.4?
Look at http://wiki.contribs.org/Pootle
-
Hi,
if you just want a NZB downloader, you can try Hellanzb. This worked for me on the SME without any Problems.
Cheers
-
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?
-
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
-
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...
-
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
-
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?
-
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.
#if [ `whoami` == root ]
#then
# echo "Ninan should NOT run as root!"
# exit -1
#fi
Create /etc/init.d/ninan and set it executable
#!/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
-
wow, such a quick reply! Thanks, I'll try it later today, and I will post my findings.
Grtz
-
Hmm, does not seem to work yet. :?
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??
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 :?:
-
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
-
Seems to me that ninan is running:
[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:
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:
-
You have multiple copies of ninan trying to run. Kill them all off and start again.
Si
-
hmm, still have the same problem:
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 PHPSESSID%*******
Firefox is continue loading the page for over 1 minute now, but nothing show up. Also the server is not busy doing something else, I've checked.
-
Look at the nohup.out to see what ninan is doing
Si
-
2010-11-12 19:31:40.797::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2010-11-12 19:31:41.595::INFO: jetty-6.1.21
2010-11-12 19:31:43.734:/ninan:INFO: Initializing Spring root WebApplicationContext
2010-11-12 19:31:44,870 INFO backend.configuration.Config.initProperties - Initializing configuration properties
2010-11-12 19:31:45,338 INFO backend.configuration.Config.load - Ninan properties has been loaded.
2010-11-12 19:31:45,423 DEBUG backend.db.AbstractDAO.<init> - Database type is HSQLDB - org.hsqldb.jdbcDriver
2010-11-12 19:31:45,458 INFO backend.newsfile.ArticleCache.<clinit> - Max memory used by Ninan: 63 Mb.
2010-11-12 19:31:45,458 DEBUG backend.newsfile.ArticleCache.<clinit> - BUFSIZE: 32768 bytes.
2010-11-12 19:31:45,459 DEBUG backend.newsfile.ArticleCache.<init> - Article cache enabled
2010-11-12 19:31:46,303 DEBUG backend.newsserver.SpeedManager.<init> - MS_BETWEEN_FULLSPEED_SAMPLES: 1000 SAMPLE_DURATION_FULLSPEED: 30000
2010-11-12 19:31:46,303 DEBUG backend.newsserver.SpeedManager.<init> - MS_BETWEEN_THROTTLE_SAMPLES: 100 SAMPLE_DURATION_THROTTLE: 15000
2010-11-12 19:31:46,385 DEBUG backend.rmi.server.threading.RMIThreads.addListener - Addlistener: Thread[NinanRMIServer_1,5,main]
2010-11-12 19:31:47,845 DEBUG frontend.ApplicationEventReceiver.onApplicationEvent - Got ContextRefreshedEvent at 1289586707781
2010-11-12 19:31:48,037 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-12 19:31:50.601::WARN: failed SelectChannelConnector@0.0.0.0:9090: java.net.BindException: Address already in use
2010-11-12 19:31:50.602::WARN: failed Server@1f07597: java.net.BindException: Address already in use
2010-11-12 19:31:50.602::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)
It says: java.net.BindException: Address already in use
But if I open my regular server page with :9090 it's not showing another page.
-
It is port 9099 that is in use - this appears to be Java RMI (Java remote method invocation). Do you have another tomcat-based app running?
Try asking on the Ninan forums (www.ninan.org)
Si
-
I installed Torrentflux b4rt (http://wiki.contribs.org/Torrentflux), I think this also uses tomcat.
I tried to kill all processes from Torrentflux and the try to start ninan, so far no luck :?
I will start searching the ninan forums to check if it is possible to change the 9099 port......