-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Previous Rsync Exclude setting caused duplicate rsync on rsync-auto #4567
Comments
I'm having this issue too. Can't find where the "memory" of the rsync-auto comes form, even after changing the rsynced folders. Have looked into the vm conf files with no success. Would be really nice to be able to do a "rsync-auto --flush-cache" or something similar. |
The memory is stored in, e.g. ./.vagrant/machines/default/virtualbox/synced_folders The cache is read in plugins/synced_folders/rsync/command/rsync_auto.rb line 51 , or, if you follow, in lib/vagrant/action/builtin/mixin_synced_folders.rb lines 200ff. So normally, this should work, and if I understand it correctly, even the rsync-auto invoked by the listener read the cached options... |
additionally, if I remember correctly (and thus perhaps contrary to your after-destroy experience): |
The rsync auto settings ARE cleared after a vagrant destroy. Let's say I initially sync 3 folders with rsync (stated in my vagrantfile), run rsync auto and do some work on my vm: this works fine. If I want to add / remove rsync folders, I would then shut down the box, update the vagrant file and then start it again. However this time if I do rsync-auto, it will still run the original config, not the updated one. Simple rsync (without auto) does work however. Hope this helps understand the issue, I can do some testing if needed. |
I'm having the same problem. Any progress on this bug? |
I can confirm this issue. The solution I found is the following (edit the paths according to your configuration): vagrant halt
rm .vagrant/machines/default/virtualbox/synched_folders
vagrant up |
@thePanz 👍 |
Thanks @thePanz. That works for me too.. |
Thanks I had this problem too. That would be in fact a good thing that the cache be cleared on each vagrant up/reload. |
@thePanz solution is spot on. It was one of those issues that didn't come up again for me once my rsync exclusions stabilized on the symfony2-flavored project I was doing. But, yeah, seems like that file should be rebuilt on up or reload. |
This can be fixed with a |
I had a problem with rsync__exclude producing unexpected results. I noticed in the console log that my rsync_auto was duplicating a previous setting I'd made in VagrantFile. I did a vagrant destroy and a vagrant up, and the duplication went away. The issue looked like the following.
Vagrant 1.6.5
VirtualBox 4.3.16
OSX
The text was updated successfully, but these errors were encountered: