Out of sync , when trying to sync deleted files


(Panayotis) #1

Hello again and thank you for this marvellous application.

I have an issue though, and I don’t know how to get over it.

I am synchronising my desktop and my laptop, with two servers, each of my personal machines to be able to see everything, but the two servers are able to see the private machines but not one another (just in case a cycle appears). The number of files is huge, more than 100.000.

Since I am rather new with syncthing, I keep an eye on the unsynched items and if I find files following the pattern [filename].sync[ID].[original_extension] I review it and if it is indeed an old file, I remove it by hand (i.e. rm -rf…)

The problem is that, for some strange reason, two folders are still mentioned as “Out of Sync Items”, although they don’t physically exist on any of my machines. And I am pretty sure that this is more than the 24-h delete time.

Because of them, not any server manifests itself as synchronized, and always stays at 95-99%.

For reference, here is what the interface says about these files:

Path Size Mod. Time Mod. Device
Development/WebApps/Sites/jubler.org/.hg/cache/checklink 0 B 1970-01-01 02:00:00 ierax
Development/WebApps/Sites/panayotis.com/.hg/cache/checklink 0 B 1970-01-01 02:00:00 ierax

(Audrius Butkevicius) #2

Which device is ierax?

Also, it seems you are syncing versiom control repos, you can search the forum about syncing git repos and explanations why that’s a bad idea.


(Panayotis) #3

ierax is my laptop. Indeed there were still some traces of the folder. I really didn’t comprehend that. Thank you. And the .hg folder there was a relic that I wanted to get rid of.

But, you are right that I have a few of git repositories. Right now I just ignore all .git folders, as there is a recommendation in the forum. Shouldn’t be this enough?

Thank you again for your time!

EDIT: as a second thought, since I deleted that folder, shouldn’t it dissapear from all the devices gradually?


(Audrius Butkevicius) #4

.hg is not .git

Deleted files should disappear, but it’s not clear what state you are in, it’s best if you post screenshots from both sides.


(BLAU) #5

Hello,

I got exactly the same problem: one file (named quiero.mp4) that i deleted on one machine now remains definitively “out of sync”, the folder containing it also remains “out of sync” and the other machines remains syncing at 99%.


(BLAU) #6

Hello As a circumvention, is’nt there a way to tell Syncthing: “ok guy, this file does’nt exist anymore and so do’nt try to sync it from now on” ?

Thank you Jan


(Audrius Butkevicius) #7

On the device that is out of sync, check the logs or ui for failed items with an explanation why the file can’t he synced. This can also happen if the file is ignored.


(BLAU) #8

In the log, i do’nt see any reference to the file “quiero.mp4”. And i do’nt understand why this file should be ignored. Can you explain this ?


(Bob Hope) #9

Audirus means with “ignored” that you put into the list of ignored files in the folder options. See https://docs.syncthing.net/users/ignoring.html


(Simon) #10

Also a good place to start:

This is found when expanding the folder that is shown as out-of-sync. If there is no failed items entry, please look at the out-of-sync entry. And logs still help, even if they don’t mention the files explicitly. There should be information about pulling operations.


(BLAU) #11

OK, understood.

But there is no .stignore file in the root of the folder


(Audrius Butkevicius) #12

Can you post screenshots from both sides?


(BLAU) #13

When expanding the folder, Out of sync items entry only list the file causing the issue (quiero.mp4). I will try to investigate by reading the log, following your advice


(BLAU) #14

I have read the log, but i saw nothing that could lead to an explanation of th problem


(Simon) #15

Please enable model debug logging (actions->logs->debugging facilities) and make the logs available.


(Audrius Butkevicius) #16

Can you post screenshots? Its not clear which side you are looking at.


(BLAU) #17

Here is 1st screenshot


(BLAU) #18

2nd screenshot


(BLAU) #19

Here is an extract of the log with fs, model, scanner, stats, versioner, walkfs and watchaggregator debug facilities:

2018-07-14 07:36:25 sendReceiveFolder/cam-redmi5@0xc04306d680 Scanning subdirectories
2018-07-14 07:36:25 size.go:85 basic C:\Users\root\AppData\Local\Syncthing Usage . {159999447040 480673525760} <nil>
2018-07-14 07:36:25 Walk [] Matcher/[]@0xc0420886c0
2018-07-14 07:36:25 ignored (internal): .stfolder
2018-07-14 07:36:25 ignored (internal): .stversions
2018-07-14 07:36:25 Walk progress done cam-redmi5 [] Matcher/[]@0xc0420886c0
2018-07-14 07:36:25 size.go:85 basic C:\Users\root\AppData\Local\Syncthing Usage . {159999447040 480673525760} <nil>
2018-07-14 07:36:25 size.go:85 basic C:\Users\root\AppData\Local\Syncthing Usage . {159999447040 480673525760} <nil>
2018-07-14 07:36:25 size.go:85 basic C:\Users\root\AppData\Local\Syncthing Usage . {159999447040 480673525760} <nil>
2018-07-14 07:36:25 &{120000000000 0xc042149220 0xc043072660 0xc0430726c0} next rescan in 2m18.624783013s
2018-07-14 07:36:37 sendReceiveFolder/COUNTRY@0xc042015400 Scanning subdirectories
2018-07-14 07:36:37 size.go:85 basic C:\Users\root\AppData\Local\Syncthing Usage . {159999447040 480673525760} <nil>
2018-07-14 07:36:37 Walk [] Matcher/[]@0xc0420882d0
2018-07-14 07:36:37 size.go:85 basic C:\Users\root\AppData\Local\Syncthing Usage . {159999447040 480673525760} <nil>
2018-07-14 07:36:37 ignored (internal): .stfolder
2018-07-14 07:36:37 ignored (internal): .stversions
2018-07-14 07:36:37 Walk progress done COUNTRY [] Matcher/[]@0xc0420882d0
2018-07-14 07:36:37 size.go:85 basic C:\Users\root\AppData\Local\Syncthing Usage . {159999447040 480673525760} <nil>
2018-07-14 07:36:38 size.go:85 basic C:\Users\root\AppData\Local\Syncthing Usage . {159999447040 480673525760} <nil>
2018-07-14 07:36:38 &{120000000000 0xc042148e60 0xc042fa7260 0xc042fa72c0} next rescan in 1m56.970612571s

(Audrius Butkevicius) #20

It seems that the device that has the latest version of this file is not online. I assume other devices show this file as out of sync?