Status is just loading

General support for problems installing or using Deluge
Varming
New User
New User
Posts: 9
Joined: Fri May 12, 2017 10:35 pm

Status is just loading

Post by Varming »

I just installed a brand new server and Deluge is having a little problem: In the bottom status field it just says "Loading..." no matter if a torrent is "running" or not. It never shows the status field.

deluged: 1.3.15
libtorrent: 1.0.11.0

In the log I see this:

Code: Select all

[ERROR   ] 17:02:47 component:118 [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: Invalid argument
/usr/lib/python2.7/dist-packages/deluge/main.py:241:start_daemon
/usr/lib/python2.7/dist-packages/deluge/core/daemon.py:170:__init__
/usr/lib/python2.7/dist-packages/deluge/component.py:296:start
/usr/lib/python2.7/dist-packages/deluge/component.py:124:_component_start
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:150:maybeDeferred
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:171:start
/usr/lib/python2.7/dist-packages/deluge/config.py:314:register_set_function
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:267:_on_set_listen_interface
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:285:_on_set_random_port
]
[ERROR   ] 17:02:47 component:118 [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: Invalid argument
/usr/lib/python2.7/dist-packages/deluge/main.py:241:start_daemon
/usr/lib/python2.7/dist-packages/deluge/core/daemon.py:178:__init__
/usr/lib/python2.7/dist-packages/deluge/component.py:296:start
/usr/lib/python2.7/dist-packages/deluge/component.py:124:_component_start
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:150:maybeDeferred
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:171:start
/usr/lib/python2.7/dist-packages/deluge/config.py:314:register_set_function
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:267:_on_set_listen_interface
/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py:285:_on_set_random_port
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Status is just loading

Post by Cas »

Can you supply your core.conf
Varming
New User
New User
Posts: 9
Joined: Fri May 12, 2017 10:35 pm

Re: Status is just loading

Post by Varming »

Code: Select all

{
  "file": 1,
  "format": 1
}{
  "info_sent": 0.0,
  "lsd": true,
  "send_info": false,
  "move_completed_path": "/mnt/data/media/",
  "enc_in_policy": 1,
  "queue_new_to_top": true,
  "ignore_limits_on_local_network": true,
  "rate_limit_ip_overhead": true,
  "daemon_port": 58846,
  "natpmp": true,
  "max_active_limit": 20,
  "utpex": true,
  "max_active_downloading": 10,
  "max_active_seeding": 15,
  "allow_remote": true,
  "max_half_open_connections": 50,
  "download_location": "/home/ages/downloads/",
  "compact_allocation": false,
  "max_upload_speed": -1.0,
  "cache_expiry": 60,
  "prioritize_first_last_pieces": false,
  "auto_managed": true,
  "enc_level": 1,
  "max_connections_per_second": 20,
  "dont_count_slow_torrents": false,
  "random_outgoing_ports": true,
  "max_upload_slots_per_torrent": -1,
  "new_release_check": true,
  "enc_out_policy": 1,
  "outgoing_ports": [
    0,
    0
  ],
  "seed_time_limit": 240,
  "cache_size": 512,
  "share_ratio_limit": 1.5,
  "max_download_speed": -1.0,
  "geoip_db_location": "/usr/share/GeoIP/GeoIP.dat",
  "torrentfiles_location": "/home/vpn/Downloads",
  "stop_seed_at_ratio": true,
  "peer_tos": "0x00",
  "listen_interface": "eno1",
  "upnp": true,
  "max_download_speed_per_torrent": -1,
  "max_upload_slots_global": 4,
  "enabled_plugins": [
    "AutoRemovePlus",
    "ltConfig",
    "Label"
  ],
  "random_port": true,
  "autoadd_enable": false,
  "max_connections_global": 200,
  "enc_prefer_rc4": true,
  "listen_ports": [
    6881,
    6891
  ],
  "dht": true,
  "stop_seed_ratio": 1.5,
  "seed_time_ratio_limit": 7.0,
  "max_upload_speed_per_torrent": -1,
  "copy_torrent_file": false,
  "del_copy_torrent_file": false,
  "move_completed": true,
  "proxies": {
    "peer": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    },
    "web_seed": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    },
    "tracker": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    },
    "dht": {
      "username": "",
      "password": "",
      "type": 0,
      "hostname": "",
      "port": 8080
    }
  },
  "add_paused": false,
  "max_connections_per_torrent": -1,
  "remove_seed_at_ratio": false,
  "autoadd_location": "/home/vpn/Downloads",
  "plugins_location": "/home/vpn/.config/deluge/plugins"
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Status is just loading

