problems getting deluge running (newbie)

General support for problems installing or using Deluge
jp73
New User
New User
Posts: 9
Joined: Wed May 06, 2009 6:54 pm

problems getting deluge running (newbie)

Post by jp73 »

Hi
I'm trying to set up deluge on a debian lenny headless server.

I used this webpage as guidance http://propellerheadadmin.com/tutorials ... ith-deluge

however installed deluge using apt-get install deluge-torrent

that went okay.

Than I create a file deluge-daemon
and put it in /etc/init.d

I put the startup script inhere and added my normal username (jeroen)

#!/bin/sh
# created by mambang
# Headless deluge startup script

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DELUGE="/usr/bin/deluge"
DELUGE_OPTIONS="-u web"
USER="jeroen" ###########Change this to your username

DELUGEDAEMON="/usr/bin/deluged"
DESC1="Deluge Daemon"
DESC2="WebUi"
NAME1="deluged"
NAME2="Deluge webserver"

set -e


case "$1" in
start)
echo -n "Starting $DESC1 : "
start-stop-daemon -c $USER --start --background --quiet --exec $DELUGEDAEM$
echo "$NAME1"
sleep 2
echo -n "Starting $DESC2 : "
start-stop-daemon -c $USER --start --background --quiet --exec $DELUGE -- $
echo "$NAME2"
;;
stop)
echo -n "Stopping $DESC1 : "
PIDDELUGE=`ps ax |grep deluged |sed -n 1p |awk '{print $1}'`
kill $PIDDELUGE
echo "$NAME1."
echo -n "Stopping $DESC2 : "
PIDWEB=`ps ax |grep deluge |sed -n 2p |awk '{print $1}'`
kill $PIDWEB
echo "$NAME2."
;;
*)
N=deluge-daemon
echo "Usage: $N {start|stop|restart}" >&2

exit 1
;;
esac

exit 0




I continued with the steps on the above website :

I ran: chmod +x /etc/init.d/deluge-daemon
than : update-rc.d -f deluge-daemon defaults

that's bassically it,

when i run

deluge --ui web

I get

BP6:/etc/init.d# deluge --ui web
/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Usage: deluge [options] [torrents to add]

deluge: error: no such option: --ui


So I get stuck any help ?


the idea is to get a bittorent client running so that ultimately I can use a different computer find bittorent files with that computer and transfer them to my server that will download this....... any one got it set up this way ?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: problems getting deluge running (newbie)

Post by johnnyg »

it's

Code: Select all

deluge -u web
and yes many people have this setup, it's referred to as a thin client and there's a userguide on it: http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient
jp73
New User
New User
Posts: 9
Joined: Wed May 06, 2009 6:54 pm

Re: problems getting deluge running (newbie)

Post by jp73 »

this gets me
both as normal user and as root


jeroen@BP6:/root$ deluge -u web
/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
Usage: deluge [options] [torrents to add]

deluge: error: no such option: -u
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: problems getting deluge running (newbie)

Post by johnnyg »

don't ever run deluge as root.
I must have skipped over the part where you said you installed it from apt-get; that version doesn't support running on headless servers.
You need to get the latest version (1.1.7) if you want to do that.
jp73
New User
New User
Posts: 9
Joined: Wed May 06, 2009 6:54 pm

Re: problems getting deluge running (newbie)

Post by jp73 »

is there any way I can get this latest version using apt ?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: problems getting deluge running (newbie)

Post by johnnyg »

there's 1.1.6 in sid: http://packages.debian.org/sid/deluge
for lenny, you would have to either compile it yourself or find a .deb somewhere.
jp73
New User
New User
Posts: 9
Joined: Wed May 06, 2009 6:54 pm

Re: problems getting deluge running (newbie)

Post by jp73 »

I have removed the old version and installed the one from the link I got.

If I run it now as normal user I get the following message

jeroen@BP6:/root$ deluge -u web
[ERROR ] 16:30:30 ui:84 No module named webui.webui
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/deluge/ui/ui.py", line 69, in __init__
from deluge.ui.webui.webui import WebUI
ImportError: No module named webui.webui
[ERROR ] 16:30:30 ui:85 There was an error whilst launching the request UI: web
[ERROR ] 16:30:30 ui:86 Look at the traceback above for more information.

any idea ?
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: problems getting deluge running (newbie)

Post by andar »

jp73 wrote:I have removed the old version and installed the one from the link I got.

If I run it now as normal user I get the following message

jeroen@BP6:/root$ deluge -u web
[ERROR ] 16:30:30 ui:84 No module named webui.webui
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.5/deluge/ui/ui.py", line 69, in __init__
from deluge.ui.webui.webui import WebUI
ImportError: No module named webui.webui
[ERROR ] 16:30:30 ui:85 There was an error whilst launching the request UI: web
[ERROR ] 16:30:30 ui:86 Look at the traceback above for more information.

any idea ?
Yea, install the web ui.
jp73
New User
New User
Posts: 9
Joined: Wed May 06, 2009 6:54 pm

Re: problems getting deluge running (newbie)

Post by jp73 »

Can't find anything in the faq how to do this, I installed 1.1.6 from http://packages.debian.org/sid/deluge

I was under the impression that this contains everything ?
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: problems getting deluge running (newbie)

Post by andar »

jp73 wrote:Can't find anything in the faq how to do this, I installed 1.1.6 from http://packages.debian.org/sid/deluge

I was under the impression that this contains everything ?
I'm surprised you didn't see this there..
http://packages.debian.org/search?keywords=deluge-webui
Post Reply