Cannot connect to daemon although deluge is up

General support for problems installing or using Deluge
Post Reply
tugurlann
Member
Member
Posts: 27
Joined: Sun Dec 14, 2014 1:01 am

Cannot connect to daemon although deluge is up

Post by tugurlann »

I have a set up made using the guides on this site, with deluged running on a ubuntu machine and accepting remote connections via the web-ui on port 8112. So deluged runs under its own user on the machine, allows remote connections etc. Even used by radarr and sonarr

I have changed nothing, used to work as intended until yesterday

However, after a number of reboots of the server in one day, where the shutdown process would always hang at "stopping deluge client", I find myself not being able to connect to the daemon, either locally or remotely.

Starting

Code: Select all

deluge-console
under root shows the welcome screen but the previous connection now appears as:

Code: Select all

'Q'=Quit, 'a'=Add Host, 'D'=Delete Host                                                                                                                    │
                                                                               │                                                                                                                                                            │
                                                                               │  127.0.0.1:58846 [Offline]
Connecting via web-ui with 8112 shows the web ui menus but otherwise empty and no daemon connection (I can't see any of the daemnon settings, the fields are empty).

In the connection dialogue, the previous entry seems to have an undefined state (neither online nor offline). If I select it, the "Start Daemon" options becomes active. If I click it, I get an "An error has occured message and nothing happens"

Entry is

Code: Select all

localclient@127.0.0.1:58856
I've tried adding a new connection using one of the other users in auth, but the daemon isn't there.



Running deluge 2.1.1. Please note in the text captures below I've messed around with the passwords and hashes.

Code: Select all

deluged --version
deluged 2.1.1
libtorrent: 1.2.17.0
Python: 3.8.10
OS: Linux Ubuntu 20.04 focal

Code: Select all

 systemctl status deluged
● deluged.service - Deluge Bittorrent Client Daemon
     Loaded: loaded (/etc/systemd/system/deluged.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/deluged.service.d
             └─user.conf
     Active: active (running) since Sun 2022-10-30 03:13:20 EET; 55min ago
       Docs: man:deluged
   Main PID: 3006 (deluged)
      Tasks: 5 (limit: 38211)
     Memory: 275.2M
     CGroup: /system.slice/deluged.service
             └─3006 /usr/bin/python3 /usr/bin/deluged -d -l /var/log/deluge/daemon.log -L info

Oct 30 03:13:20 hal9002 systemd[1]: Started Deluge Bittorrent Client Daemon.

Code: Select all

/var/lib/deluge/.config/deluge/core.conf

"allow_remote": true,

Code: Select all

deluge-web
is set up as follows

Code: Select all

{
    "file": 2,
    "format": 1
}{
    "base": "/",
    "cert": "ssl/daemon.cert",
    "default_daemon": "",
    "enabled_plugins": [],
    "first_login": false,
    "https": false,
    "interface": "0.0.0.0",
    "language": "",
    "pkey": "ssl/daemon.pkey",
    "port": 8112,
    "pwd_salt": "474d51376e3920e26wfef27132d0795d86f19fcb0",
    "pwd_sha1": "dd86e225288cccsdfsfbc04ce9e27c6a8193b763",
    "session_timeout": 3600,
    "sessions": {
        "008d0d87c67e0b3e28c120d0a265695c2fe241461ae706db8c9sdfsdf6fdc": {
            "expires": 1645591401.0,
            "level": 10,
            "login": "admin"
        },
        "01372fabf96374111bd16sdff90efc59f0d0f33a6986b7222189f6622a2": {
            "expires": 1667071138.0,
            "level": 10,
            "login": "admin"
I have a number of entries in

Code: Select all

auth
, looking like

Code: Select all

localclient:bf06e14dsdfee33dde4f73b417334caa15:10
username1:topasdedarents:10
usernam2:dd86esdfsf5dffabc04ce9e27c6a8193b763:10
username3:bf06e14d2b2fdd598ee33dsdfsdf334caa15:10
username4:torsdfts:10
I have enable info log level,

Code: Select all

daemon.log
looks like this

Code: Select all

03:13:21 [INFO    ][deluge.core.daemon            :91  ] Deluge daemon 2.1.1
03:13:21 [INFO    ][deluge.core.core              :334 ] Successfully loaded session.state: /var/lib/deluge/.config/deluge/session.state
03:13:21 [INFO    ][deluge.core.core              :334 ] Successfully loaded session.state: /var/lib/deluge/.config/deluge/session.state.bak
03:13:21 [INFO    ][deluge.core.alertmanager      :138 ] Alert Queue Size set to 10000
03:13:21 [INFO    ][deluge.core.rpcserver         :410 ] Starting DelugeRPC server :58846
03:13:21 [INFO    ][deluge.core.daemon            :151 ] Deluge daemon starting...
03:13:21 [INFO    ][deluge_label.core             :75  ] *** Start Label plugin ***
03:13:21 [INFO    ][deluge.pluginmanagerbase      :189 ] Plugin Label enabled...
03:13:21 [INFO    ][deluge.pluginmanagerbase      :189 ] Plugin ltConfig enabled...
03:13:21 [INFO    ][deluge.core.authmanager       :224 ] Opening auth for load: /var/lib/deluge/.config/deluge/auth
03:13:21 [INFO    ][deluge.core.authmanager       :232 ] Successfully loaded auth: /var/lib/deluge/.config/deluge/auth
03:13:21 [WARNING ][deluge.core.torrentmanager    :1167] Bad shutdown detected so archiving state files
03:13:21 [WARNING ][deluge.common                 :190 ] Too many existing archives for state. Deleting oldest archive.
03:13:28 [INFO    ][deluge.core.torrentmanager    :811 ] Loading torrent state: /var/lib/deluge/.config/deluge/state/torrents.state
03:13:28 [INFO    ][deluge.core.torrentmanager    :824 ] Successfully loaded /var/lib/deluge/.config/deluge/state/torrents.state
03:13:28 [INFO    ][deluge.core.torrentmanager    :1071] Opening torrents.fastresume for load: /var/lib/deluge/.config/deluge/state/torrents.fastresume
03:13:28 [INFO    ][deluge.core.torrentmanager    :1082] Successfully loaded torrents.fastresume: /var/lib/deluge/.config/deluge/state/torrents.fastresume
03:13:29 [INFO    ][deluge.core.rpcserver         :179 ] Deluge Client connection made from: 127.0.0.1:43482
03:13:29 [INFO    ][deluge.core.torrentmanager    :673 ] <torrentname> from user "localclient" loaded

03:13:29 [INFO    ][deluge.core.torrentmanager    :887 ] Finished loading 1134 torrents in 0:00:01.481436
03:19:16 [INFO    ][deluge.core.rpcserver         :179 ] Deluge Client connection made from: 127.0.0.1:43562

Code: Select all

web.log
looks like this

Code: Select all

03:42:03 [INFO    ][deluge.ui.ui:68  ] Deluge ui 2.1.1
03:42:03 [INFO    ][deluge.ui.ui:70  ] Starting web ui..
03:42:03 [INFO    ][deluge.i18n.util           :101 ] Setting up translations from /usr/lib/python3/dist-packages/deluge/i18n
03:42:03 [INFO    ][deluge.ui.web.server       :731 ] Starting webui server at PID 988428
03:42:03 [INFO    ][deluge.ui.web.server       :746 ] Serving at http://0.0.0.0:8112/
Post Reply