Closed oker1 closed 10 years ago
@oker1 hum... I've seen that before, are you able to consistently reproduce this? I haven't been able to nail down the issue so far =/
I'll have to find a way to make a vm unresponsive. If you try to run commands on ssh that can be a problem in this case.
@oker1 even though I experienced this before, it's been a while since I last seen this. I'll pay more attention if / when it happens again :-)
@oker1 I found a way to reproduce using the virtualbox provider. you can SSH into the machine, sudo halt
it from there and then try a vagrant halt -f
from the outside. VAGRANT_LOG=debug
shows me that the plugin is trying to SSH into the machine to remove the symlinks. Maybe we need to check if the machine is SSHable on https://github.com/fgrehm/vagrant-cachier/blob/master/lib/vagrant-cachier/action.rb#L63. This should do the trick ;)
vagrant-omnibus
does it like this:
https://github.com/schisamo/vagrant-omnibus/blob/master/lib/vagrant-omnibus/action/is_running_or_active.rb
@patcon thats what we are doing here :-)
Hi, I have the same issue now. Is there a workaround in the meanwhile ? Because for me the only options available seem to be "vagrant destroy" or reboot the host machine, right ?
Sorry, I completely forgot about this. I haven't experienced that in a loooong time but a potential fix is coming along with GH-46 and I'd love some feedback about it :)
@dirkaholic if you need help installing the plugin from sources to try it out please LMK
this problem is still there with the latest stable release of vagrant. Cannot halt the machine with vagrant halt (nor with -f). Says "Removing cache buckets symlinks...". Status of the machine keeps as "running".
The most sorry part about this is, that if I were to kill the process or force the stop in virtualbox gui. vagrant would never start again afterwards for this machine (and/or it would end up with a corrupt virtual drive).
I have spent weeks with this virtualisation "solution", nothing but headaches (sorry for the bad mood here)
@witwit tks for the heads up, I'll try to have a look at it before cutting the next release
Is this still an issue for someone? I can't reproduce this anymore :-(
Folks, this has been fixed for a long time now, here's the code that takes care of it: https://github.com/fgrehm/vagrant-cachier/blob/2c51c7e636a031fcbe23a89b87567d6271016d86/lib/vagrant-cachier/action/clean.rb#L30-L50
I can't reproduce it using the instructions from https://github.com/fgrehm/vagrant-cachier/issues/8#issuecomment-19299046, so if someone else is still being hit by this, please open up a new issue with the new steps to reproduce it.
If the VM hangs, and you try to halt it with -f, the command stalls at '[default] Removing cache buckets symlinks...'.