Discussion:
[libtorrent] Problem with dht_put.cpp
Ray
2017-03-29 16:10:43 UTC
Permalink
Hi,

I'm trying to use the "dht" command from libtorrent/tools/dht_put.cpp
but it don't seems to work.

-First I generate the keys with:
$ ./dht gen-key keys

-Then I try to store the string "test" as a mutable object in the DHT:
$ ./dht mput keys test
bootstrapping
\
bootstrap done.
MPUT public key:
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
DHT put complete (success=0
key=7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
sig=312abe025b5e5c54102671041a2371a3074fa50ba7831d6cfb1dada388ce1faea312e8c269cf2abeeb914e756d208c961969042c70dee40df481a218ab97c30c
salt= seq=1)

-Finally I try to grab what I have just store:
$ ./dht mget
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
load dht state from .dht
bootstrapping
|
bootstrap done.
MGET 7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
auth: <uninitialized>


If I have understood correctly the mget didn't work because the mput
didn't work either, since we can see that "success=0". But I don't know
why. Does someone have an idea ?

Thanks.
Steven Siloti
2017-03-30 02:43:39 UTC
Permalink
We need to see the complete alert log to be able to figure out what is
going on. You can get a log by modifying dht_put.cpp to replace the spinner
printf in wait_for_alert with `std::printf("%s\n",
(*i)->message().c_str());` and pipeing stdout to a file.
Post by Ray
Hi,
I'm trying to use the "dht" command from libtorrent/tools/dht_put.cpp
but it don't seems to work.
$ ./dht gen-key keys
$ ./dht mput keys test
bootstrapping
\
bootstrap done.
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
DHT put complete (success=0
key=7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
sig=312abe025b5e5c54102671041a2371a3074fa50ba7831d6cfb1dada388ce
1faea312e8c269cf2abeeb914e756d208c961969042c70dee40df481a218ab97c30c
salt= seq=1)
$ ./dht mget
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
load dht state from .dht
bootstrapping
|
bootstrap done.
MGET 7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
auth: <uninitialized>
If I have understood correctly the mget didn't work because the mput
didn't work either, since we can see that "success=0". But I don't know
why. Does someone have an idea ?
Thanks.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
--
Steven Siloti <***@gmail.com>
Arvid Norberg
2017-03-30 04:08:11 UTC
Permalink
it looks like you may fail to bootstrap
Post by Steven Siloti
We need to see the complete alert log to be able to figure out what is
going on. You can get a log by modifying dht_put.cpp to replace the spinner
printf in wait_for_alert with `std::printf("%s\n",
(*i)->message().c_str());` and pipeing stdout to a file.
Post by Ray
Hi,
I'm trying to use the "dht" command from libtorrent/tools/dht_put.cpp
but it don't seems to work.
$ ./dht gen-key keys
$ ./dht mput keys test
bootstrapping
\
bootstrap done.
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
DHT put complete (success=0
key=7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
sig=312abe025b5e5c54102671041a2371a3074fa50ba7831d6cfb1dada388ce
1faea312e8c269cf2abeeb914e756d208c961969042c70dee40df481a218ab97c30c
salt= seq=1)
$ ./dht mget
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
load dht state from .dht
bootstrapping
|
bootstrap done.
MGET 7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
auth: <uninitialized>
If I have understood correctly the mget didn't work because the mput
didn't work either, since we can see that "success=0". But I don't know
why. Does someone have an idea ?
Thanks.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
--
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
--
Arvid Norberg
Ray
2017-03-30 13:51:28 UTC
Permalink
Thanks for your answers.
I have attached the log to this email.
Post by Arvid Norberg
it looks like you may fail to bootstrap
Post by Steven Siloti
We need to see the complete alert log to be able to figure out what is
going on. You can get a log by modifying dht_put.cpp to replace the spinner
printf in wait_for_alert with `std::printf("%s\n",
(*i)->message().c_str());` and pipeing stdout to a file.
Post by Ray
Hi,
I'm trying to use the "dht" command from libtorrent/tools/dht_put.cpp
but it don't seems to work.
$ ./dht gen-key keys
$ ./dht mput keys test
bootstrapping
\
bootstrap done.
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
DHT put complete (success=0
key=7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
sig=312abe025b5e5c54102671041a2371a3074fa50ba7831d6cfb1dada388ce
1faea312e8c269cf2abeeb914e756d208c961969042c70dee40df481a218ab97c30c
salt= seq=1)
$ ./dht mget
7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
load dht state from .dht
bootstrapping
|
bootstrap done.
MGET 7d52c3010cfdec8f21a00b3405906ac471fa9713b580208fd91e9b2a47d59762
-
auth: <uninitialized>
If I have understood correctly the mget didn't work because the mput
didn't work either, since we can see that "success=0". But I don't know
why. Does someone have an idea ?
Thanks.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
--
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Steven Siloti
2017-04-01 19:46:08 UTC
Permalink
Your client is failing to contact the bootstrap server for some reason. If
there's no obvious problem with your internet connection then it's probably
a problem with your NAT router not forwarding UDP packets correctly.
Post by Ray
Thanks for your answers.
I have attached the log to this email.
--
Steven Siloti <***@gmail.com>
Loading...