{"action":"created","issue":{"url":"https://api.github.com/repos/paliarush/magento2-vagrant-for-developers/issues/10","repository_url":"https://api.github.com/repos/paliarush/magento2-vagrant-for-developers","labels_url":"https://api.github.com/repos/paliarush/magento2-vagrant-for-developers/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/paliarush/magento2-vagrant-for-developers/issues/10/comments","events_url":"https://api.github.com/repos/paliarush/magento2-vagrant-for-developers/issues/10/events","html_url":"https://github.com/paliarush/magento2-vagrant-for-developers/issues/10","id":145540268,"number":10,"title":"Magento compiler fails on Windows hosts","user":{"login":"paliarush","id":10828073,"avatar_url":"https://avatars.githubusercontent.com/u/10828073?v=3","gravatar_id":"","url":"https://api.github.com/users/paliarush","html_url":"https://github.com/paliarush","followers_url":"https://api.github.com/users/paliarush/followers","following_url":"https://api.github.com/users/paliarush/following{/other_user}","gists_url":"https://api.github.com/users/paliarush/gists{/gist_id}","starred_url":"https://api.github.com/users/paliarush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paliarush/subscriptions","organizations_url":"https://api.github.com/users/paliarush/orgs","repos_url":"https://api.github.com/users/paliarush/repos","events_url":"https://api.github.com/users/paliarush/events{/privacy}","received_events_url":"https://api.github.com/users/paliarush/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paliarush/magento2-vagrant-for-developers/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-03T21:04:07Z","updated_at":"2016-04-26T17:22:21Z","closed_at":null,"body":"Compiler tries to remove `var/generation` directory, which is mounted as shared folder on Windows hosts, as a result the following error occurs:\r\n\r\n> magento setup:di:compile The directory \"/var/www/magento2ce/var/generation\" cannot be deleted Warning!rmdir(/var/www/magento2ce/var/generation): Device or resource busy#0 /var/www/magento2ce/setup/src/Magento/Setup/Console/CompilerPreparation.php(73): Magento\\Framework\\Filesystem\\Driver\\File->deleteDirectory('/var/www/magent...')\r\n\r\nUntil this is fixed, workaround is to comment out the following line in `Vagrantfile` if you need to run compiler:\r\n`config.vm.synced_folder host_magento_dir + '/var/generation', guest_magento_dir + '/var/generation', create: true`\r\n\r\nThe solution might be to use the whole `var` directory as shared folder instead of `var/generation`. However need to make sure that performance is not degrading in this case."},"comment":{"url":"https://api.github.com/repos/paliarush/magento2-vagrant-for-developers/issues/comments/214817812","html_url":"https://github.com/paliarush/magento2-vagrant-for-developers/issues/10#issuecomment-214817812","issue_url":"https://api.github.com/repos/paliarush/magento2-vagrant-for-developers/issues/10","id":214817812,"user":{"login":"paliarush","id":10828073,"avatar_url":"https://avatars.githubusercontent.com/u/10828073?v=3","gravatar_id":"","url":"https://api.github.com/users/paliarush","html_url":"https://github.com/paliarush","followers_url":"https://api.github.com/users/paliarush/followers","following_url":"https://api.github.com/users/paliarush/following{/other_user}","gists_url":"https://api.github.com/users/paliarush/gists{/gist_id}","starred_url":"https://api.github.com/users/paliarush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paliarush/subscriptions","organizations_url":"https://api.github.com/users/paliarush/orgs","repos_url":"https://api.github.com/users/paliarush/repos","events_url":"https://api.github.com/users/paliarush/events{/privacy}","received_events_url":"https://api.github.com/users/paliarush/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T17:22:21Z","updated_at":"2016-04-26T17:22:21Z","body":"Fixed in https://github.com/paliarush/magento2-vagrant-for-developers/commit/3d3b77dfae42c1083c446b410f70c8dc1a63c2c9"}}