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

Unclear error message when sshfs is not found #62

Open
RReverser opened this issue Dec 7, 2016 · 8 comments
Open

Unclear error message when sshfs is not found #62

RReverser opened this issue Dec 7, 2016 · 8 comments

Comments

@RReverser
Copy link

RReverser commented Dec 7, 2016

When trying to change the direction of mount to get client folder in host as per example

override.vm.synced_folder "~/...", "/home/vagrant/...", type: "sshfs", reverse: true

Getting the following error:

==> default: Mounting SSHFS shared folder...
==> default: mounting folder via SSHFS: guestpath:/home/vagrant/... => hostpath:~/...
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
Mounting SSHFS shared folder via reverse SSHFS mount failed. Please
look at the below output from from the processes that were run.

SSHFS command output:

sh: -o: command not found
@dustymabe
Copy link
Owner

it looks like it can't find the sshfs binary as it should have /path/to/sshfs -o. What does which sshfs return?

@RReverser
Copy link
Author

@dustymabe You're right, symlinking fixed the problem, although error message is really not very obvious :) Thanks!

@dustymabe
Copy link
Owner

@RReverser well it would be nice to know where sshfs is on your machine.. I thought we had a better error message for this but I guess we don't. We should though so feel free to re-open this.

@RReverser RReverser reopened this Dec 7, 2016
@RReverser RReverser changed the title Can't reverse-mount from Debian to MacOS Unclear error message when sshfs is not found Dec 7, 2016
@RReverser
Copy link
Author

Reopened with updated title.

@MacDada
Copy link

MacDada commented Dec 1, 2017

I have the same error.

$ which sshfs – nothing

$ sshfs
-bash: sshfs: command not found

I installed the plugin with vagrant plugin install vagrant-sshfs, but I didn't install sshfs separately – should I?

@dustymabe
Copy link
Owner

yes, you have to install sshfs separately

@MacDada
Copy link

MacDada commented Dec 1, 2017

It should be mentioned in the docs then ;)

@dustymabe
Copy link
Owner

Installing sshfs on the host is only needed if you are doing a reverse mount, which isn't the most common use case. It is somewhat mentioned in https://github.com/dustymabe/vagrant-sshfs/blob/master/README.adoc#options-specific-to-reverse-mounting-guesthost-mount. Feel free to open a PR to help clarify things more.

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

3 participants