{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/3070","repository_url":"https://api.github.com/repos/syncthing/syncthing","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/3070/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/3070/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/3070/events","html_url":"https://github.com/syncthing/syncthing/issues/3070","id":153797493,"number":3070,"title":"index not up to date after scan folder api called from Filewatcher application (synctrayzor)","user":{"login":"chrisshearing","id":11537942,"avatar_url":"https://avatars.githubusercontent.com/u/11537942?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisshearing","html_url":"https://github.com/chrisshearing","followers_url":"https://api.github.com/users/chrisshearing/followers","following_url":"https://api.github.com/users/chrisshearing/following{/other_user}","gists_url":"https://api.github.com/users/chrisshearing/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisshearing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisshearing/subscriptions","organizations_url":"https://api.github.com/users/chrisshearing/orgs","repos_url":"https://api.github.com/users/chrisshearing/repos","events_url":"https://api.github.com/users/chrisshearing/events{/privacy}","received_events_url":"https://api.github.com/users/chrisshearing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-09T15:03:03Z","updated_at":"2016-05-13T13:19:43Z","closed_at":null,"body":"Hi,\r\n\r\nWe have Syncthing running via SyncTrayzor with a single instance on a Windows 2012 R2 server hosting multiple folders, each of which is connected to a single Syncthing instance running via SyncTrayzor on a users laptop.  The folders on the server are also shared via SMB for when the user logs on to a device other than their dedicated laptop.\r\n\r\nThe folders on the server are populated with data and we install and set up a laptop with a fresh folder to synchronise (this folder contains the basic structure of a windows documents folder, with a few folder redirections, such as desktop and links)\r\n\r\nAfter the initial sync on a most laptops we notice errors such as these (specific to the user in question)\r\n\r\nThe Downloads.lnk file is present on both sides when the sync starts and will often result in a conflict file being created.\r\n\r\n```\r\n2016-05-03 11:19:43.5268 #1160 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: Received 6 events \r\n2016-05-03 11:19:43.5268 #1160 [Debug] SyncTrayzor.Syncthing.SyncthingProcessRunner: [UVYNR] 11:19:43 INFO: Puller (folder \"willenbrocka\", file \"My Settings\\\\links\\\\Downloads.lnk\"): pull: peers who had this file went away, or the file has changed while syncing. will retry later \r\n```\r\n\r\nThis error goes away after a rescan (we have it set to 1 hour as we are using the Filewatcher in Synctrayzor for the immediate changes and frequent scanning of 200+ folders causes huge IO on the server) however as per the log below SyncTrayzor has already successfully sent an API request to scan the folder\r\n\r\nCanton7 was extremely helpful and we concluded that SyncTrayzor was sending the API call to Syncthing without issue on [SyncTrayzor issue  256](https://github.com/canton7/SyncTrayzor/issues/256) (starts about halfway down on my reply starting \"This might not be related, but we are seeing this popping up in the logs quite regularly,\"\r\n\r\n\r\n```\r\n2016-05-03 11:18:22.7096 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <ItemStarted ID=3284 Time=03/05/2016 11:18:22 Item=my settings\\links\\Downloads.lnk Folder=willenbrocka Type=File Action=Update>\r\n2016-05-03 11:18:22.7096 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: Item started. Folder: willenbrocka, Item: my settings\\links\\Downloads.lnk, Type: File, Action: Update\r\n2016-05-03 11:18:22.7096 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: Created file transfer: <FileTransfer Folder=willenbrocka Path=my settings\\links\\Downloads.lnk Status=Started ItemType=File ActionType=Update Started=03/05/2016 10:18:22 Finished=>\r\n2016-05-03 11:18:22.7096 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <ItemStarted ID=3285 Time=03/05/2016 11:18:22 Item=AppData\\Bookmarks Folder=willenbrocka Type=File Action=Metadata>\r\n2016-05-03 11:18:22.7096 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: Item started. Folder: willenbrocka, Item: AppData\\Bookmarks, Type: File, Action: Metadata\r\n2016-05-03 11:18:22.7096 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <ItemFinished ID=3286 Time=03/05/2016 11:18:22 Item=AppData\\Bookmarks Folder=willenbrocka Error=>\r\n2016-05-03 11:18:22.7276 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: Item finished. Folder: willenbrocka, Item: AppData\\Bookmarks, Type: File, Action: Metadata\r\n2016-05-03 11:18:22.7276 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <ItemFinished ID=3287 Time=03/05/2016 11:18:22 Item=my settings\\links\\RecentPlaces.lnk Folder=willenbrocka Error=>\r\n2016-05-03 11:18:22.7276 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: Item finished. Folder: willenbrocka, Item: my settings\\links\\RecentPlaces.lnk, Type: File, Action: Update\r\n2016-05-03 11:18:22.7276 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: File Transfer set to complete: <FileTransfer Folder=willenbrocka Path=my settings\\links\\RecentPlaces.lnk Status=Completed ItemType=File ActionType=Update Started=03/05/2016 10:18:22 Finished=03/05/2016 10:18:22>\r\n2016-05-03 11:18:22.7596 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <ItemFinished ID=3288 Time=03/05/2016 11:18:22 Item=my settings\\links\\Downloads.lnk Folder=willenbrocka Error=>\r\n2016-05-03 11:18:22.7756 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: Item finished. Folder: willenbrocka, Item: my settings\\links\\Downloads.lnk, Type: File, Action: Update\r\n2016-05-03 11:18:22.7876 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: File Transfer set to complete: <FileTransfer Folder=willenbrocka Path=my settings\\links\\Downloads.lnk Status=Completed ItemType=File ActionType=Update Started=03/05/2016 10:18:22 Finished=03/05/2016 10:18:22>\r\n2016-05-03 11:18:22.7876 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <ItemFinished ID=3289 Time=03/05/2016 11:18:22 Item=my settings\\links\\Desktop.lnk Folder=willenbrocka Error=>\r\n2016-05-03 11:18:22.8276 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: Item finished. Folder: willenbrocka, Item: my settings\\links\\Desktop.lnk, Type: File, Action: Update\r\n2016-05-03 11:18:22.8276 #5556 [Debug] SyncTrayzor.Syncthing.TransferHistory.SyncthingTransferHistory: File Transfer set to complete: <FileTransfer Folder=willenbrocka Path=my settings\\links\\Desktop.lnk Status=Completed ItemType=File ActionType=Update Started=03/05/2016 10:18:22 Finished=03/05/2016 10:18:22>\r\n2016-05-03 11:18:22.8276 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <LocalIndexUpdated ID=3290 Time=03/05/2016 11:18:22 Folder=willenbrocka Items=27 Version=1447220>\r\n2016-05-03 11:18:22.8276 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <StateChangedEvent ID=3291 Time=03/05/2016 11:18:22 Folder=willenbrocka From=syncing To=idle Duration=00:00:00.4700000>\r\n2016-05-03 11:18:22.8276 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <FolderSummary ID=3292 Time=03/05/2016 11:18:22 Folder=willenbrocka Summary=<FolderStatus GlobalBytes=1419642039 GlobalDeleted=2 GlobalFiles=7061 LocalBytes=1419642039 LocalDeleted=2 LocalFiles=7061 InSyncBytes=1419642039 InSyncFiles=7061 NeedBytes=0 NeedFiles=0 Invalid= State=idle StateChanged=03/05/2016 11:18:22 Version=1447248>>\r\n2016-05-03 11:18:22.8927 #5556 [Debug] SyncTrayzor.Syncthing.EventWatcher.SyncthingEventWatcher: <GenericEvent ID=3293 Type=FolderCompletion Time=03/05/2016 11:18:22 Data={\"completion\":0.0013015957186612859,\"device\":\"UVYNR2C-BUN6GAN-MTOYD2J-BIK2QHN-DLU4K2T-N6BKANX-U5PJS5C-CSB7EAC\",\"folder\":\"willenbrocka\"}>\r\n```\r\n\r\nThese files are just automatically created windows .lnk files so are not important, however I really wanted to make sure that this doesn't happen with other conflicted files and felt it was worth a bug report.\r\n\r\nThanks!\r\n\r\n### Version Information\r\n\r\nSyncthing Version: v0.12.22\r\nOS Version: Windows 7 x64 / Windows Server 2012 R2\r\n"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/219040427","html_url":"https://github.com/syncthing/syncthing/issues/3070#issuecomment-219040427","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/3070","id":219040427,"user":{"login":"AudriusButkevicius","id":1144861,"avatar_url":"https://avatars.githubusercontent.com/u/1144861?v=3","gravatar_id":"","url":"https://api.github.com/users/AudriusButkevicius","html_url":"https://github.com/AudriusButkevicius","followers_url":"https://api.github.com/users/AudriusButkevicius/followers","following_url":"https://api.github.com/users/AudriusButkevicius/following{/other_user}","gists_url":"https://api.github.com/users/AudriusButkevicius/gists{/gist_id}","starred_url":"https://api.github.com/users/AudriusButkevicius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AudriusButkevicius/subscriptions","organizations_url":"https://api.github.com/users/AudriusButkevicius/orgs","repos_url":"https://api.github.com/users/AudriusButkevicius/repos","events_url":"https://api.github.com/users/AudriusButkevicius/events{/privacy}","received_events_url":"https://api.github.com/users/AudriusButkevicius/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T13:19:42Z","updated_at":"2016-05-13T13:19:42Z","body":"I think links might not be handled well just because how windows deals with them now that I think about it. I'd have to test it though. How are you creatijg modifying these links?"}}