Repository navigation
Description
Using Syncthing v0.8.12, Arch Linux, ext4 filesystem
Have a strange problem, I'm syncing about 181GB using syncthing, and it seems like some of the files are having a problem syncing. Here is a screenshot of the main window:
The size reported in the file manager is 181.1GB, 8348 items, just as the local repo sees. The same is true with the computer I am syncing with, "ThinkpadR61". I have both computers walk through the location first, before syncing them, and they show this stat. When I have them sync each other, mysteriously Syncthing reports that 8 files are not in sync between the machines, resulting in 8355 files, 182 GiB. Both machines report the same results in the screenshot (they both think they are out of sync). It should be noted that these two comptuers have had their data rsynced prior to syncthing running, so I believe the content is the same in any case.
Here is some of the output of STTRACE=model,scanner syncthing 2>&1 | tee ~/syncthing.log (full output not attached, since the log kept on dumping things to the output that was too long):
[HJQMI] 2014/06/03 21:05:42.137060 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 121765888 outstanding 7 done false
[HJQMI] 2014/06/03 21:05:42.137085 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122814464 copy 0
[HJQMI] 2014/06/03 21:05:42.137103 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 121634816 outstanding 7 done false
[HJQMI] 2014/06/03 21:05:42.137123 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122683392 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 8
[HJQMI] 2014/06/03 21:05:42.137141 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=122683392 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.137153 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 121896960 outstanding 7 done false
[HJQMI] 2014/06/03 21:05:42.137178 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122028032 outstanding 6 done false
[HJQMI] 2014/06/03 21:05:42.137190 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122290176 outstanding 5 done false
[HJQMI] 2014/06/03 21:05:42.137205 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122814464 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 8
[HJQMI] 2014/06/03 21:05:42.137216 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=122814464 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.137233 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122945536 copy 0
[HJQMI] 2014/06/03 21:05:42.137244 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123076608 copy 0
[HJQMI] 2014/06/03 21:05:42.137261 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123207680 copy 0
[HJQMI] 2014/06/03 21:05:42.137273 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122945536 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 6
[HJQMI] 2014/06/03 21:05:42.166693 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=122945536 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.166741 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123207680 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 8
[HJQMI] 2014/06/03 21:05:42.166753 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=123207680 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.166765 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123338752 copy 0
[HJQMI] 2014/06/03 21:05:42.166784 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123076608 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 7
[HJQMI] 2014/06/03 21:05:42.166793 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=123076608 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.166813 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122421248 outstanding 7 done false
[HJQMI] 2014/06/03 21:05:42.166835 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=119799808 s=131072
[HJQMI] 2014/06/03 21:05:42.166867 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=119930880 s=131072
[HJQMI] 2014/06/03 21:05:42.166881 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=120061952 s=131072
[HJQMI] 2014/06/03 21:05:42.166893 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=120193024 s=131072
[HJQMI] 2014/06/03 21:05:42.166916 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=120324096 s=131072
[HJQMI] 2014/06/03 21:05:42.166929 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=120455168 s=131072
[HJQMI] 2014/06/03 21:05:42.166949 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=120586240 s=131072
[HJQMI] 2014/06/03 21:05:42.166957 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=120717312 s=131072
[HJQMI] 2014/06/03 21:05:42.166967 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=120848384 s=131072
[HJQMI] 2014/06/03 21:05:42.166974 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=120979456 s=131072
[HJQMI] 2014/06/03 21:05:42.167005 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=121110528 s=131072
[HJQMI] 2014/06/03 21:05:42.167017 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=121241600 s=131072
[HJQMI] 2014/06/03 21:05:42.167044 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=121372672 s=131072
[HJQMI] 2014/06/03 21:05:42.167055 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=121503744 s=131072
[HJQMI] 2014/06/03 21:05:42.167066 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=121634816 s=131072
[HJQMI] 2014/06/03 21:05:42.167088 model.go:391: DEBUG: REQ(in; nonexistent): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "Media/Yo soy betty, la fea/Capítulo 1 Yo Soy Betty La Fea Completo.mp4" o=121765888 s=131072
[HJQMI] 2014/06/03 21:05:42.167097 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122159104 outstanding 6 done false
[HJQMI] 2014/06/03 21:05:42.167108 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122552320 outstanding 5 done false
[HJQMI] 2014/06/03 21:05:42.167119 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122683392 outstanding 4 done false
[HJQMI] 2014/06/03 21:05:42.167129 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122814464 outstanding 3 done false
[HJQMI] 2014/06/03 21:05:42.167167 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123338752 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 4
[HJQMI] 2014/06/03 21:05:42.167176 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=123338752 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.167185 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123469824 copy 0
[HJQMI] 2014/06/03 21:05:42.167193 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123600896 copy 0
[HJQMI] 2014/06/03 21:05:42.167208 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123469824 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 5
[HJQMI] 2014/06/03 21:05:42.167230 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=123469824 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.167251 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123731968 copy 0
[HJQMI] 2014/06/03 21:05:42.167289 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123600896 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 6
[HJQMI] 2014/06/03 21:05:42.167310 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=123600896 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.167338 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123863040 copy 0
[HJQMI] 2014/06/03 21:05:42.167351 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123994112 copy 0
[HJQMI] 2014/06/03 21:05:42.167370 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123731968 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 7
[HJQMI] 2014/06/03 21:05:42.167380 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=123731968 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.167403 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 124125184 copy 0
[HJQMI] 2014/06/03 21:05:42.167415 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 124256256 copy 0
[HJQMI] 2014/06/03 21:05:42.167437 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123863040 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 8
[HJQMI] 2014/06/03 21:05:42.167447 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=123863040 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.167457 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 123994112 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 9
[HJQMI] 2014/06/03 21:05:42.167463 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=123994112 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.167496 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 124125184 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 10
[HJQMI] 2014/06/03 21:05:42.167510 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 124387328 copy 0
[HJQMI] 2014/06/03 21:05:42.167521 puller.go:536: DEBUG: pull: requesting "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 124256256 size 131072 from "UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ" outstanding 11
[HJQMI] 2014/06/03 21:05:42.167536 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=124256256 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.167544 model.go:543: DEBUG: REQ(out): UD6DWIIVENISM54QLFESTWS7HJC3NFSJJTL7XPZ52Y3S3V5ADCSQ: "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" o=124125184 s=131072 h=
[HJQMI] 2014/06/03 21:05:42.167589 puller.go:340: DEBUG: pull: wrote "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 122945536 outstanding 10 done false
[HJQMI] 2014/06/03 21:05:42.167612 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 124518400 copy 0
[HJQMI] 2014/06/03 21:05:42.167634 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 124649472 copy 0
[HJQMI] 2014/06/03 21:05:42.167646 puller.go:127: DEBUG: filler: queueing "bigsync" / "Media/Yo soy betty, la fea/Capítulo 42 Yo Soy Betty La Fea Completo.mp4" offset 124780544 copy 0
This seems to be the output for one file, but there are 7 others which Syncthing has an issue with. The net result is that Syncthing keeps trying to sync these 8 files, to no avail. Any idea what might be going wrong? Any further output needed? I have cleaned/deleted the database multiple times, and was using a git build after v0.8.12, none of which seemed to help.

