syncthing 0.13.5 + syncthing-inotify 0.8 + linux-amd64 doesn't detect local changes

Good job developers! This software is so helpful for us (previous BitTorrent Sync user)

However, I have trouble with my setup, the “Rescan” button in the http GUI detects local changes when I try to create new file using “touch test” command

[GJRLP] 23:22:07 VERBOSE: Folder “XXXX” is now scanning

[GJRLP] 23:22:07 VERBOSE: Local change detected in folder “XXXX”: added file /root/Sync/XXXX/test

[GJRLP] 23:22:07 VERBOSE: Folder “XXXX” is now idle

which works, the http GUI shows “Scanning” status then the number of items reported increases

Now here’s my problem, with syncthing-inotify, upon “touch test” command, syncthing doesn’t seem to detect local changes:

[GJRLP] 23:22:05 VERBOSE: Folder “XXXX” is now scanning

[GJRLP] 23:22:05 VERBOSE: Folder “XXXX” is now idle

I’m pretty sure that syncthing and syncthing-inotify is connected and configured with each other because whenever I “touch” to create new files, the verbose log output of syncthing always shows:

[GJRLP] 23:22:05 VERBOSE: Folder “XXXX” is now scanning

[GJRLP] 23:22:05 VERBOSE: Folder “XXXX” is now idle

Which means they are connected and communicating but it seems the function that is called by “Rescan” button in the http GUI is not utilized by rest api (just guessin’) when requested by syncthing-inotify

I’ve also tried -interval=“2000ms” in syncthing-inotify, still doesnt show “Local change detected”, it just shows “Scanning” status in http GUI then after that the number of items reported doesn’t change

Thanks in advance! I wish the best to Syncthing and it’s developers!!!

Because the file hasn’t potentially changed?

echo a >>test

Is probably a better test

Still the same.

I also even "Restart"ed the syncthing from http GUI and modify/create file again. Still, the rescan from syncthing-inotify is different from “Rescan” button in http GUI.

BTW, I’m also a programmer, however, I’m not familiar in syncthing project’s source code and unfortunately doesn’t have spare time to scan them all, maybe someone could give some little light where (file / function name / line number) I can find the function that is called whenever “Rescan” button in http GUI is clicked and also where I can find the function that is called whenever syncthing-inotify sends “Rescan” signal so I could somehow try to find the bug?

Thanks in advance!!

Do you use ~ in your folder path? See https://github.com/syncthing/syncthing-inotify/issues/108

I’ll release a new version soon

1 Like

I’m not using ~ in my folder path, I use absolute paths. HOWEVER, your reply gave me hint! I was using path /A/B/C where:

A is a symlink to /root/D

but B and C is a real folder

After setting the path to /root/D/B/C, viola! Everything is now working and instantly synced!

Note: I was automatically upgraded to 0.13.6 before I tried fiddling with the folder path. I tried to use /A/B/C path again and still doesn’t work (even in 0.13.6). So I’ll stick with real folder paths for now on.

BIG Thanks to developers! Syncthing is the best!

1 Like

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