{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/127","repository_url":"https://api.github.com/repos/syncthing/syncthing-inotify","labels_url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/127/comments","events_url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/127/events","html_url":"https://github.com/syncthing/syncthing-inotify/issues/127","id":171036286,"number":127,"title":"syncthing-inotify not picking up attribute changes","user":{"login":"DarkHelmet433","id":342419,"avatar_url":"https://avatars.githubusercontent.com/u/342419?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkHelmet433","html_url":"https://github.com/DarkHelmet433","followers_url":"https://api.github.com/users/DarkHelmet433/followers","following_url":"https://api.github.com/users/DarkHelmet433/following{/other_user}","gists_url":"https://api.github.com/users/DarkHelmet433/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkHelmet433/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkHelmet433/subscriptions","organizations_url":"https://api.github.com/users/DarkHelmet433/orgs","repos_url":"https://api.github.com/users/DarkHelmet433/repos","events_url":"https://api.github.com/users/DarkHelmet433/events{/privacy}","received_events_url":"https://api.github.com/users/DarkHelmet433/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-14T01:16:03Z","updated_at":"2016-08-14T08:11:25Z","closed_at":null,"body":"syncthing-inotify doesn't appear to be registering for, or receiving NOTE_ATTRIB on kqueue/kevent systems.  As a result it is missing attribute changes that are leading to out-of-sync errors with syncthing - syncthing itself replicates the permissions but the inotify package is preventing it from seeing changes forever due to delay-scan and failing to inform syncthing itself.\r\n\r\n$ jobs\r\n[1]  + Running                       tail -f syncthing-inotify.log\r\n$ touch qq.txt\r\n[OK] 00:58:58 Syncthing is indexing change in ftp-data: [qq.txt]\r\n$ rm qq.txt\r\n[OK] 00:59:04 Syncthing is indexing change in ftp-data: [qq.txt]\r\n\r\n$ touch qq.txt\r\n[OK] 00:59:17 Syncthing is indexing change in ftp-data: [qq.txt]\r\n$ chmod 600 qq.txt\r\n$ chmod 755 qq.txt\r\n$ rm qq.txt\r\n[OK] 00:59:34 Syncthing is indexing change in ftp-data: [qq.txt]\r\n$ \r\n\r\nI'm confused by the embedded notify package in syncthing-notify.  It almost looks as though it is intentionally ignoring NOTE_ATTRIB / NoteAttrib events.  I'm not sure I see where it's implemented in the inotify driver for Linux either - the most likely candidate is InAttrib, but that goes nowhere.\r\n\r\nI've temporarily worked around this by setting --delay-scan=0 so that the incorrect permissions will eventually be noticed by syncthing itself and corrected.  I suspect that it can only safely defer scans if the folder is in IgnorePermissions mode, and even then, perhaps not."},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/comments/239661493","html_url":"https://github.com/syncthing/syncthing-inotify/issues/127#issuecomment-239661493","issue_url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/127","id":239661493,"user":{"login":"imsodin","id":15955093,"avatar_url":"https://avatars.githubusercontent.com/u/15955093?v=3","gravatar_id":"","url":"https://api.github.com/users/imsodin","html_url":"https://github.com/imsodin","followers_url":"https://api.github.com/users/imsodin/followers","following_url":"https://api.github.com/users/imsodin/following{/other_user}","gists_url":"https://api.github.com/users/imsodin/gists{/gist_id}","starred_url":"https://api.github.com/users/imsodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imsodin/subscriptions","organizations_url":"https://api.github.com/users/imsodin/orgs","repos_url":"https://api.github.com/users/imsodin/repos","events_url":"https://api.github.com/users/imsodin/events{/privacy}","received_events_url":"https://api.github.com/users/imsodin/received_events","type":"User","site_admin":false},"created_at":"2016-08-14T08:11:25Z","updated_at":"2016-08-14T08:11:25Z","body":"As you are saying, we are currently not registering attribute changes. I do not know whether this is by design ( @Zillode ?).\r\nIt would be easy to tell the underlying [notify library](https://github.com/rjeczalik/notify/issues) to track attribute changes as well, but it does not guarantee that attribute changes are detected on all systems. From a look at the code it seems like they only support it with the inotify backend, i.e. on linux. Strangely they seem to pick up attribute changes on knotify but drop it internally. That should probably be discussed in an upstream issue."}}
{"actor":{"display_login":"imsodin"}}