{"action":"created","issue":{"url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/245","repository_url":"https://api.github.com/repos/ejurgensen/forked-daapd","labels_url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/245/comments","events_url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/245/events","html_url":"https://github.com/ejurgensen/forked-daapd/issues/245","id":143997148,"number":245,"title":"Library scan causes airplay sync to go off","user":{"login":"sticilface","id":10061736,"avatar_url":"https://avatars.githubusercontent.com/u/10061736?v=3","gravatar_id":"","url":"https://api.github.com/users/sticilface","html_url":"https://github.com/sticilface","followers_url":"https://api.github.com/users/sticilface/followers","following_url":"https://api.github.com/users/sticilface/following{/other_user}","gists_url":"https://api.github.com/users/sticilface/gists{/gist_id}","starred_url":"https://api.github.com/users/sticilface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sticilface/subscriptions","organizations_url":"https://api.github.com/users/sticilface/orgs","repos_url":"https://api.github.com/users/sticilface/repos","events_url":"https://api.github.com/users/sticilface/events{/privacy}","received_events_url":"https://api.github.com/users/sticilface/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-28T15:02:11Z","updated_at":"2016-03-29T08:11:27Z","closed_at":null,"body":"Been trying to track this down for a few hours.  \r\nPlay to airplay speakers stops all of a sudden.  \r\nMusic continues to play in forked-daapd, just not to airplay speakers. \r\nplease see this issue where i've posted verbose debug output.. from both programs\r\n\r\nhttps://github.com/mikebrady/shairport-sync/issues/253\r\n\r\nshairport-sync can't re-sync with the music... even though it is still playing. \r\nOccurs with a large lib, at or just after the lib is busy scanning / using db\r\n"},"comment":{"url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/comments/202772702","html_url":"https://github.com/ejurgensen/forked-daapd/issues/245#issuecomment-202772702","issue_url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/245","id":202772702,"user":{"login":"ejurgensen","id":1156686,"avatar_url":"https://avatars.githubusercontent.com/u/1156686?v=3","gravatar_id":"","url":"https://api.github.com/users/ejurgensen","html_url":"https://github.com/ejurgensen","followers_url":"https://api.github.com/users/ejurgensen/followers","following_url":"https://api.github.com/users/ejurgensen/following{/other_user}","gists_url":"https://api.github.com/users/ejurgensen/gists{/gist_id}","starred_url":"https://api.github.com/users/ejurgensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejurgensen/subscriptions","organizations_url":"https://api.github.com/users/ejurgensen/orgs","repos_url":"https://api.github.com/users/ejurgensen/repos","events_url":"https://api.github.com/users/ejurgensen/events{/privacy}","received_events_url":"https://api.github.com/users/ejurgensen/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T08:11:27Z","updated_at":"2016-03-29T08:11:27Z","body":"That may be the consequence of FreeBSD not having inotify. See: https://forums.freebsd.org/threads/38162/\r\n\r\nHowever, 10 000 directories for a library of 24 400 files does sound too high. 3150 sounds more reasonable. I don’t know if some may be getting added twice? Perhaps you could do the following:\r\n\r\n1.\tsqlite3 [your forked-daapd database]\r\n2.\trun “select count(*) from inotify;” -> what does that say? should be about the same 10k\r\n3.\trun “select path, count(path) from inotify group by path having (count(path) > 1);” -> should give you dirs that have been duplicates, if any\r\n\r\nIf the problem is duplicates then I think I can fix it. Otherwise the only “solution” I can think of is adding a config option to disable live watching of your library. Well, it would still watch the root, so you can do pairings and so on, but not the subdirs. Then you would need to use the init-rescan feature with cron (see the README) to make forked-daapd update library changes.\r\n"}}