Page 1 of 1

DHT resetting to zero: "Deprecated session status key dht_nodes, please use dht.dht_nodes"

Posted: Thu Apr 30, 2020 4:03 pm
by mentor
Hello all,

I'm running:

Code: Select all

deluge 2.0.3-2-201906121747-ubuntu18.04.1
libtorrent: 1.1.5.0
Python: 3.6.9
OS: Linux 4.15.0-96-generic


It happens to me quite often that the DHT Nodes get reset to 0 and refuse to connect to any new ones. In the Deluge logs I find the following error every 3 seconds:

Code: Select all

18:02:25 [DEBUG   ][deluge.core.core              :651 ] Deprecated session status key dht_nodes, please use dht.dht_nodes
18:02:28 [DEBUG   ][deluge.core.core              :651 ] Deprecated session status key dht_nodes, please use dht.dht_nodes
18:02:31 [DEBUG   ][deluge.core.core              :651 ] Deprecated session status key dht_nodes, please use dht.dht_nodes
18:02:34 [DEBUG   ][deluge.core.core              :651 ] Deprecated session status key dht_nodes, please use dht.dht_nodes
18:02:37 [DEBUG   ][deluge.core.core              :651 ] Deprecated session status key dht_nodes, please use dht.dht_nodes
18:02:40 [DEBUG   ][deluge.core.core              :651 ] Deprecated session status key dht_nodes, please use dht.dht_nodes


Is this a known issue?

Re: DHT resetting to zero: "Deprecated session status key dht_nodes, please use dht.dht_nodes"

Posted: Mon May 04, 2020 6:33 pm
by fmar
Hi mentor

If I activate the debug log I do get a couple of those messages:

Code: Select all

20:16:22 [DEBUG   ][deluge.core.core                  :651 ] Deprecated session status key num_peers, please use peer.num_peers_connected
20:16:22 [DEBUG   ][deluge.core.core                  :651 ] Deprecated session status key dht_nodes, please use dht.dht_nodes
20:16:22 [DEBUG   ][deluge.core.core                  :651 ] Deprecated session status key has_incoming_connections, please use net.has_incoming_connections
20:16:22 [DEBUG   ][deluge.core.core                  :651 ] Deprecated session status key num_peers, please use peer.num_peers_connected
20:16:22 [DEBUG   ][deluge.core.core                  :651 ] Deprecated session status key dht_nodes, please use dht.dht_nodes
20:16:22 [DEBUG   ][deluge.core.core                  :651 ] Deprecated session status key has_incoming_connections, please use net.has_incoming_connections

Not sure if they are very important or related to the behaviour you are seeing. It's basically just an information about some deprecated variables.
The messages are mentioned in this bug report. Maybe you could add some comments there or create a new bug report?

I'm using

Code: Select all

2.0.3-2-201906121747-ubuntu19.04.1
libtorrent 1.1.11
Python 3.7.3
Debian 10
linux 4.19.0-8-amd64