ipfs / kubo

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

problems with the /ipns fuse mount #2709

Open cehteh opened 8 years ago

cehteh commented 8 years ago

I've trying to distribute some testfiles here using the /ipns as general purpose filesystem:

rsync -PLir MP3 /ipns/local/

then watch the result in the browser http://localhost:8080/ipns/QmXQAx... That shows the tree garbled up with temporary files rsync created. Even after waiting some time for the ipfs daemon to settle down. Force reload in the browser doesn't change anything.

stopping daemon, start over by publishing an empty directory:

ipfs name publish QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn

restarting daemon, everything works /ipns/local/ is now a empty directory.

Then trying to use the --inplace option to rsync. Now it seems all data gets added properly. But then 'mv MP3 somethingelse' is not reflected in the web gateway. The /ipns/local/ dir looks ok, but after restarting the daemon the changes are gone and it shows an earlier state.

With some trying and tinkering I get it right after some tries and restarts. But it looks there are some race conditions when storing/rekeying with the ipns fuse mount.

whyrusleeping commented 7 years ago

We've recently updated our fuse dependency, do you mind trying out latest master (post 0.4.6) and seeing how it goes?