-
Notifications
You must be signed in to change notification settings - Fork 33
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Failure to unmount #61
Comments
Hey @jjn1056.. I just ran through the steps and I'm not able to reproduce on Linux. I'll try to reproduce this on Mac when I get access to one this week. Thanks for reporting this issue. You should certainly be able to halt/up without issues. |
just FYI on my Mac if I manually run |
Thanks. That does look like a smoking gun. |
On Mac, I get a different error when I try and unmount a reverse mount:
but that's not accurate, since the mount is indeed active
|
I wonder what lsof returns for the mounted file? |
@dustymabe so not sure what your plan here is but this is still a huge problem for me. I find basically I have to reboot everytime my computer goes into sleep mode since that breaks the sshfs connection, with your new version. I don't mean to be a jerk here but you decided to rewrite a working plugin in a way that was 100% incompatible with the old, working version (and in the process busting my development workflow) and then you don't seem that interested in long term support of issues resulting from that. Maybe you could republish the old working version of the plugin under a new namespace (vagrant-sshfs-classic)? and then those of us with established code can use that? This has really given open source a black eye at my company. |
@jjn1056 looks like a fairy is going to bring me a mac machine this week for me to hold on to for when issues like this come up. I'll take a look at this issue and try to come to a resolution. |
By the way, you can also easily use the old code by simply installing the earlier version: |
hey @jjn1056 - finally got the mac up and running. I absolutely can't reproduce the issue. We need to start dissecting differences between your setup and mine. I have:
|
@jjn1056 - bump ^^ |
@dustymabe Nope. |
I'm on a mac using the 'reverse' option (I'm mounting a folder on the guest into the host). Here's the problem. If I open a file from my mounted folder, when I do 'halt' on the VM we don't properly unmount.
For example, I open a text file from the mount point into VI (running on my host). I then do vagrant halt. The VM shuts down and the mount seems to disappear, but there running VI process is holding open a file. When I go to vagrant up the mount fails with
vm:
Looks like the old working plugin had some code that killed those running processes:
https://github.com/fabiokr/vagrant-sshfs/blob/master/lib/vagrant-sshfs/builders/host.rb#L10
If I fail to close all the processes I end up have to reboot in order to properly unmount.
The text was updated successfully, but these errors were encountered: