Deluge doesn't connect to daemon

General support for problems installing or using Deluge
v1pEr
New User
New User
Posts: 6
Joined: Sat Dec 12, 2009 9:08 am

Deluge doesn't connect to daemon

Post 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)
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Re: Deluge doesn't connect to daemon

Post 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.
jackobean
New User
New User
Posts: 9
Joined: Mon Jan 18, 2010 12:38 pm
Location: Melbourne, Australia

Re: Deluge doesn't connect to daemon

Post 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.
damoxc
Top Bloke
Top Bloke
Posts: 117
Joined: Sat Jul 19, 2008 7:26 pm
Location: Hampshire, UK
Contact:

Re: Deluge doesn't connect to daemon

Post by damoxc »

What versions of Deluge are you using, both for the server and the client??
jackobean
New User
New User
Posts: 9
Joined: Mon Jan 18, 2010 12:38 pm
Location: Melbourne, Australia

Re: Deluge doesn't connect to daemon

Post 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.
jackobean
New User
New User
Posts: 9
Joined: Mon Jan 18, 2010 12:38 pm
Location: Melbourne, Australia

Re: Deluge doesn't connect to daemon

Post 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 ;)
damoxc
Top Bloke
Top Bloke
Posts: 117
Joined: Sat Jul 19, 2008 7:26 pm
Location: Hampshire, UK
Contact:

Re: Deluge doesn't connect to daemon

Post by damoxc »

I imagine your auth file is incorrect, it should be username:password:authlevel, the authlevel is something new that was introduced.
jackobean
New User
New User
Posts: 9
Joined: Mon Jan 18, 2010 12:38 pm
Location: Melbourne, Australia

Re: Deluge doesn't connect to daemon

Post 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...
damoxc
Top Bloke
Top Bloke
Posts: 117
Joined: Sat Jul 19, 2008 7:26 pm
Location: Hampshire, UK
Contact:

Re: Deluge doesn't connect to daemon

Post 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!
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Deluge doesn't connect to daemon

Post by johnnyg »

I've updated the authentication guide to contain the auth levels.
Post Reply