rtorrent icon indicating copy to clipboard operation
rtorrent copied to clipboard

Can't bootstrap the DHT local database

Open rbrito opened this issue 9 years ago • 4 comments

Hi.

I am trying to download a torrent given only a magnet link with rtorrent 0.9.4 from Debian's experimental distribution, but I am having a problem telling rtorrent to use the dht_add_node option. In particular, it gives me the message:

rtorrent: Failed to parse command line option: DHT not enabled.

But the problem is that I have DHT enabled (in my config file) or, even if I don't use a config file, I get the same result:

rtorrent -n -o dht=on -o dht_add_node=router.bittorrent.com:6881 magnet:?xt=urn:btih:880F377C617E87B82150CF625C7867F6BC0F92DF
rtorrent: Failed to parse command line option: DHT not enabled.

Changing from -o dht=on -o dht_add_node=router.bittorrent.com:6881 to -o dht=on,dht_add_node=router.bittorrent.com:6881 or using the capital -O doesn't make any difference on my system (the resulting message is the same).

Is this a bug?

Thanks in advance,

Rogério Brito.

rbrito avatar Apr 05 '15 06:04 rbrito

DHT doesn't get enabled until after the resource / cmd line is executed, so you need to use the schedule command.

rakshasa avatar Apr 06 '15 18:04 rakshasa

Could you be a bit more verbose on your response? When is the proper moment to tell rtorrent that it should use a source to bootstrap its DHT cache?

Excuse my ignorance here, but if the option is there and it is not able to be used, then it should not appear to the user?

Thanks for your response, BTW.

rbrito avatar Apr 07 '15 09:04 rbrito

In ~/.rtorrent.rc

schedule = dht, 15, 0, dht_add_node=router.bittorrent.com

You can also paste that same bit into rtorrent with ^X

spiffytech avatar Oct 27 '15 18:10 spiffytech

It seems the correct command is dht.add_node not dht_add_node in my case.

min-xu-ai avatar Jun 25 '22 20:06 min-xu-ai