Activity
calmh commentedon Jun 4, 2014
Not exactly sure what's going on here, but it looks like a bug for sure. Could you possible stop syncthing on both sides, run it with the trace logging as above on both sides for like five minutes (enough for it to fail whatever is failing a few times) and posts the logs somewhere? I can provide upload space if you don't have anywhere good to stash them online.
ramesh45345 commentedon Jun 4, 2014
I'll get the logs up later today. They're going to be rather big, since Syncthing right now just dumps loads of output constantly when performing a sync. The first log I took last night was 630mb. This time I'll take clean logs as suggested. I should have cloud space available, but I'll let you know if I have an issue with that...
calmh commentedon Jun 4, 2014
@vinadoros Thanks! Do it with 0.8.13 just released, for the sake of it.
rom1504 commentedon Jun 4, 2014
One of my file called "Gestion des investissements séance 2.pptx" was having trouble being sync by syncthing, but it seems to have trouble to be sync by dropbox too (many conflict file) and I couldn't even mv it (I had to pass by dolphin to remove the "é")
I bet this was an encoding problem, I think this "é" was wrong somehow (it came from a chinese computer so I guess it was misencoded or something)
Once renamed, everything work.
STTRACE=model,scanner syncthing 2> ~/syncthing.log
is useful to figure out which file has problems (look for " changed" in the log)
ramesh45345 commentedon Jun 4, 2014
Thats a very interesting observation...I just checked and the 8 files which are failing have the word "Capítulo" in them, with the character "í". This might be the problem, perhaps Syncthing cannot handle such file names.
@calmh I'll still produce the logs later today, but what do you think about this? This is probably what the problem is.
calmh commentedon Jun 4, 2014
Yes, that sounds very likely. Syncthing itself has no issue with files with non-ASCII characters in them; everything on the wire is UTF-8, and it assumes that filesystems on Linux are as well (with special handling for Mac which uses the "wrong" kind of unicode normalization). Is this a standard ext4 filesystem, no funny mount options related to character set (if any such exist) or anything like that? What's the node on the other side?
ramesh45345 commentedon Jun 4, 2014
This is a standard ext4 filesystem, no interesting mount options:
which are standard on linux. The node on the other side is the exact same, ext4 linux.
EDIT: Also, I'd just like to note again that the issue doesn't present itself when there are no nodes to sync with. It only occurs when I allow Syncthing to sync with the other nodes.
calmh commentedon Jun 4, 2014
I can't reproduce this... For me it works fine to sync a file called åäöèúï.txt between Mac and two Ubuntus. Can you do an
ls | od -at x1on all nodes where that file / those files are present, so we can see how that filename is actually encoded (and I can try to reproduce with that)?ramesh45345 commentedon Jun 4, 2014
On the Corei7 computer:
ls Capítulo\ 1\ Yo\ Soy\ Betty\ La\ Fea\ Completo.mp4 | od -at x1
On the thinkpad:
Let me know if you want to see the other files done too.
ramesh45345 commentedon Jun 4, 2014
@calmh Also, as promised earlier today, here are the logs using strace for about 5-10 minutes on the two machines in question. They are long and boring, so I hope you enjoy them :-).
https://mega.co.nz/#!xFljVZQa!TGyrAOWHBqvXNf8ihfiHGK4exPs9Y1OjA3v-Mzk895Q
calmh commentedon Jun 4, 2014
Right, so the í in there is
69 cc 81which is UTF-8 normalization form D, unexpected on Linux and standard on Mac. We would expect to seec3 adinstead. Anyway, that's probably the problem, and of course syncthing should handle it. I'll see what I can do to reproduce and fix. Oh and thanks for the logs, hopefully they won't be necessary ;)calmh commentedon Jun 4, 2014
(Oh and before anyone says "why don't you just ignore the encoding and just copy the name", I want an ä from Linux to actually show up as an ä on my Mac, and that requires handling encodings correctly. The encoding also occasionally gets "fixed" by the filesystem so we write one filename and read another back, which doesn't end well. In fact, it's probably something like that that happens here, but internal to syncthing.)
calmh commentedon Jun 5, 2014
So, I reproduced this easy enough now that we know what the problem is. Syncthing normalizes file names to UTF-8 NFC over the wire. The Linux binary expects local filenames to be in UTF-8 NFC and doesn't convert what it reads from disk. So the source node gets a request for the filename in NFC, but the filename on disk (and local index) is actually encoded in NFD, so the request for file data fails and the sync fails.
I'm not sure what the correct fix is.
We could re-encode file names to the correct/expected encoding for the platform, like we do on Windows and Mac. But on Linux it's actually valid (if stupid) to have two files both called
Híbut with different encoding of the í - they'll look the same and you won't be able to type the name of one of them, but they can live on disk. That's not possible on Mac and Windows, so we run into the same issue as if you had two filenames that differ only in case (also unsolved).[-]Issues syncing certain files[/-][+]Issues syncing files with names in unexpected charset encodings[/+]jpjp commentedon Jun 5, 2014
Could syncthing complain instead?
ramesh45345 commentedon Jun 5, 2014
@calmh Even though its valid, if it isn't the way that it is normally done, perhaps it is better to re-encode the names. Windows and Mac don't even have the option, and even if Linux gives the option, if it is something rare, then why not go with the normal case?
If nothing else, it would be good if at least syncthing could inform me about why it has a problem with the file (so that I can rename it or something).
calmh commentedon Jun 6, 2014
Oh yeah, it should be handled somehow, no doubt about that. Problem is, normalizing the name is not enough; it would essentially need to rename the file to the "correct" encoding. Otherwise we would need to remember both the normalized name and whatever we found on disk and keep the mapping between them. I don't like silently changing stuff on the source, so perhaps in this case we should simply check the encoding and emit a warning "unexpected filename encoding; check and consider renaming" and simply ignore the file. Then again, that's not great either because if the same file exists on another node (with correct encoding) we'll pick that up and sync it, effectively creating a copy of the file with the same name in another encoding...
ramesh45345 commentedon Jun 9, 2014
It seems almost as if the best solution is if Syncthing can notify the user of this issue, and offer to rename it. Otherwise, it would simply have to ignore it. If files exist on other nodes, they will want to sync with the Linux computer. Unless the Linux computer refuses to sync the file, itll take the file with the standard encoding set anyway. Even ignoring it won't really work. I suspect the user will have to take action in this case.
In fact, this is basically how I have worked around this problem, was just to simply change the character to one where Syncthing does sync the file properly. I suspect users will simply do this if they are notified to, if they are paying attention.
andrew-d commentedon Jun 9, 2014
IMHO, a simple solution would be to detect issues with strange normalizations, show a warning, and then also refuse to accept files with alternate encodings. If this would prevent a repository from reaching 100% sync, it would also be a good way of exposing the problem to other nodes in the system.
Merge branch 'master' into ql