Post by Cas »

If you uncheck random port for incoming that should fix it. I'll look into it further later
Varming
New User
New User
Posts: 9
Joined: Fri May 12, 2017 10:35 pm

Re: Status is just loading

Post by Varming »

I just tested it and unchecking random ports doesnt fix it - tried both incoming and outgoing (one at a time) to be sure.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Status is just loading

Post by Cas »

Ok it's nothing to do with random ports. You have not put a valid ip address for listen interface
Varming
New User
New User
Posts: 9
Joined: Fri May 12, 2017 10:35 pm

Re: Status is just loading

Post by Varming »

Under Network >> Network Interface or ?

If that's the place I've tried with the 3 different IPs I have:
1) Inside IP (192.168.1.x)
2) Own outside IP
3) VPN outside IP

None of them fixed the problem.

Just as a note: I also got a reverse proxy running on the server.
Varming
New User
New User
Posts: 9
Joined: Fri May 12, 2017 10:35 pm

Re: Status is just loading

Post by Varming »

Actually you were right - but it didn't fix the problem (sorry to say)

When getting the status for the service I saw this:

Code: Select all

● deluged.service - Deluge Bittorrent Client Daemon
   Loaded: loaded (/etc/systemd/system/deluged.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2017-05-18 21:25:06 CEST; 9min ago
 Main PID: 16265 (deluged)
   CGroup: /system.slice/deluged.service
           └─16265 /usr/bin/python /usr/bin/deluged -d -l /var/log/deluge/daemon.log -L warning

May 18 21:25:06 server deluged[16265]:   File "/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py", line 171, in start
May 18 21:25:06 server deluged[16265]:     self._on_set_listen_interface)
May 18 21:25:06 server deluged[16265]:   File "/usr/lib/python2.7/dist-packages/deluge/config.py", line 314, in register_set_function
May 18 21:25:06 server deluged[16265]:     function(key, self.__config[key])
May 18 21:25:06 server deluged[16265]:   File "/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py", line 267, in _on_set_listen_interface
May 18 21:25:06 server deluged[16265]:     self._on_set_random_port("random_port", self.config["random_port"])
May 18 21:25:06 server deluged[16265]:   File "/usr/lib/python2.7/dist-packages/deluge/core/preferencesmanager.py", line 285, in _on_set_random_port
May 18 21:25:06 server deluged[16265]:     self.session.listen_on(listen_ports[0], listen_ports[1], str(self.config["listen_interface"]).strip())
May 18 21:25:06 server deluged[16265]: exceptions.RuntimeError: Cannot assign requested address
May 18 21:32:25 server systemd[1]: Started Deluge Bittorrent Client Daemon.
As a last resort I then tried my inside IP instead and now the status looks perfect:

Code: Select all

● deluged.service - Deluge Bittorrent Client Daemon
   Loaded: loaded (/etc/systemd/system/deluged.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2017-05-18 21:39:17 CEST; 1min 6s ago
 Main PID: 19008 (deluged)
    Tasks: 4
   Memory: 55.4M
      CPU: 964ms
   CGroup: /system.slice/deluged.service
           └─19008 /usr/bin/python /usr/bin/deluged -d -l /var/log/deluge/daemon.log -L warning

May 18 21:39:17 server systemd[1]: Started Deluge Bittorrent Client Daemon.

BUT I still don't get the status...
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Status is just loading

Post by Cas »

It should be the ip address of the machine interface, unless you have multiple interfaces you can leave it empty
Varming
New User
New User
Posts: 9
Joined: Fri May 12, 2017 10:35 pm

Re: Status is just loading

Post by Varming »

Tried deleting the value in the field (it's empty) but that didn't make a difference either.. sigh..

What is strange is that I have a different server with the same configuration and there is no problems there. Very strange.

I've also tried to purge deluged, deluge-web and deluge-common and install the deluge packages again but with the same result.
Post Reply