Deluge not connecting to any peers

So here is the relevant config bit:

and here is the config repo: GitHub - Thiago-Assis-T/.nixos (look at ThiagoServer configuration)

    deluge = {
      enable = true;
      group = "multimedia";
      dataDir = "/media/deluge/";
      web = {
        enable = true;
        openFirewall = true;
      };
      declarative = true;
     
      openFirewall = true;
      config = {
        enabled_plugins = [ "Label" ];
      };
      authFile = pkgs.writeTextFile {
        name = "deluge-auth";
        text = ''
          localclient:deluge:10
        '';
      };
    };

here is the story:
Trying to make a media server, jellyfin, radarr, prowlar, the whole bunch… However deluge doesn’t seem to connect to any peers or get an external ip (look at bottom right)

i’ve ruled out:
isp problems (using vpn (proton p2p) in the whole system with wireguard)
router problems (other devices in the same network deluge worked fine)
tailscale problems (other devices on my tailscale network also worked fine)
folder permission issues (the iso wouldn’t be added if there was a permission issue)
also ruled out vpn problems, connected other devices to the same vpn server and disconected the deluge server from any vpn, to no avail.

the only output from deluge.service is:

May 26 15:29:02 ThiagoServer systemd[1]: Started Deluge BitTorrent Daemon.

and delugeweb.service:

May 26 15:29:02 ThiagoServer systemd[1]: Started Deluge BitTorrent WebUI.

I couldn’t think of any other ways to troubleshoot or seek any other logs, hence this post.

edit: also tried to put the default values in the config from: preferencesmanager.py « core « deluge - deluge - Deluge BitTorrent Client as it was linked in the search.nixos.org options search for deluge config

I’m totally unaware of what is going on…
here:

May 26 18:18:39 ThiagoServer deluged[55663]: 18:18:39 [ERROR   ][deluge.component              :1622] [Failure instance: Traceback: <class 'TypeError'>: '<' not supported between instances of 'str' and 'int'
May 26 18:18:39 ThiagoServer deluged[55663]: /nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/base.py:705:mainLoop
May 26 18:18:39 ThiagoServer deluged[55663]: /nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/base.py:1090:runUntilCurrent
May 26 18:18:39 ThiagoServer deluged[55663]: /nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/defer.py:877:callback
May 26 18:18:39 ThiagoServer deluged[55663]: /nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/defer.py:984:_startRunCallbacks
May 26 18:18:39 ThiagoServer deluged[55663]: --- <exception caught here> ---
May 26 18:18:39 ThiagoServer deluged[55663]: /nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/defer.py:1078:_runCallbacks
May 26 18:18:39 ThiagoServer deluged[55663]: /nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/task.py:872:cb
May 26 18:18:39 ThiagoServer deluged[55663]: /nix/store/dzpr8zq3387ixwh17p78p1v5mvcgay1d-python3.11-deluge-gtk-2.1.1/lib/python3.11/site-packages/deluge/core/preferencesmanager.py:158:start
May 26 18:18:39 ThiagoServer deluged[55663]: /nix/store/dzpr8zq3387ixwh17p78p1v5mvcgay1d-python3.11-deluge-gtk-2.1.1/lib/python3.11/site-packages/deluge/core/preferencesmanager.py:172:do_config_set_func
May 26 18:18:39 ThiagoServer deluged[55663]: /nix/store/dzpr8zq3387ixwh17p78p1v5mvcgay1d-python3.11-deluge-gtk-2.1.1/lib/python3.11/site-packages/deluge/core/preferencesmanager.py:326:_on_set_max_upload_speed
May 26 18:18:39 ThiagoServer deluged[55663]: ]
May 26 18:18:39 ThiagoServer deluged[55663]: Unhandled error in Deferred:
May 26 18:18:39 ThiagoServer deluged[55663]: Traceback (most recent call last):
May 26 18:18:39 ThiagoServer deluged[55663]:   File "/nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/base.py", line 705, in mainLoop
May 26 18:18:39 ThiagoServer deluged[55663]:     self.runUntilCurrent()
May 26 18:18:39 ThiagoServer deluged[55663]:   File "/nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/base.py", line 1090, in runUntilCurrent
May 26 18:18:39 ThiagoServer deluged[55663]:     call.func(*call.args, **call.kw)
May 26 18:18:39 ThiagoServer deluged[55663]:   File "/nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/defer.py", line 877, in callback
May 26 18:18:39 ThiagoServer deluged[55663]:     self._startRunCallbacks(result)
May 26 18:18:39 ThiagoServer deluged[55663]:   File "/nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/defer.py", line 984, in _startRunCallbacks
May 26 18:18:39 ThiagoServer deluged[55663]:     self._runCallbacks()
May 26 18:18:39 ThiagoServer deluged[55663]: --- <exception caught here> ---
May 26 18:18:39 ThiagoServer deluged[55663]:   File "/nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/defer.py", line 1078, in _runCallbacks
May 26 18:18:39 ThiagoServer deluged[55663]:     current.result = callback(  # type: ignore[misc]
May 26 18:18:39 ThiagoServer deluged[55663]:   File "/nix/store/l5vc33qx6b41kqavwdgc3yk0rxjavb9b-python3.11-twisted-24.3.0/lib/python3.11/site-packages/twisted/internet/task.py", line 872, in cb
May 26 18:18:39 ThiagoServer deluged[55663]:     return callable(*args, **kw)
May 26 18:18:39 ThiagoServer deluged[55663]:   File "/nix/store/dzpr8zq3387ixwh17p78p1v5mvcgay1d-python3.11-deluge-gtk-2.1.1/lib/python3.11/site-packages/deluge/core/preferencesmanager.py", line 158, in start
May 26 18:18:39 ThiagoServer deluged[55663]:     self.do_config_set_func(key, self.config[key])
May 26 18:18:39 ThiagoServer deluged[55663]:   File "/nix/store/dzpr8zq3387ixwh17p78p1v5mvcgay1d-python3.11-deluge-gtk-2.1.1/lib/python3.11/site-packages/deluge/core/preferencesmanager.py", line 172, in do_config_set_func
May 26 18:18:39 ThiagoServer deluged[55663]:     on_set_func(key, value)
May 26 18:18:39 ThiagoServer deluged[55663]:   File "/nix/store/dzpr8zq3387ixwh17p78p1v5mvcgay1d-python3.11-deluge-gtk-2.1.1/lib/python3.11/site-packages/deluge/core/preferencesmanager.py", line 326, in _on_set_max_upload_speed
May 26 18:18:39 ThiagoServer deluged[55663]:     value = -1 if value < 0 else int(value * 1024)
May 26 18:18:39 ThiagoServer deluged[55663]: builtins.TypeError: '<' not supported between instances of 'str' and 'int'

the config changed:

deluge = {
      enable = true;
      group = "multimedia";
      web = {
        enable = true;
        openFirewall = true;
      };
      declarative = false;
      dataDir = "/media/deluge";
      openFirewall = true;
    };

nuked the config folder, the nixos config remained as the last update; and now it’s fine…

1 Like