We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I believe it's related to choosing the wrong ratchet during merge. Needs addressing before private merge can be considered even remotely stable
$ go test --run TestTreeMergeCommit/remote_overwrites_local_file --count 3 -v === RUN TestTreeMergeCommit === RUN TestTreeMergeCommit/remote_overwrites_local_file 2021-10-27T15:26:41.982-0400 DEBUG wnfs private/private.go:381 Tree.Add {"path": "hello.txt"} 2021-10-27T15:26:41.984-0400 DEBUG wnfs ratchet/store.go:44 writing ratchet {"name": "_3xDEII-eMyaUQlvmgG4m7pEWPLDRrW4EDE6bMs2Rb4="} 2021-10-27T15:26:41.984-0400 DEBUG wnfs private/private.go:1069 File.Put {"name": "", "cid": "bafkreieaujplcex3zm76jgrudvrn5v53jqg2k3sp7gyjcj4zm5a4sl5rvy", "size": 6} 2021-10-27T15:26:41.984-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 1} 2021-10-27T15:26:41.985-0400 DEBUG wnfs ratchet/store.go:44 writing ratchet {"name": "bJcG5wFzWYUQeGiXZFf4oVLYszw74OqMzJwuF-qkBOE="} 2021-10-27T15:26:41.985-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreifiz3alz25gq7txk5jjvwrdha56chq75rfskorehsnkhg2u7wlvji", "size": 6} 2021-10-27T15:26:41.985-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzacebn6le2na7eloclahpr4naz2pd4rwlowlzkrjf26sugwi5u4ebkc6", "key": "Q3goYsxfWBAzOUSdLAgrWjZ5M5jlrF76WQtL5I910G4="} 2021-10-27T15:26:41.985-0400 DEBUG wnfs private/private.go:95 LoadRoot {"hamtCID": "bafy2bzacebn6le2na7eloclahpr4naz2pd4rwlowlzkrjf26sugwi5u4ebkc6", "key": "Q3goYsxfWBAzOUSdLAgrWjZ5M5jlrF76WQtL5I910G4=", "name": "5e138f6c23438ca08814d4d12eb00414d95f0ba242217801f7004d7481f4128a"} 2021-10-27T15:26:41.985-0400 DEBUG wnfs private/private.go:273 LoadTree {"name": "", "cid": "bafkreifiz3alz25gq7txk5jjvwrdha56chq75rfskorehsnkhg2u7wlvji"} 2021-10-27T15:26:41.985-0400 DEBUG wnfs private/private.go:381 Tree.Add {"path": "hello.txt"} 2021-10-27T15:26:41.985-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreieaujplcex3zm76jgrudvrn5v53jqg2k3sp7gyjcj4zm5a4sl5rvy", "key": "Ke671RvLDBKGSKW82XoIz0RyW1kxG7klaBzatlA90As="} 2021-10-27T15:26:41.988-0400 DEBUG wnfs private/private.go:1069 File.Put {"name": "hello.txt", "cid": "bafkreif5ruvydv5mvpwwpynaxkz7xvapkxjvfmtcye6dtdlnwgqcmbdzqa", "size": 30} 2021-10-27T15:26:41.988-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 1} 2021-10-27T15:26:41.988-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreiabq6fvhmcltepuf4rj4ouijckr4nra3sfffecbmvuhhhkhzmswbm", "size": 30} 2021-10-27T15:26:41.988-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzacea44chuodgjjqnli4cvddzrobylfoj7vp37jn7wxmx5uik43wlmp6", "key": "SXqwk3k0o0l_qBZDR13p6uruO8B4DctHr0VuynSWJss="} 2021-10-27T15:26:41.988-0400 DEBUG wnfs private/private.go:381 Tree.Add {"path": "goodbye.txt"} 2021-10-27T15:26:41.989-0400 DEBUG wnfs ratchet/store.go:44 writing ratchet {"name": "iSOLafDzQHm5Y4dHVbQW3hEtkPnCu7Vc5Bm6TpEQVQI="} 2021-10-27T15:26:41.989-0400 DEBUG wnfs private/private.go:1069 File.Put {"name": "", "cid": "bafkreicb3mzuot7r2vds7jhhmaoq4mtzwwhijcpmk4xzxzds62anlvsm3u", "size": 8} 2021-10-27T15:26:41.998-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 2} 2021-10-27T15:26:41.999-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreicrqcrwep23tcxffwlrlf55eoodrb5akbisypnrwqozdxaamt2pcm", "size": 14} 2021-10-27T15:26:41.999-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzacecpavqgi26vwmumvoturgdm7rsyczius2mobt7kh2yllgypqcga6o", "key": "SXqwk3k0o0l_qBZDR13p6uruO8B4DctHr0VuynSWJss="} 2021-10-27T15:26:41.999-0400 DEBUG wnfs private/private.go:1199 Merge {"acid": "bafkreicrqcrwep23tcxffwlrlf55eoodrb5akbisypnrwqozdxaamt2pcm", "bcid": "bafkreiabq6fvhmcltepuf4rj4ouijckr4nra3sfffecbmvuhhhkhzmswbm"} 2021-10-27T15:26:42.000-0400 DEBUG wnfs private/private.go:730 merge root trees {"local": "bafkreicrqcrwep23tcxffwlrlf55eoodrb5akbisypnrwqozdxaamt2pcm", "remote": "bafkreiabq6fvhmcltepuf4rj4ouijckr4nra3sfffecbmvuhhhkhzmswbm"} 2021-10-27T15:26:42.000-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreieaujplcex3zm76jgrudvrn5v53jqg2k3sp7gyjcj4zm5a4sl5rvy", "key": "Ke671RvLDBKGSKW82XoIz0RyW1kxG7klaBzatlA90As="} 2021-10-27T15:26:42.000-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreif5ruvydv5mvpwwpynaxkz7xvapkxjvfmtcye6dtdlnwgqcmbdzqa", "key": "Z5PgGhSwu5ZwzJ885r5e4oEn4kv8W4N7y7BSZq_ppsg="} 2021-10-27T15:26:42.000-0400 DEBUG wnfs private/private.go:1199 Merge {"acid": "bafkreieaujplcex3zm76jgrudvrn5v53jqg2k3sp7gyjcj4zm5a4sl5rvy", "bcid": "bafkreif5ruvydv5mvpwwpynaxkz7xvapkxjvfmtcye6dtdlnwgqcmbdzqa"} 2021-10-27T15:26:42.000-0400 DEBUG wnfs private/private.go:808 adding link {"link": {"Name":"hello.txt","Size":30,"Cid":{"/":"bafkreif5ruvydv5mvpwwpynaxkz7xvapkxjvfmtcye6dtdlnwgqcmbdzqa"},"IsFile":true,"Mtime":0,"Key":"Z5PgGhSwu5ZwzJ885r5e4oEn4kv8W4N7y7BSZq_ppsg=","Pointer":"9e96281ab35eed606bd627b22eda20a938262672baf1c7e0c0b7930f457320a3"}} 2021-10-27T15:26:42.000-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 2} 2021-10-27T15:26:42.000-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreiddqun7mahuygdhinj6f5pbzfuikvvqzaes2xfao77nptcy4euaia", "size": 38} 2021-10-27T15:26:42.000-0400 DEBUG wnfs private/private.go:182 Root.Put {"name": "", "hamtCID": "bafy2bzacecpavqgi26vwmumvoturgdm7rsyczius2mobt7kh2yllgypqcga6o", "key": "JbgwFn4kdEFsqK0OCSoMzhv02rzuSnk0Oan7b7IhoCk="} 2021-10-27T15:26:42.000-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 2} 2021-10-27T15:26:42.001-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreid2hy6nugovcpqjsnq6ueqbdumo6l6ear4smwyvherotimad6xnea", "size": 38} 2021-10-27T15:26:42.001-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzaceacwlo22zrsw7xspn7ivdlcppnizjlwagpgg37o62m2o7apnc7at2", "key": "EcethZJTVN2VytYFiK2ypz4z6sChmMxDqNQXERCtY_0="} 2021-10-27T15:26:42.002-0400 DEBUG wnfs private/private.go:95 LoadRoot {"hamtCID": "bafy2bzaceacwlo22zrsw7xspn7ivdlcppnizjlwagpgg37o62m2o7apnc7at2", "key": "EcethZJTVN2VytYFiK2ypz4z6sChmMxDqNQXERCtY_0=", "name": "0ebcd1958e25ee8c696333c037a772c3b7c7d5b8b15a16b59231b71ab7eb0ccb"} 2021-10-27T15:26:42.002-0400 DEBUG wnfs private/private.go:273 LoadTree {"name": "", "cid": "bafkreid2hy6nugovcpqjsnq6ueqbdumo6l6ear4smwyvherotimad6xnea"} 2021-10-27T15:26:42.002-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreif5ruvydv5mvpwwpynaxkz7xvapkxjvfmtcye6dtdlnwgqcmbdzqa", "key": "Z5PgGhSwu5ZwzJ885r5e4oEn4kv8W4N7y7BSZq_ppsg="} --- PASS: TestTreeMergeCommit (0.02s) --- PASS: TestTreeMergeCommit/remote_overwrites_local_file (0.02s) === RUN TestTreeMergeCommit === RUN TestTreeMergeCommit/remote_overwrites_local_file 2021-10-27T15:26:42.003-0400 DEBUG wnfs private/private.go:381 Tree.Add {"path": "hello.txt"} 2021-10-27T15:26:42.003-0400 DEBUG wnfs ratchet/store.go:44 writing ratchet {"name": "cVXwdal2kgfV7AQxtKnLJi-d5TR31UDxfJvVyWMC9WU="} 2021-10-27T15:26:42.003-0400 DEBUG wnfs private/private.go:1069 File.Put {"name": "", "cid": "bafkreiazx6irmwnnl5tpwivud5tlqbzm2r7fhqkr6hulsajvf6x2k7u5z4", "size": 6} 2021-10-27T15:26:42.003-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 1} 2021-10-27T15:26:42.003-0400 DEBUG wnfs ratchet/store.go:44 writing ratchet {"name": "9KiHRlwoJFgwGUFdWcO7iODwqZWu7SvLcUN6eQdMuSo="} 2021-10-27T15:26:42.003-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreidtl2km63f67ny5ybp3hinacm35isyu6u2yn3zqmpuemqe5bohwvu", "size": 6} 2021-10-27T15:26:42.003-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzacedwui7xcbytsyox76mapcirbu37t6lx2c4g3xtagnxxjqenjy4kvc", "key": "_m6FpgZlX6gT14a3pVSIe1v0jdqPssppuEjB_j_v1AA="} 2021-10-27T15:26:42.004-0400 DEBUG wnfs private/private.go:95 LoadRoot {"hamtCID": "bafy2bzacedwui7xcbytsyox76mapcirbu37t6lx2c4g3xtagnxxjqenjy4kvc", "key": "_m6FpgZlX6gT14a3pVSIe1v0jdqPssppuEjB_j_v1AA=", "name": "c15272871c2fa8918afefbc0efe2b98c7069426ecb1496b1e86ed51ea6eb5e38"} 2021-10-27T15:26:42.004-0400 DEBUG wnfs private/private.go:273 LoadTree {"name": "", "cid": "bafkreidtl2km63f67ny5ybp3hinacm35isyu6u2yn3zqmpuemqe5bohwvu"} 2021-10-27T15:26:42.004-0400 DEBUG wnfs private/private.go:381 Tree.Add {"path": "hello.txt"} 2021-10-27T15:26:42.004-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreiazx6irmwnnl5tpwivud5tlqbzm2r7fhqkr6hulsajvf6x2k7u5z4", "key": "XInJvKNoCQRDuzscpOPJNUHJ3nkzdxT0FbXJyAXYgTE="} 2021-10-27T15:26:42.004-0400 DEBUG wnfs private/private.go:1069 File.Put {"name": "hello.txt", "cid": "bafkreifljoqhgp6ey4escayc4vak6nvuhxr5sfwqqnv5xqgn5c6mrxdvge", "size": 30} 2021-10-27T15:26:42.004-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 1} 2021-10-27T15:26:42.005-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreicu3a53ngfydbghjcqdyozsyzxakrqikwtnrdl4rpa6baugcjhvm4", "size": 30} 2021-10-27T15:26:42.005-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzacedmfiqxemv6ro7xoqb6krzaioibwfnrhmbggwgpeoesbx6oybgzno", "key": "WdhoI4krhMzuUjABVxtBM-7N3zbL7g1qBb3HvW6mzMc="} 2021-10-27T15:26:42.005-0400 DEBUG wnfs private/private.go:381 Tree.Add {"path": "goodbye.txt"} 2021-10-27T15:26:42.006-0400 DEBUG wnfs ratchet/store.go:44 writing ratchet {"name": "-I7IamQguuTqmbaA6Y4Cy9i1cKulEHMJCA7k_nGpSWM="} 2021-10-27T15:26:42.006-0400 DEBUG wnfs private/private.go:1069 File.Put {"name": "", "cid": "bafkreicgnewdjf4zdkytolb5jep7xiz4ue5wogbxlbe57eilwksdci47di", "size": 8} 2021-10-27T15:26:42.006-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 2} 2021-10-27T15:26:42.007-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreibgp6ivc2iv4lutj6uut2tfvxw6jls5p22634m7jgwweeipghgutm", "size": 14} 2021-10-27T15:26:42.007-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzacebhi7tjy3dgrxjlzlb2zatgo63swfvjxeflwqn4wvetscedgho7xo", "key": "WdhoI4krhMzuUjABVxtBM-7N3zbL7g1qBb3HvW6mzMc="} 2021-10-27T15:26:42.007-0400 DEBUG wnfs private/private.go:1199 Merge {"acid": "bafkreibgp6ivc2iv4lutj6uut2tfvxw6jls5p22634m7jgwweeipghgutm", "bcid": "bafkreicu3a53ngfydbghjcqdyozsyzxakrqikwtnrdl4rpa6baugcjhvm4"} 2021-10-27T15:26:42.007-0400 DEBUG wnfs private/private.go:730 merge root trees {"local": "bafkreicu3a53ngfydbghjcqdyozsyzxakrqikwtnrdl4rpa6baugcjhvm4", "remote": "bafkreibgp6ivc2iv4lutj6uut2tfvxw6jls5p22634m7jgwweeipghgutm"} 2021-10-27T15:26:42.007-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreifljoqhgp6ey4escayc4vak6nvuhxr5sfwqqnv5xqgn5c6mrxdvge", "key": "OAxjtUSYQ1rANUePrGNOY9NKCaQazm6HNbFjOi8slO4="} 2021-10-27T15:26:42.007-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreiazx6irmwnnl5tpwivud5tlqbzm2r7fhqkr6hulsajvf6x2k7u5z4", "key": "XInJvKNoCQRDuzscpOPJNUHJ3nkzdxT0FbXJyAXYgTE="} 2021-10-27T15:26:42.007-0400 DEBUG wnfs private/private.go:1199 Merge {"acid": "bafkreifljoqhgp6ey4escayc4vak6nvuhxr5sfwqqnv5xqgn5c6mrxdvge", "bcid": "bafkreiazx6irmwnnl5tpwivud5tlqbzm2r7fhqkr6hulsajvf6x2k7u5z4"} 2021-10-27T15:26:42.007-0400 DEBUG wnfs private/private.go:808 adding link {"link": {"Name":"hello.txt","Size":30,"Cid":{"/":"bafkreifljoqhgp6ey4escayc4vak6nvuhxr5sfwqqnv5xqgn5c6mrxdvge"},"IsFile":true,"Mtime":0,"Key":"XInJvKNoCQRDuzscpOPJNUHJ3nkzdxT0FbXJyAXYgTE=","Pointer":"c148d01bb1d49a007fe7d52e64cc140eccbe16b8813f371244502757bbb0e0bd"}} 2021-10-27T15:26:42.007-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 2} 2021-10-27T15:26:42.008-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreiarbg7cvgywbmwwjf5bm2fktga3maaom2u3rbuadrxqr3wx5p7voq", "size": 38} 2021-10-27T15:26:42.009-0400 DEBUG wnfs private/private.go:182 Root.Put {"name": "", "hamtCID": "bafy2bzacedmfiqxemv6ro7xoqb6krzaioibwfnrhmbggwgpeoesbx6oybgzno", "key": "U7DWVuYfg-oQzjboyU_IzVIFOLN7HjtiygyuikubVmE="} 2021-10-27T15:26:42.009-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 2} 2021-10-27T15:26:42.010-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreifvmlrt4td2hxf2henvrck5j6gnfcuvlusrbfzocs7fjoceif7dgi", "size": 38} 2021-10-27T15:26:42.010-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzaceblwqjisc6eheuggf22cx4fkamu3jokfcnyg4lirx6a3ja2qcr53y", "key": "MG4W_6cFWQjwP8mBDkaSNc3MDoWjkcSDflzOH_yPgKo="} 2021-10-27T15:26:42.010-0400 DEBUG wnfs private/private.go:95 LoadRoot {"hamtCID": "bafy2bzaceblwqjisc6eheuggf22cx4fkamu3jokfcnyg4lirx6a3ja2qcr53y", "key": "MG4W_6cFWQjwP8mBDkaSNc3MDoWjkcSDflzOH_yPgKo=", "name": "418055cba80b74a84de02d5e4b3f7f5057f913e919dc91721bdea9752a17057b"} 2021-10-27T15:26:42.010-0400 DEBUG wnfs private/private.go:273 LoadTree {"name": "", "cid": "bafkreifvmlrt4td2hxf2henvrck5j6gnfcuvlusrbfzocs7fjoceif7dgi"} 2021-10-27T15:26:42.010-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreifljoqhgp6ey4escayc4vak6nvuhxr5sfwqqnv5xqgn5c6mrxdvge", "key": "XInJvKNoCQRDuzscpOPJNUHJ3nkzdxT0FbXJyAXYgTE="} 2021-10-27T15:26:42.010-0400 DEBUG wnfs private/private.go:896 LoadFileFromCID {"err": "cipher: message authentication failed"} private_test.go:204: Error Trace: private_test.go:414 private_test.go:204 Error: Expected nil, but got: &fmt.wrapError{msg:"decoding s-node \"hello.txt\" header: cipher: message authentication failed", err:(*errors.errorString)(0xc0000583d0)} Test: TestTreeMergeCommit/remote_overwrites_local_file --- FAIL: TestTreeMergeCommit (0.01s) --- FAIL: TestTreeMergeCommit/remote_overwrites_local_file (0.01s) === RUN TestTreeMergeCommit === RUN TestTreeMergeCommit/remote_overwrites_local_file 2021-10-27T15:26:42.011-0400 DEBUG wnfs private/private.go:381 Tree.Add {"path": "hello.txt"} 2021-10-27T15:26:42.013-0400 DEBUG wnfs ratchet/store.go:44 writing ratchet {"name": "1VBjFoIl05PeBoNvhDHPKgJoSmVmbk_9Xwi4YuOcca8="} 2021-10-27T15:26:42.013-0400 DEBUG wnfs private/private.go:1069 File.Put {"name": "", "cid": "bafkreihxwzf7a4aml5ve4wmhex62hjg5zd3dwvrjndo6r52id7i2ok7you", "size": 6} 2021-10-27T15:26:42.013-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 1} 2021-10-27T15:26:42.013-0400 DEBUG wnfs ratchet/store.go:44 writing ratchet {"name": "cH6Qz63haopYMCLJUJSyzFc2Z4fK5DBmlulRlfefP5M="} 2021-10-27T15:26:42.013-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreig3zgr4tl56nohhs2sx24wqitbo2i57a3z5cebo24wguwizamhhg4", "size": 6} 2021-10-27T15:26:42.013-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzacecrnkmokdfxf7dafen3rnnrq6xjqln7sx4kvfppk7rfqqrpzmues2", "key": "jdYSbBIrWucqN0q90bLV9kKWaZL7tFY5BvAH59JCYuY="} 2021-10-27T15:26:42.013-0400 DEBUG wnfs private/private.go:95 LoadRoot {"hamtCID": "bafy2bzacecrnkmokdfxf7dafen3rnnrq6xjqln7sx4kvfppk7rfqqrpzmues2", "key": "jdYSbBIrWucqN0q90bLV9kKWaZL7tFY5BvAH59JCYuY=", "name": "7a6debf5ba013ccbb1f8d81caef03ce348d974d5e947163aa56f827668e3bfcb"} 2021-10-27T15:26:42.013-0400 DEBUG wnfs private/private.go:273 LoadTree {"name": "", "cid": "bafkreig3zgr4tl56nohhs2sx24wqitbo2i57a3z5cebo24wguwizamhhg4"} 2021-10-27T15:26:42.013-0400 DEBUG wnfs private/private.go:381 Tree.Add {"path": "hello.txt"} 2021-10-27T15:26:42.013-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreihxwzf7a4aml5ve4wmhex62hjg5zd3dwvrjndo6r52id7i2ok7you", "key": "Ke7TBGxKIp-biG5gPhSUfABep_PRKSlHumjx4yQoLZ4="} 2021-10-27T15:26:42.014-0400 DEBUG wnfs private/private.go:1069 File.Put {"name": "hello.txt", "cid": "bafkreigtqu6nuzz6jduzcxk6qfjo4xsebo2kjsqpkp5uscvtgsl6gjxjuq", "size": 30} 2021-10-27T15:26:42.014-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 1} 2021-10-27T15:26:42.015-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreiazzdybx5jggfhgd54okj7rn5hpc2wboojrbkemzschle7aai2nxi", "size": 30} 2021-10-27T15:26:42.015-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzacebvfwg7rabqo6yzjt32vrfi4wc5clxoq3x6me37va7qn3vt5pmp4g", "key": "Ggp7405rpVTTR78N-WWh9_WmYxq-KlgHL58Ho4HhyG8="} 2021-10-27T15:26:42.015-0400 DEBUG wnfs private/private.go:381 Tree.Add {"path": "goodbye.txt"} 2021-10-27T15:26:42.017-0400 DEBUG wnfs ratchet/store.go:44 writing ratchet {"name": "ZcPa5BGMWhBuirRu52BftEW2CZKofthBBrsAsxmDGac="} 2021-10-27T15:26:42.017-0400 DEBUG wnfs private/private.go:1069 File.Put {"name": "", "cid": "bafkreihkzp6tmqdjdd3hsqxlc7vusv7vtye6gduld5gah53z4fzv7boepu", "size": 8} 2021-10-27T15:26:42.017-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 2} 2021-10-27T15:26:42.018-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreigw354nactdfyjftlybzmjyjg7d3hw7hxhb3cymz3o4fyalfojfyy", "size": 14} 2021-10-27T15:26:42.018-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzaceaxwjtgq6khm246aieupn7y7y4o6ptogmsxynnkqsnbvnlyinote4", "key": "Ggp7405rpVTTR78N-WWh9_WmYxq-KlgHL58Ho4HhyG8="} 2021-10-27T15:26:42.018-0400 DEBUG wnfs private/private.go:1199 Merge {"acid": "bafkreigw354nactdfyjftlybzmjyjg7d3hw7hxhb3cymz3o4fyalfojfyy", "bcid": "bafkreiazzdybx5jggfhgd54okj7rn5hpc2wboojrbkemzschle7aai2nxi"} 2021-10-27T15:26:42.018-0400 DEBUG wnfs private/private.go:730 merge root trees {"local": "bafkreiazzdybx5jggfhgd54okj7rn5hpc2wboojrbkemzschle7aai2nxi", "remote": "bafkreigw354nactdfyjftlybzmjyjg7d3hw7hxhb3cymz3o4fyalfojfyy"} 2021-10-27T15:26:42.018-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreigtqu6nuzz6jduzcxk6qfjo4xsebo2kjsqpkp5uscvtgsl6gjxjuq", "key": "ryQuSigsS7aim3D78QlupjM-o1dGXDnQOoERsCFBGcI="} 2021-10-27T15:26:42.018-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreihxwzf7a4aml5ve4wmhex62hjg5zd3dwvrjndo6r52id7i2ok7you", "key": "Ke7TBGxKIp-biG5gPhSUfABep_PRKSlHumjx4yQoLZ4="} 2021-10-27T15:26:42.018-0400 DEBUG wnfs private/private.go:1199 Merge {"acid": "bafkreigtqu6nuzz6jduzcxk6qfjo4xsebo2kjsqpkp5uscvtgsl6gjxjuq", "bcid": "bafkreihxwzf7a4aml5ve4wmhex62hjg5zd3dwvrjndo6r52id7i2ok7you"} 2021-10-27T15:26:42.018-0400 DEBUG wnfs private/private.go:808 adding link {"link": {"Name":"hello.txt","Size":30,"Cid":{"/":"bafkreigtqu6nuzz6jduzcxk6qfjo4xsebo2kjsqpkp5uscvtgsl6gjxjuq"},"IsFile":true,"Mtime":0,"Key":"Ke7TBGxKIp-biG5gPhSUfABep_PRKSlHumjx4yQoLZ4=","Pointer":"7dc91dc5086aeb883488edbd7d7edb4427c4e279d26231e01b5b734e07985d02"}} 2021-10-27T15:26:42.018-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 2} 2021-10-27T15:26:42.019-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreidechurnsamsyzjwblzvwd56q5nyuygu2qrmfer3os56rxqfc3ewi", "size": 38} 2021-10-27T15:26:42.019-0400 DEBUG wnfs private/private.go:182 Root.Put {"name": "", "hamtCID": "bafy2bzacebvfwg7rabqo6yzjt32vrfi4wc5clxoq3x6me37va7qn3vt5pmp4g", "key": "5CbrTs4zKCmMPfVMACMN_Y9mXgatRfaXYeaHY3fmrvk="} 2021-10-27T15:26:42.019-0400 DEBUG wnfs private/private.go:674 Tree.Put {"name": "", "len(links)": 2} 2021-10-27T15:26:42.019-0400 DEBUG wnfs private/private.go:706 Tree.Put {"name": "", "cid": "bafkreibgn5uwlp5nvf3cbrvpupilpugz4kxanfjeurvxalfy52jqsmotte", "size": 38} 2021-10-27T15:26:42.019-0400 DEBUG wnfs private/private.go:198 putRoot {"name": "", "hamtCID": "bafy2bzacedlkpsctqxtsw6qntgxehqgdl4umk3iwq6fmpxb5zue5xvsxxiay4", "key": "DyglLunw9l55WGj8S4PQQxfixMc1gLxeUuTvk3uX9-k="} 2021-10-27T15:26:42.019-0400 DEBUG wnfs private/private.go:95 LoadRoot {"hamtCID": "bafy2bzacedlkpsctqxtsw6qntgxehqgdl4umk3iwq6fmpxb5zue5xvsxxiay4", "key": "DyglLunw9l55WGj8S4PQQxfixMc1gLxeUuTvk3uX9-k=", "name": "71db2288f9ba4baf2d3d8a29462a297f4c087ddd39c8787bdb73137dcbc4bd47"} 2021-10-27T15:26:42.021-0400 DEBUG wnfs private/private.go:273 LoadTree {"name": "", "cid": "bafkreibgn5uwlp5nvf3cbrvpupilpugz4kxanfjeurvxalfy52jqsmotte"} 2021-10-27T15:26:42.022-0400 DEBUG wnfs private/private.go:886 LoadFileFromCID {"name": "hello.txt", "cid": "bafkreigtqu6nuzz6jduzcxk6qfjo4xsebo2kjsqpkp5uscvtgsl6gjxjuq", "key": "Ke7TBGxKIp-biG5gPhSUfABep_PRKSlHumjx4yQoLZ4="} 2021-10-27T15:26:42.022-0400 DEBUG wnfs private/private.go:896 LoadFileFromCID {"err": "cipher: message authentication failed"} private_test.go:204: Error Trace: private_test.go:414 private_test.go:204 Error: Expected nil, but got: &fmt.wrapError{msg:"decoding s-node \"hello.txt\" header: cipher: message authentication failed", err:(*errors.errorString)(0xc0000583d0)} Test: TestTreeMergeCommit/remote_overwrites_local_file --- FAIL: TestTreeMergeCommit (0.01s) --- FAIL: TestTreeMergeCommit/remote_overwrites_local_file (0.01s) FAIL exit status 1 FAIL github.com/qri-io/wnfs-go/private 0.484s
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I believe it's related to choosing the wrong ratchet during merge. Needs addressing before private merge can be considered even remotely stable
The text was updated successfully, but these errors were encountered: