ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
15.98k stars 3k forks source link

corrupted ipns entry in local cache #3124

Open whyrusleeping opened 8 years ago

whyrusleeping commented 8 years ago

I was able to break my local ipns publishing:

➜  ~ ipfs name publish <some hash>
Error: proto: required field "{Unknown}" not set

I did this by first publishing an entry normally, then:

ipfs dht get /ipns/<my peer ID> > ipns-data
cat ipns-data | ipfs dht put /ipns/<my peer ID>

Something must not be quite right here in the round tripping of the record.

This also appears to make it impossible for me to publish new ipns values for the time being.

jbenet commented 8 years ago

That would be a great test case of you can get a repro On Thu, Aug 25, 2016 at 14:59 Jeromy Johnson notifications@github.com wrote:

I was able to break my local ipns publishing:

➜ ~ ipfs name publish Error: proto: required field "{Unknown}" not set

I did this by first publishing an entry normally, then:

ipfs dht get /ipns/ > ipns-data cat ipns-data | ipfs dht put /ipns/

Something must not be quite right here in the round tripping of the record.

This also appears to make it impossible for me to publish new ipns values for the time being.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ipfs/go-ipfs/issues/3124, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIcoQT8Rok7HAR212R3_K_QFOcVbsfOks5qjeYOgaJpZM4JtZHq .

Stebalien commented 5 years ago

Well, the good news is that this now returns an error on put. The bad news is that get is still broken.