My deluge-console is suddenly giving me this error

Failed to connect to 127.0.0.1:58846 with reason: Connection refused 

why is this error.I have done nothing and the GUI deluge runs fine.Its the problem in console only? Why localhost is refusing connection and how do I connect to daemon? I have tried the command

connect 127.0.0.1 58846

but it doesnt seems to work.


The most probable reason is that you are not running the daemon. To start the daemon use deluged

Then try deluge-console


The most common reason is because you are running deluged as a different user to the one you are running deluge-console with.

From the Deluge wiki:

If you are running deluged under another user you will need to temporarily login as that user to enable deluge-console to access that daemon's config:

su --shell /bin/bash --login deluge