{"action":"created","issue":{"url":"https://api.github.com/repos/wplib/wplib-box/issues/63","repository_url":"https://api.github.com/repos/wplib/wplib-box","labels_url":"https://api.github.com/repos/wplib/wplib-box/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/wplib/wplib-box/issues/63/comments","events_url":"https://api.github.com/repos/wplib/wplib-box/issues/63/events","html_url":"https://github.com/wplib/wplib-box/issues/63","id":151907220,"number":63,"title":"Adding rsync to synced_folder option generates error due to existing symlink","user":{"login":"andreasnrb","id":123857,"avatar_url":"https://avatars.githubusercontent.com/u/123857?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasnrb","html_url":"https://github.com/andreasnrb","followers_url":"https://api.github.com/users/andreasnrb/followers","following_url":"https://api.github.com/users/andreasnrb/following{/other_user}","gists_url":"https://api.github.com/users/andreasnrb/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasnrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasnrb/subscriptions","organizations_url":"https://api.github.com/users/andreasnrb/orgs","repos_url":"https://api.github.com/users/andreasnrb/repos","events_url":"https://api.github.com/users/andreasnrb/events{/privacy}","received_events_url":"https://api.github.com/users/andreasnrb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-29T16:09:19Z","updated_at":"2016-04-30T22:32:27Z","closed_at":"2016-04-30T22:32:27Z","body":"Since I use symlink folders insidre the synced_folder I need to run rsync there. Doing that however results in an error due to the existing vagrant symlink to object-cache.php.\r\n**option**\r\n```\r\n    config.vm.synced_folder \"www\", \"/var/www\", type: \"rsync\", rsync__args: [\"--copy-links\",\"--verbose\", \"--archive\", \"--delete\", \"-z\"]\r\n```\r\n**error**\r\n```\r\nThere was an error when attempting to rsync a synced folder.\r\nPlease inspect the error message below for more info.\r\n\r\nHost path: [...]/www/\r\nGuest path: /var/www\r\nCommand: rsync --copy-links --verbose --archive --delete -z --no-owner --no-group --rsync-path sudo rsync -e ssh -p 2222 -o ControlMaster=auto -o ControlPath=/tmp/ssh.387 -o ControlPersist=10m -o StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i '/home/andreas/.vagrant.d/insecure_private_key' --exclude .vagrant/ [...]/www/ vagrant@127.0.0.1:/var/www\r\nError: Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.\r\nsymlink has no referent: \"[...]/www/content/object-cache.php\"\r\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]\r\n"},"comment":{"url":"https://api.github.com/repos/wplib/wplib-box/issues/comments/215999982","html_url":"https://github.com/wplib/wplib-box/issues/63#issuecomment-215999982","issue_url":"https://api.github.com/repos/wplib/wplib-box/issues/63","id":215999982,"user":{"login":"andreasnrb","id":123857,"avatar_url":"https://avatars.githubusercontent.com/u/123857?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasnrb","html_url":"https://github.com/andreasnrb","followers_url":"https://api.github.com/users/andreasnrb/followers","following_url":"https://api.github.com/users/andreasnrb/following{/other_user}","gists_url":"https://api.github.com/users/andreasnrb/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasnrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasnrb/subscriptions","organizations_url":"https://api.github.com/users/andreasnrb/orgs","repos_url":"https://api.github.com/users/andreasnrb/repos","events_url":"https://api.github.com/users/andreasnrb/events{/privacy}","received_events_url":"https://api.github.com/users/andreasnrb/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T22:32:27Z","updated_at":"2016-04-30T22:32:27Z","body":"Issue I had was solved by creating the object-cache.php symlink in after-composer.php instead of in provision.sh. Can't be default because then the symlink is not available in the VM. Other solution is to use [NFS](https://www.vagrantup.com/docs/synced-folders/nfs.html) for synced folder on *nix system. I wont be using rsync for my setup though since the fileupdates have to long delay. I suggest NFS or VM specific symlinks for people wanting to have symlinks on files they are writing in.\r\nClosing this."}}