-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sharness suite: ipfs name publish: “Error: failed to find any peer in table” #1941
Comments
@ion1 this is covered in the test: I think this is caused by 7ad8dd8, which is intentional? |
The comment for
|
Yes it is meant to be removed. Maybe there should be |
I think |
Either that, or use |
related #1593 |
should probably have a |
What do we want the UX to be? I can see cases for:
|
I don't like the UX of a |
An “is daemon online” test in the beginning has a race condition. Perhaps the network connection disappears immediately after it. Perhaps it would be better to make an asynchronous/synchronous distinction. Default: asynchronous – succeed immediately, best effort to publish the name whenever the daemon is running and online. Optional: synchronous – fail if the daemon is not running; wait until the record has been added to DHT otherwise. |
These issues should be mitigated by using iptb for tests. You should be able to spin up an iptb cluster (as in t0130-multinode.sh) and do ipns publishes just fine |
FYI, this is still an issue in 0.4.13 and 0.4.14. In particular, it means if you're running a private swarm with a single node or with intermittent connectivity, |
I'm getting an error ERROR ipns-repub: Republisher failed to republish: failed to find any peer in table core.go:518 current IPFS version of 0.4.14 any solution for working around? |
@vyzo on IRC suggested trying
|
You need to resolve once in the peer first, so that it is subscribed to the topic before the publisher publishes. |
There is only one peer involved; it's a single-node swarm. Running |
I think the issue here is that the rendezvous for ipns pubsub happens through DHT provider records. Btw, you need your two peers connected before you publish. If they are not, then the rendezvous for pubsub will fail, and the peer will fail to see the published record. |
Per discussion on irc: It seems that this intentionally a single peer, not connected to anything; so it's a BUG. |
So guys, I just want to bump this issue since I am facing it in this moment. I even tried to use the EDIT: I forgot to mention that I am on
|
For the record, this is still broken in 0.4.18:
|
The documentation for --allow-offline implies it should do exactly what I want:
I'm not sure if this is a matter of me not understanding the documentation, the documentation being wrong, or a bug preventing --allow-offline from actually working. Perhaps it only applies if node was started with --offline, and not if the node is in "online mode" but not actually connected to anything? |
|
After some testing, it does in fact work in |
ipfs name publish
fails with “Error: failed to find any peer in table” in the sharness suite when the daemon is running.(There are no peers intentionally,
ipfs bootstrap rm --all
is executed intest/sharness/lib/test-lib.sh
.)The text was updated successfully, but these errors were encountered: