Page 1 of 2

Deluge doesn't connect to daemon

Posted: Sat Dec 12, 2009 9:47 am
by v1pEr
I am running deluge 1.1.9 on a headless gentoo and I want to use the windows client to connect to it (what a magnificent feature by the way!).

So I downloaded the latest deluge (1.2.0-rc4) but when I try to connect to my box it doesn't give me the green dot? I cannot connect to it although I think everything is correct.

On my gentoo box:

Code: Select all

RoSe v1per # netstat -tap | grep 58846
tcp        0      0 *:58846                 *:*                     LISTEN     4702/python2.6

RoSe v1per # confcat /etc/conf.d/deluged
DELUGED_USER="deluge"
DELUGEUI_START="true"
DELUGEUI_OPTS="-u web"

RoSe v1per # confcat /home/v1per/.config/deluge/auth
localclient:a5e9ae2f8af7508e6797242e60e4786933642c8a
deluge:deluge
RoSe v1per # confcat /home/deluge/.config/deluge/auth
localclient:a5e9ae2f8af7508e6797242e60e4786933642c8a
deluge:deluge
On the webclient I can login with user:deluge pass:deluge

From the windows box I can telnet to my server and when I enter some gibberish I get this return (which to me, means it's working ok)

Code: Select all

<head>
      <title>Error response</title>
                                   </head>
                                          <body>
                                                <h1>Error response</h1>
                                                                       <p>Error
code 400.
         <p>Message: Bad request syntax ('dafadf').
                                                   <p>Error code explanation: 40
0 = Bad request syntax or unsupported method.
                                             </body>


Connection to host lost.
I'm running windows 7 64bit. Am I doing something wrong or should I file a bug report? (don't want to blame the programmers for something stupid I did myself)

Re: Deluge doesn't connect to daemon

Posted: Sat Dec 12, 2009 7:12 pm
by gazpachoking
1.1 series and 1.2 use a different remote api, you cannot connect to a 1.1.9 daemon from a 1.2 client.

Re: Deluge doesn't connect to daemon

Posted: Mon Jan 18, 2010 12:46 pm
by jackobean
I'm having a similar problem. I had it working breifly, but now i can't seem to connect from a client in my lan (web-ui is fine). I've tried a fresh install still to no avail. I'm running karmic with deluge from ppa, and I've followed the thinclient/initscript wikis. deluged seems to be listening, since i get the following when i do a netstat on the server.

tcp 0 0 127.0.0.1:58846 0.0.0.0:* LISTEN 1273/python

Any ideas?

Edit: btw the init script doesn't work (on boot) but does if i start it manually.

Re: Deluge doesn't connect to daemon

Posted: Mon Jan 18, 2010 4:55 pm
by damoxc
What versions of Deluge are you using, both for the server and the client??

Re: Deluge doesn't connect to daemon

Posted: Mon Jan 18, 2010 10:38 pm
by jackobean
Sorry, forgot to add that. The client is identical to the server, i.e karmic with deluge 1.2.0~rc5-2 from the ppa.

Re: Deluge doesn't connect to daemon

Posted: Tue Jan 19, 2010 10:14 am
by jackobean
Ok, i've made a bit of headway.
I think it has something to do with the auth file.
when i boot up, deuged starts (contrary to the edit in my previous post). If i open the auth file, it contains a line that looks like this:

localclient:cac1b6f422020709a390c26e27090595cce3686f:10

and i cannot connect from the client.

If i delete this line, and leave only the line with my username and password then restart deluged:

Code: Select all

sudo killall deluged
deluged
I am able to connect from the client. woo hoo!
however, when i reboot the line re-appears and i cannot connect any more.

can someone make sense of this? Until then i won't reboot ;)

Re: Deluge doesn't connect to daemon

Posted: Tue Jan 19, 2010 10:37 am
by damoxc
I imagine your auth file is incorrect, it should be username:password:authlevel, the authlevel is something new that was introduced.

Re: Deluge doesn't connect to daemon

Posted: Tue Jan 19, 2010 11:31 am
by jackobean
Ok thanks damo :)
Can anyone offer insight into said authlevels? Google was not fruitful.
I'll add a ":10" to my user:pass (once deluge has finished doing a HUGE re-hash of my torrents) and see if that fixes it...

Re: Deluge doesn't connect to daemon

Posted: Tue Jan 19, 2010 11:38 am
by damoxc
They don't do a whole lot as yet, but they are:

Code: Select all

AUTH_LEVEL_NONE      = 0
AUTH_LEVEL_READONLY  = 1
AUTH_LEVEL_NORMAL    = 5
AUTH_LEVEL_ADMIN     = 10
Hope that helps!

Re: Deluge doesn't connect to daemon

Posted: Tue Jan 19, 2010 12:17 pm
by johnnyg
I've updated the authentication guide to contain the auth levels.