-
-
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
IPNS resolve fails using ECC key #6043
Comments
The whole thing is quite funny, because a while ago it was working: libp2p/libp2p#62 (comment) The only difference now is that I didn't build ipfs from scratch, but copied the compiled binary from the source server. And the second server geographically situated farther right now. So it should not matter. The main question is how to debug it. I looked into the config and realized that the "self" key is situated there. I am not sure if I can just put my ECC key there. Let me try. Edit: So I inserted base64-encoded private key and ran ipfs. Then I ran $ipfs publish w/o --key argument and made sure that it publishes at QmafEdQrhntRYzKu3V2Mn4Rd21Px9Hpfgbw6YBvCNJyDJH I went to the second server and pinged QmafEdQrhntRYzKu3V2Mn4Rd21Px9Hpfgbw6YBvCNJyDJH, made sure that it is online. Then I tried to do name resolve. Same thing. "Error: could not resolve name" |
It appears to me that there might be a problem related to the availability of public keys: libp2p/go-libp2p-kad-dht#139 (comment) How I can make sure that this is the case? Anyways, if that is the case, how I was able to successfully ping the peer ID of which is calculated via my ECC key? |
Hm...
Got it working with above option enabled. Well, but now if I will update the IPNS record on a publisher's service, it still resolves the old value on the second server. There must be a way to invalidate a record. |
IPNS records have the |
Good. There are should be some other way to update how IPNS record resolves. |
The settings you want depend on whether it's better to resolve an old value or fail. A long lifetime but short ttl will mean that resolves will frequently take the full 60 seconds, but will fall back to an old value if that's all that's available. EDIT: By the way, rather than using |
Closing (ed25519 been the default for a while, no issues) |
ipfs v.0.4.19-dev
I installed ipfs on server #1, generated ECC key and published some content on IPNS using that key. Content resolves OK, although with a huge lag:
Then I installed ipfs on a different server and tried to resolve that IPNS path and failed. Although the node itself (see above, the self key) is available:
Interestingly, the resolution of an address generated by using the self key (RSA) works fine:
[root@329020 ipfs]# date && ipfs name resolve /ipns/QmQBojsRJJrwvqDdbmWbmbZ7GCTnhHmzri5DhEqLP2zVXq && date Sun Mar 3 19:41:26 UTC 2019 /ipfs/QmaKVGFUQtGFfschpohWmWicmZwUPeTHLu74kymn3vupBj Sun Mar 3 19:41:36 UTC 2019
I am not sure what to do at this point and how to debug it. Any help will be appreciated.
The text was updated successfully, but these errors were encountered: