Page 1 of 1

Powercut now deluge webui wont connect

Posted: Mon Mar 31, 2014 11:10 am
by t1mmy
Hi,

I had a powercut last night and this morning I cannot get webui to connect to daemon. Connection manager reports offline 127.0.0.1:58846 and start daemon button does nothing.

I'm new to linux, but from what I can find digging around:

~/.config/deluge/deluged.log contains lots of lines "Couldn't listen on localhost:58846: [Errno 98] Address already in use." (one for each time I clikc start daemon button)

top shows deluged and deluged-web running, I can stop these with pkill and verify that no deluge processes are running.

Nothing is listening on 58846:

Code: Select all

timmy@ubuntu:~/.config/deluge$ netstat -tulp
(No info could be read for "-p": geteuid()=1000 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:microsoft-ds          *:*                     LISTEN      -
tcp        0      0 *:mysql                 *:*                     LISTEN      -
tcp        0      0 *:netbios-ssn           *:*                     LISTEN      -
tcp        0      0 *:webmin                *:*                     LISTEN      -
tcp        0      0 *:ssh                   *:*                     LISTEN      -
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN      -
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN      -
tcp6       0      0 [::]:http-alt           [::]:*                  LISTEN      -
tcp6       0      0 [::]:http               [::]:*                  LISTEN      -
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      -
udp        0      0 192.168.0.25:netbios-ns *:*                                 -
udp        0      0 ubuntu:netbios-ns       *:*                                 -
udp        0      0 *:netbios-ns            *:*                                 -
udp        0      0 192.168.0.2:netbios-dgm *:*                                 -
udp        0      0 ubuntu:netbios-dgm      *:*                                 -
udp        0      0 *:netbios-dgm           *:*                                 -
udp        0      0 *:10000                 *:*                                 -
Starting sudo /etc/init.d/deluged-web start and running deluge-web from cli gives same result.

Now listening on 58846, so I assume it started ok?

Code: Select all

timmy@ubuntu:~/.config/deluge$ netstat -tulp
(No info could be read for "-p": geteuid()=1000 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:microsoft-ds          *:*                     LISTEN      -
tcp        0      0 localhost:58846         *:*                     LISTEN      -
tcp        0      0 *:57794                 *:*                     LISTEN      -
tcp        0      0 *:mysql                 *:*                     LISTEN      -
tcp        0      0 *:netbios-ssn           *:*                     LISTEN      -
tcp        0      0 *:webmin                *:*                     LISTEN      -
tcp        0      0 *:4433                  *:*                     LISTEN      -
tcp        0      0 *:ssh                   *:*                     LISTEN      -
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN      -
tcp6       0      0 [::]:57794              [::]:*                  LISTEN      -
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN      -
tcp6       0      0 [::]:http-alt           [::]:*                  LISTEN      -
tcp6       0      0 [::]:http               [::]:*                  LISTEN      -
tcp6       0      0 [::]:4434               [::]:*                  LISTEN      -
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      -
udp        0      0 ubuntu:47483            *:*                                 -
udp        0      0 *:57794                 *:*                                 -
udp        0      0 ubuntu:6771             *:*                                 -
udp        0      0 localhost:6771          *:*                                 -
udp        0      0 *:6771                  *:*                                 -
udp        0      0 192.168.0.25:netbios-ns *:*                                 -
udp        0      0 ubuntu:netbios-ns       *:*                                 -
udp        0      0 *:netbios-ns            *:*                                 -
udp        0      0 192.168.0.2:netbios-dgm *:*                                 -
udp        0      0 ubuntu:netbios-dgm      *:*                                 -
udp        0      0 *:netbios-dgm           *:*                                 -
udp        0      0 *:47877                 *:*                                 -
udp        0      0 localhost:57101         *:*                                 -
udp        0      0 *:10000                 *:*                                 -
When starting daemon from webui console reports -

Code: Select all

--------------------------------------------------------------------------------
[ERROR   ] 12:00:33 client:391 RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: daemon.login(localclient, ***HIDDEN***)
--------------------------------------------------------------------------------
  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
--------------------------------------------------------------------------------
Deluge-console also fails with "Failed to connect to 127.0.0.1:58846 with reason: Connection refused"

So now I am at a loss, apart from the powercut, deluge has been running fine everyday for the past 6 months or so and I doubt a powercut can change a password, but could it have corrupted something or left a lock file in place?

What passwords do not match, and how do I regenerate them?

What else can I look at to fix this?

Thanks

Tim

Ubuntu Linux 13.04
Deluge 1.3.6

Re: Powercut now deluge webui wont connect

Posted: Mon Mar 31, 2014 11:31 am
by t1mmy
Additionally :-

Contents of /var/log/deluged/daemon.log

[INFO ] 12:19:04 configmanager:70 Setting config directory to: /var/lib/deluged/config
[INFO ] 12:19:05 daemon:124 Deluge daemon 1.3.6
[INFO ] 12:19:05 configmanager:70 Setting config directory to: /var/lib/deluged/config
[INFO ] 12:19:05 core:80 Starting libtorrent 0.16.7.0 session..
[INFO ] 12:19:06 rpcserver:366 Starting DelugeRPC server localhost:58846
[INFO ] 12:19:06 rpcserver:374 Daemon already running or port not available..
[ERROR ] 12:19:06 rpcserver:375 Couldn't listen on localhost:58846: [Errno 98] Address already in use.


If I were to uninstall deluge and remove all config and log files, then re-install, would I loose existing torrent progress?

Thanks

Tim

Re: Powercut now deluge webui wont connect

Posted: Mon Mar 31, 2014 12:28 pm
by Cas
If you remove the config state files you would lose torrents

Re: Powercut now deluge webui wont connect

Posted: Fri Mar 06, 2015 10:40 pm
by hogar77
Hi t1mmy, were you able to resolve your issue? I just experienced the same problem (powercut during active download) and even after removing and then reinstalling deluge my webui still does not want to connect to the daemon... I have a headless install with webui :/