Skip to content
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

Error when mounting directory #24

Open
r8or0pz opened this issue Jul 11, 2014 · 10 comments
Open

Error when mounting directory #24

r8or0pz opened this issue Jul 11, 2014 · 10 comments

Comments

@r8or0pz
Copy link

r8or0pz commented Jul 11, 2014

I'm trying to mount the directory from guest, but keep having this error:

developer-rsync: Password for roman@10.0.2.2: ==> developer-rsync: Error when mounting /opt/webappsto/var/www vagrant-sshfs failed and couldn't proceed

If I ssh to the guest, I can ssh to host and the directory can also be mounted with sshfs.
I can see IdentityFile option is here:

`#{sshfs_bin} -p #{port} #{username}@#{host}:#{check_src!(src)} #{check_target!(target)} -o IdentityFile=#{private_key}`

But how to use it? I want to try connecting with RSA key.

@r8or0pz
Copy link
Author

r8or0pz commented Jul 12, 2014

It happens because there /var/www is not created yet. How to let the plugin to be run when provisioning is over?

@fabiokr
Copy link
Owner

fabiokr commented Jul 12, 2014

This is the same as #22. I'm investigating a way to do that with Vagrant. For now, a solution is to disable vagrant-sshfs on provision and manually run the command after the folder gets created.

@martinambrus
Copy link

this is strange, I'm experiencing the same issue but only since I upgraded to Vagrant 1.6.3 - it worked before for me... perhaps something in Vagrant itself changed? there has to be a way to run this after provisioning...

@r8or0pz
Copy link
Author

r8or0pz commented Jul 23, 2014

how do you mount it?
from host or from guest?

On Wed, Jul 23, 2014 at 7:06 PM, Martin Ambrus notifications@github.com
wrote:

this is strange, I'm experiencing the same issue but only since I upgraded
to Vagrant 1.6.3 - it worked before for me... perhaps something in Vagrant
itself changed?


Reply to this email directly or view it on GitHub
#24 (comment)
.

@martinambrus
Copy link

oh, I misread your post - thought you're having difficulty mounting from host, which is what I'm doing with the same result

the thing is I'm also using Puppet as #22 suggests to provision my machine but all that executes in a single bootstrap.sh file and I'd expect sshfs to kick in only after that... however, the order seems to be the other way around since Vagrant 1.6.3 - sshfs seems to get mounted before provisioning...

@martinambrus
Copy link

I can now confirm that 1.6.3 does sshfs first, only then starts provisioning, while 1.5.1 still works as expected (provisioning first, then sshfs - it's set up in the Vagrantfile in this order as well)

@r8or0pz
Copy link
Author

r8or0pz commented Jul 23, 2014

forget about mounting it from host - it bumps up response time.
what I do now, just mount it manually with the command like this:
https://gist.github.com/lngphp/2fcd529efe1aa1d53197

On Wed, Jul 23, 2014 at 9:31 PM, Martin Ambrus notifications@github.com
wrote:

I can now confirm that 1.6.3 does sshfs first, only then starts
provisioning, while 1.5.1 still works as expected (provisioning first, then
sshfs - it's set up in the Vagrantfile in this order as well)


Reply to this email directly or view it on GitHub
#24 (comment)
.

@martinambrus
Copy link

thanks for the tip :)

@jmverges
Copy link

+1 if it could be fixed

@fabiokr
Copy link
Owner

fabiokr commented Dec 9, 2014

I'm not using the plugin much myself lately, if anyone wants to help on that I'll be happy to accept a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants