I'm currently doing research on IPFS despite being new to it. I appreciate any help from you.
When I run the ipfs dht get <key>
, I don't get any results. Can you explain it, please?
Moreover, Can you explain (or direct me to documentation) the verbose result of ipfs dht get
that I get in the final command?
Below is a scenario of what I have done.
Note: for the error messages that I get after each command, I have already opened an issue.
$ iptb -v
iptb version 2.0.0
~$ iptb auto -type localipfs -count 5
...
~$ iptb start
...
~$ iptb connect 0 1
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/browser %!s(chan struct {}=0xc000082600) map[GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7fd1977da4c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7fd1977da4d0) PluginName:%!s(*string=0x7fd1976f7aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7fd1977da4d8)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/docker %!s(chan struct {}=0xc0000826c0) map[GetMetricList:%!s(func() []string=0x7fd1958cee00) GetMetricDesc:%!s(func(string) (string, error)=0x7fd1958ceec0) ErrTimeout:%!s(*error=0x7fd1963b1ef0) PluginName:%!s(*string=0x7fd1962ceaa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7fd1963b14d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7fd1963b14c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7fd1963b14d0)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/local %!s(chan struct {}=0xc000082720) map[NewNode:%!s(*testbedi.NewNodeFunc=0x7fd17ffdb4d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7fd17ffdb4c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7fd17ffdb4d0) GetMetricList:%!s(func() []string=0x7fd17f4fb390) GetMetricDesc:%!s(func(string) (string, error)=0x7fd17f4fb450) PluginName:%!s(*string=0x7fd17fef8aa0)]}
~$ iptb connect 0 2
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/browser %!s(chan struct {}=0xc00002a720) map[PluginName:%!s(*string=0x7f4e6f6f7aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7f4e6f7da4d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7f4e6f7da4c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7f4e6f7da4d0)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/docker %!s(chan struct {}=0xc00002a840) map[GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7f4e6e3b14d0) GetMetricList:%!s(func() []string=0x7f4e6d8cee00) GetMetricDesc:%!s(func(string) (string, error)=0x7f4e6d8ceec0) ErrTimeout:%!s(*error=0x7f4e6e3b1ef0) PluginName:%!s(*string=0x7f4e6e2ceaa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7f4e6e3b14d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7f4e6e3b14c8)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/local %!s(chan struct {}=0xc00002a8a0) map[GetMetricList:%!s(func() []string=0x7f4e574fb390) GetMetricDesc:%!s(func(string) (string, error)=0x7f4e574fb450) PluginName:%!s(*string=0x7f4e57ef8aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7f4e57fdb4d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7f4e57fdb4c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7f4e57fdb4d0)]}
~$ iptb connect 1 3
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/browser %!s(chan struct {}=0xc0004902a0) map[PluginName:%!s(*string=0x7fb516ef6aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7fb516fd94d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7fb516fd94c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7fb516fd94d0)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/docker %!s(chan struct {}=0xc0004903c0) map[GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7fb515bb04d0) GetMetricList:%!s(func() []string=0x7fb5150cde00) GetMetricDesc:%!s(func(string) (string, error)=0x7fb5150cdec0) ErrTimeout:%!s(*error=0x7fb515bb0ef0) PluginName:%!s(*string=0x7fb515acdaa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7fb515bb04d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7fb515bb04c8)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/local %!s(chan struct {}=0xc000490420) map[PluginName:%!s(*string=0x7fb4ffef8aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7fb4fffdb4d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7fb4fffdb4c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7fb4fffdb4d0) GetMetricList:%!s(func() []string=0x7fb4ff4fb390) GetMetricDesc:%!s(func(string) (string, error)=0x7fb4ff4fb450)]}
~$ iptb connect 1 4
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/browser %!s(chan struct {}=0xc000082600) map[GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7ffb3ffdb4d0) PluginName:%!s(*string=0x7ffb3fef8aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7ffb3ffdb4d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7ffb3ffdb4c8)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/docker %!s(chan struct {}=0xc0000826c0) map[GetMetricList:%!s(func() []string=0x7ffb3e0cfe00) GetMetricDesc:%!s(func(string) (string, error)=0x7ffb3e0cfec0) ErrTimeout:%!s(*error=0x7ffb3ebb2ef0) PluginName:%!s(*string=0x7ffb3eacfaa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7ffb3ebb24d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7ffb3ebb24c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7ffb3ebb24d0)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/local %!s(chan struct {}=0xc000082720) map[PluginName:%!s(*string=0x7ffb3d69daa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7ffb3d7804d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7ffb3d7804c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7ffb3d7804d0) GetMetricList:%!s(func() []string=0x7ffb3cca0390) GetMetricDesc:%!s(func(string) (string, error)=0x7ffb3cca0450)]}
~$ iptb shell 0
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/browser %!s(chan struct {}=0xc000084600) map[GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7f21bb7da4d0) PluginName:%!s(*string=0x7f21bb6f7aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7f21bb7da4d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7f21bb7da4c8)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/docker %!s(chan struct {}=0xc0000846c0) map[GetMetricList:%!s(func() []string=0x7f21b98cee00) GetMetricDesc:%!s(func(string) (string, error)=0x7f21b98ceec0) ErrTimeout:%!s(*error=0x7f21ba3b1ef0) PluginName:%!s(*string=0x7f21ba2ceaa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7f21ba3b14d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7f21ba3b14c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7f21ba3b14d0)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/local %!s(chan struct {}=0xc000084720) map[GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7f21a3fdb4d0) GetMetricList:%!s(func() []string=0x7f21a34fb390) GetMetricDesc:%!s(func(string) (string, error)=0x7f21a34fb450) PluginName:%!s(*string=0x7f21a3ef8aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7f21a3fdb4d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7f21a3fdb4c8)]}
~$ echo 'anoterdata2'| ipfs add -q
QmPjugqeQKpCYWJZWjigw5QkLMKXzJcquFzzWyjQ5XVcb6
~$ ipfs dht findprovs QmPjugqeQKpCYWJZWjigw5QkLMKXzJcquFzzWyjQ5XVcb6
Qmda2GHcV44UxJXgwGNYNbsHnwF6WkL1abxLgApcEnUkTc
~$ exit
exit
~$ iptb shell 3
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/browser %!s(chan struct {}=0xc00002a720) map[GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7f1605fd74d0) PluginName:%!s(*string=0x7f1605ef4aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7f1605fd74d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7f1605fd74c8)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/docker %!s(chan struct {}=0xc00002a840) map[NewNode:%!s(*testbedi.NewNodeFunc=0x7f15ebfdb4d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7f15ebfdb4c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7f15ebfdb4d0) GetMetricList:%!s(func() []string=0x7f15eb4f8e00) GetMetricDesc:%!s(func(string) (string, error)=0x7f15eb4f8ec0) ErrTimeout:%!s(*error=0x7f15ebfdbef0) PluginName:%!s(*string=0x7f15ebef8aa0)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/local %!s(chan struct {}=0xc00002a8a0) map[GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7f15eaba94c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7f15eaba94d0) GetMetricList:%!s(func() []string=0x7f15ea0c9390) GetMetricDesc:%!s(func(string) (string, error)=0x7f15ea0c9450) PluginName:%!s(*string=0x7f15eaac6aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7f15eaba94d8)]}
~$ ipfs dht findprovs QmPjugqeQKpCYWJZWjigw5QkLMKXzJcquFzzWyjQ5XVcb6
Qmda2GHcV44UxJXgwGNYNbsHnwF6WkL1abxLgApcEnUkTc
~$ echo 'anoterdata2'| ipfs add -q
QmPjugqeQKpCYWJZWjigw5QkLMKXzJcquFzzWyjQ5XVcb6
~$ ipfs dht findprovs QmPjugqeQKpCYWJZWjigw5QkLMKXzJcquFzzWyjQ5XVcb6
Qmda2GHcV44UxJXgwGNYNbsHnwF6WkL1abxLgApcEnUkTc
QmYvvwZ8QLqnMJ6UiaCnJa3nVkPwPcdH5xDWrUk2pyrWXT
~$ exit
exit
~$ iptb shell 4
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/browser %!s(chan struct {}=0xc00002a720) map[GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7ff37efd94d0) PluginName:%!s(*string=0x7ff37eef6aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7ff37efd94d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7ff37efd94c8)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/docker %!s(chan struct {}=0xc00002a840) map[ErrTimeout:%!s(*error=0x7ff37dbb0ef0) PluginName:%!s(*string=0x7ff37dacdaa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7ff37dbb04d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7ff37dbb04c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7ff37dbb04d0) GetMetricList:%!s(func() []string=0x7ff37d0cde00) GetMetricDesc:%!s(func(string) (string, error)=0x7ff37d0cdec0)]}
Error: could not cast `NewNode` of &{github.com/ipfs/iptb/plugins/ipfs/local %!s(chan struct {}=0xc00002a8a0) map[GetMetricList:%!s(func() []string=0x7ff3774fb390) GetMetricDesc:%!s(func(string) (string, error)=0x7ff3774fb450) PluginName:%!s(*string=0x7ff377ef8aa0) NewNode:%!s(*testbedi.NewNodeFunc=0x7ff377fdb4d8) GetAttrDesc:%!s(*testbedi.GetAttrDescFunc=0x7ff377fdb4c8) GetAttrList:%!s(*testbedi.GetAttrListFunc=0x7ff377fdb4d0)]}
~$ ipfs dht findprovs QmPjugqeQKpCYWJZWjigw5QkLMKXzJcquFzzWyjQ5XVcb6
Qmda2GHcV44UxJXgwGNYNbsHnwF6WkL1abxLgApcEnUkTc
QmYvvwZ8QLqnMJ6UiaCnJa3nVkPwPcdH5xDWrUk2pyrWXT
~$ ipfs dht get QmPjugqeQKpCYWJZWjigw5QkLMKXzJcquFzzWyjQ5XVcb6
~$ ipfs dht get -v QmPjugqeQKpCYWJZWjigw5QkLMKXzJcquFzzWyjQ5XVcb6
22:37:37.724: adding peer to query: <peer.ID QYBbDE>
22:37:37.724: adding peer to query: <peer.ID YvvwZ8>
22:37:37.724: adding peer to query: <peer.ID da2GHc>
22:37:37.724: * querying <peer.ID QYBbDE>
22:37:37.725: * querying <peer.ID da2GHc>
22:37:37.725: * querying <peer.ID YvvwZ8>
22:37:37.725: * <peer.ID QYBbDE> says use <peer.ID YvvwZ8> <peer.ID da2GHc> <peer.ID UstVxg>
22:37:37.725: adding peer to query: <peer.ID UstVxg>
22:37:37.725: * querying <peer.ID UstVxg>
22:37:37.725: * <peer.ID YvvwZ8> says use <peer.ID QYBbDE> <peer.ID da2GHc> <peer.ID UstVxg>
22:37:37.725: * <peer.ID da2GHc> says use <peer.ID QYBbDE> <peer.ID YvvwZ8> <peer.ID UstVxg>
22:37:37.725: * <peer.ID UstVxg> says use <peer.ID QYBbDE> <peer.ID YvvwZ8> <peer.ID da2GHc>
22:37:37.725: error: routing: not found