{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/3829","repository_url":"https://api.github.com/repos/syncthing/syncthing","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/3829/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/3829/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/3829/events","html_url":"https://github.com/syncthing/syncthing/issues/3829","id":196767478,"number":3829,"title":"Receiving 'invalid subpath' errors on syncthing-inotify full folder sync trigger","user":{"login":"javmorin","id":56076,"avatar_url":"https://avatars.githubusercontent.com/u/56076?v=3","gravatar_id":"","url":"https://api.github.com/users/javmorin","html_url":"https://github.com/javmorin","followers_url":"https://api.github.com/users/javmorin/followers","following_url":"https://api.github.com/users/javmorin/following{/other_user}","gists_url":"https://api.github.com/users/javmorin/gists{/gist_id}","starred_url":"https://api.github.com/users/javmorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javmorin/subscriptions","organizations_url":"https://api.github.com/users/javmorin/orgs","repos_url":"https://api.github.com/users/javmorin/repos","events_url":"https://api.github.com/users/javmorin/events{/privacy}","received_events_url":"https://api.github.com/users/javmorin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-20T20:05:07Z","updated_at":"2016-12-20T23:11:10Z","closed_at":null,"body":"I have been making some large scale file moves in one of my synced folders and this has caused syncthing to go **FAILED** indicating an **invalid subpath** error. \r\n\r\n### Current Behavior\r\n- `syncthing-inotify` triggers scan of full sync path\r\n- `syncthing` returns **invalid subpath** both to the `syncthing-inotify` request and shows same in the web UI\r\n\r\nLooking at the logs for syncthing-inotify, I see the following:\r\n```\r\n[OK] Watching vc: /home/mikej/vc\r\n[WARNING] Failed to perform request Post http://127.0.0.1:8384/rest/db/scan?folder=vc&next=3600&sub=.stfolder: net/http: request canceled (Client.Timeout exceeded while awaiting headers)\r\n[WARNING] Request to delay scanning of vc failed\r\n[WARNING] http://127.0.0.1:8384/rest/db/scan?folder=vc&next=3600&sub=\r\n[WARNING] Error: Status 500 != 200 for POST: vc, invalid subpath\r\n[WARNING] Syncthing failed to index changes for  vc Invalid HTTP status code\r\n[WARNING] http://127.0.0.1:8384/rest/db/scan?folder=vc&next=3600&sub=\r\n[WARNING] Error: Status 500 != 200 for POST: vc, invalid subpath\r\n[WARNING] Syncthing failed to index changes for  vc Invalid HTTP status code\r\n...\r\n```\r\n\r\n### Expected Behavior\r\n- `syncthing-inotify` triggers scan of full sync path\r\n- `syncthing` completes the scan successfully.\r\n\r\nI will also note that if I stop/disable `syncthing-inotify` and hit **Rescan** in the web UI, the sync completes successfully with no errors.\r\n\r\nI checked at the recent issues and though I believe it may be the _result_ of #3805 - because the timing works and #3805 made adjustments to the subpath detection - the problem behavior is distinct from that issue. I unfortunately could not work out how to write a test that demonstrated the error (still very new to Go), so I will have to defer that to the syncthing devs.\r\n\r\n### Version Information\r\n\r\nSyncthing Version: v0.14.15\r\nSyncthing-inotify Version: v0.8.4\r\nOS Version: Arch Linux 64bit\r\nBrowser Version: N/A\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/268386445","html_url":"https://github.com/syncthing/syncthing/issues/3829#issuecomment-268386445","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/3829","id":268386445,"user":{"login":"calmh","id":125426,"avatar_url":"https://avatars.githubusercontent.com/u/125426?v=3","gravatar_id":"","url":"https://api.github.com/users/calmh","html_url":"https://github.com/calmh","followers_url":"https://api.github.com/users/calmh/followers","following_url":"https://api.github.com/users/calmh/following{/other_user}","gists_url":"https://api.github.com/users/calmh/gists{/gist_id}","starred_url":"https://api.github.com/users/calmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calmh/subscriptions","organizations_url":"https://api.github.com/users/calmh/orgs","repos_url":"https://api.github.com/users/calmh/repos","events_url":"https://api.github.com/users/calmh/events{/privacy}","received_events_url":"https://api.github.com/users/calmh/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T23:11:10Z","updated_at":"2016-12-20T23:11:10Z","body":"Oh. *Empty* sub. That's unexpected. "}}
{"actor":{"display_login":"calmh"}}