Remote deluge daemon connection
Solution 1
It turns out the fact that it was running as a user called "deluge" is significant. The guide had me set deluge's home directory to /var/lib/deluge, where there was a second configuration directory - the one which was actually read by the daemon. When I used the password for localclient from that auth, instead of the previous <a long string>
, I was able to use deluge-console as expected. I was able to complete the guide and give myself remote access by modifying that auth file and ignoring the one in my home directory.
Solution 2
I would leave a comment to Adam's answer, but I don't have the reputation to do that. Adam's answer worked for me, but I thought it would be helpful to be a little more explicit about the steps necessary to fix this problem.
- Open /var/lib/deluge/.config/deluge/auth in a text editor.
- Copy the password found there.
- Open ~/.config/deluge/auth in a text editor.
- Paste the password from the other auth file here.
Worked for me -- now I can use the GTK UI and the console client.
Related videos on Youtube
Adam R. Grey
I believe that the stack exchange network is, or at least can and should be, the one glorious place in all the universe where The Rule is "Answer. The. Question." But you should also try and set people on the right path, too.
Updated on September 18, 2022Comments
-
Adam R. Grey almost 2 years
I'm trying to follow this guide to run a deluge daemon on a headless server. The client part seems to be working, but the server part doesn't seem to work at all.
Deluge-console is supposed to allow you to send commands to the daemon in a text-only environment. However I can't get it to connect to itself. Whenever I start it, it says
Failed to connect to 127.0.0.1:58846 with reason: Password does not match
. If I try a command likedeluge-console "config -s allow_remote True"
, I get an error dump like this:[ERROR ] 03:21:31 client:391 RPCError Message Received! -------------------------------------------------------------------------------- RPCRequest: daemon.login(localclient, <a long string>) -------------------------------------------------------------------------------- File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 259, in dispatch ret = component.get("AuthManager").authorize(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/deluge/core/authmanager.py", line 93, in authorize raise BadLoginError("Password does not match") BadLoginError: Password does not match -------------------------------------------------------------------------------- Failed to connect to 127.0.0.1:58846 with reason: Password does not match
~/.config/deluge/auth looks like this:
localclient:<a long string>:10
where appears identically in both files. So I'm pretty sure it's not that the auth file is wrong. I notice that when I start the deluge daemon, htop tells me the processes associated with deluged belong to my deluge user. this guide has you create the user "deluge" for running deluge. Should I run deluge as myself, instead?
Ultimately, what am I missing?
-
Dylan Pierce over 9 yearsI don't know why someone downvoted you. Your answer is totally correct, especially if you used a guide to make a
deluged
user. If you did, double check the deluge user's home directory and the correct/.config/deluge/auth
file is loaded from there. Thank you!!! Saved me from a huge headache. -
endolith over 8 yearsso I guess in the past I was running it as my user and now it's running as deluge user, so I should migrate the config files to that account? or should I modify the instructions to run as my user instead?
-
o0omycomputero0o over 8 yearsMove ~/.config/deluge/auth to /var/lib/deluge/auth if you use /var/lib/deluge as home folder.
-
degenerate about 8 yearsTook me over an hour to find this answer, but this is why none of the changes to my auth file were working. It wasn't looking in the right place. You can find the file easily by running
find / -name "auth"