Issues with delge in a headless server

General support for problems installing or using Deluge
Xi0N
Leecher
Leecher
Posts: 56
Joined: Mon Oct 06, 2008 7:23 am

Issues with delge in a headless server

Post by Xi0N »

I have deluge installed in a headless server running debian 5.0 with unstable repos enabled.
I installed deluge 1.1.5 and i start it with a file in /etc/init.d that looks like this:

Code: Select all

#!/bin/sh
# 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="user"    #Please change

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 $DELUGEDAEMON
        echo "$NAME1"
        sleep 2
        echo -n "Starting $DESC2 : "
        start-stop-daemon -c $USER --start --background --quiet --exec $DELUGE -- ${DELUGE_OPTIONS}
        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
It worked until now, but i get nothing when i try to connect with the web ui on the server's ip, port 8112

What can i try to guess whats going on?
Deluge seems to be working properly as a daemon.......

Thanks for your help!
Xi0N
Leecher
Leecher
Posts: 56
Joined: Mon Oct 06, 2008 7:23 am

Re: Issues with delge in a headless server

Post by Xi0N »

Im still trying and it is not working... :(
Am i probably missing any dependencie?
If i run htop, i can see /usr/bin/python /usr/bin/deluged

I deleted al the configuration files under .config/deuge and i tryed to run directy from console "deluged" and the result is exactly the same..... i cannot reach the web ui...
Please.... help!! :cry:
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Issues with delge in a headless server

Post by johnnyg »

you need to change

Code: Select all

USER="user"
to your username
Xi0N
Leecher
Leecher
Posts: 56
Joined: Mon Oct 06, 2008 7:23 am

Re: Issues with delge in a headless server

Post by Xi0N »

johnnyg wrote:you need to change

Code: Select all

USER="user"
to your username
I know.
I did so...... i just put "user" here just as an example.

Thanks.....
I still have the same issues.... am i th only one?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Issues with delge in a headless server

Post by johnnyg »

have you tried running

Code: Select all

deluge -u web
manually and seeing if that works?
Xi0N
Leecher
Leecher
Posts: 56
Joined: Mon Oct 06, 2008 7:23 am

Re: Issues with delge in a headless server

Post by Xi0N »

Code: Select all

bigboss@OuterHeaven:~$ deluge -u web
[ERROR   ] 13:41:47 ui:72 No module named webui.webui
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/deluge/ui/ui.py", line 57, in __init__
    from deluge.ui.webui.webui import WebUI
ImportError: No module named webui.webui
[ERROR   ] 13:41:47 ui:73 There was an error whilst launching the request UI: web
[ERROR   ] 13:41:47 ui:74 Look at the traceback above for more information.
bigboss@OuterHeaven:~$ 
:(
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Issues with delge in a headless server

Post by johnnyg »

did you install deluge-webui?
Xi0N
Leecher
Leecher
Posts: 56
Joined: Mon Oct 06, 2008 7:23 am

[SOLVED] Re: Issues with delge in a headless server

Post by Xi0N »

johnnyg wrote:did you install deluge-webui?
:oops:

I did not use deluge since some time ago.... i did not know have to instal the web ui separately

Thanks!!!!
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: [SOLVED] Re: Issues with delge in a headless server

Post by johnnyg »

Xi0N wrote:
johnnyg wrote:did you install deluge-webui?
:oops:

I did not use deluge since some time ago.... i did not know have to instal the web ui separately

Thanks!!!!
no worries, the decision to package them separately was only a very recent one.
Xi0N
Leecher
Leecher
Posts: 56
Joined: Mon Oct 06, 2008 7:23 am

Re: Issues with delge in a headless server

Post by Xi0N »

I noticed deluge does not move the completed downloads to the folder i chose....
I want to view this configurations from another machine.. so i try to connect to the daemon on port 58846 but i cannot connect to it....
Which is the username and password for connectiong? I guess, the password could be the one i use for logging into the web interface, but i am a bit cnfused about which could be the username....
Post Reply