Can't sync since 0.14.17


Just as a side note: Sycnthing creates files with the target size, so they will have full size even before the first byte is synced.

(Ethan Thornburg) #22

Interesting, well it definitely wasn’t a case where it was still syncing (at least not at a rate more than a couple bytes a second) because I’ve had this issue for 9 days now (since v0.14.17 was released).

(Audrius Butkevicius) #23

I understand weakhash slows things down, but I don’t really see why it would never finish. Also from the logs you posted it looked like it was progressing fine.

(Ethan Thornburg) #24

Which logs? The ones from today? Because I see 117 bytes being transferred at a time, which is very small. The UI displayed 0 B/s for 9 days and would not sync. I tried removing the folders on both sides, resharing, deleting the appdata files. But it would not sync the FPSGame-WindowsNoEditor.pak file correctly. As soon as I checked the disable weak hash checkbox it synced in a few minutes. The two computers I’m testing with are on the same network.

(Audrius Butkevicius) #25

Can you repro if you re-enable weakhashes?

(Jakob Borg) #26

My thought was that perhaps the finder kept the file open too long, but the code doesn’t really support that assertion which is my later “doubt this actually has anything to do with it”. So yeah, no idea.

(Audrius Butkevicius) #27

Hmm weakhash also opens the file, maybe I missed something.

(Jakob Borg) #28

Yeah it was the weakhash.Finder I meant but the open/close cycle looks sound to me.

(Audrius Butkevicius) #29

Same here, had a look now, and I can’t see anything slipping through.

(Ethan Thornburg) #30

The weakHasher will never be closed if any of the return statements above it are hit correct?

I see return statements within copierRoutine at lines 1126, 1135, 1145, 1151, 1165, and 1175.

Is it possible that it hit one of those and didn’t close the weakHasher?

Edit: I am going to test with one of my teamates in a bit, on a different computer that doesn’t have the weak hashing disabled. I will report back if he is having issues syncing too.

(Audrius Butkevicius) #31

All of the return statements are within callback functions, hence do not effect exiting that specific function.

(Ethan Thornburg) #32

Okay, sorry I just glanced at the code.

I just wanted to confirm that my teammate also couldn’t complete the sync without checking the disableWeakHash box.

(Audrius Butkevicius) #33

Ok can you keep it in that state, and run with STTRACE=model env var and post logs?

(system) #34

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.