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

How to debug "Cannot create WinFsp-FUSE file system." #229

Closed
OskarAtGitHub opened this issue Apr 25, 2019 · 8 comments
Closed

How to debug "Cannot create WinFsp-FUSE file system." #229

OskarAtGitHub opened this issue Apr 25, 2019 · 8 comments

Comments

@OskarAtGitHub
Copy link

OskarAtGitHub commented Apr 25, 2019

I have a

cd C:\Program Files\SSHFS-Win\bin\
start sshfs -o create_umask=007,uid=-1,gid=-1,cache=yes,follow_symlinks,compression=no -o ssh_command="/bin/ssh.exe"....

working ok on two windows 7 pro machines.
However when running the same command on another machine, adding "-d", I get a
Cannot create WinFsp-FUSE file system.
-error. And the sshfs service fails to start.
I tried installing the newest .NET framework, but had no effect on the situation. This is a Win7 home premium install.

Any ideas on how to figure out what is causing winfsp to fail?

@OskarAtGitHub OskarAtGitHub changed the title How to debug "Cannot creat WinFsp-FUSE file system." How to debug "Cannot create WinFsp-FUSE file system." Apr 25, 2019
@billziss-gh
Copy link
Collaborator

billziss-gh commented Apr 25, 2019

A couple of questions:

  • What is the full error message that you are seeing? Is it only cannot create WinFsp-FUSE file system or is there an explanatory message after it?
  • What is the full command line of sshfs? (You can black out privacy-sensitive parts with xxxx or something.)

BTW, you do not need the .NET framework for WinFsp unless you have a .NET file system.

@OskarAtGitHub
Copy link
Author

OskarAtGitHub commented Apr 25, 2019

* What is the full error message that you are seeing? Is it only `cannot create WinFsp-FUSE file system` or is there an explanatory message after it?

That's the full message. (next line contains sshfs failed)

* What is the full command line of sshfs? (You can black out privacy-sensitive parts with `xxxx` or something.)

start sshfs -o create_umask=007,uid=-1,gid=-1,cache=yes,follow_symlinks,compression=no -o ssh_command="/bin/ssh.exe" XuserX@aaa.bbb.ccc.ddd:/dir1/dir2/dir3 Z:
This exact same command works on two other machines (they have windows 7 pro though. The problematic one has a win7 home premium. If that could influence it at all)

BTW, you do not need the .NET framework for WinFsp unless you have a .NET file system.

Ok!

@billziss-gh
Copy link
Collaborator

I am looking at the code here and the only reason that you would get the message without an additional explanation is if you run out of memory (which of course sounds weird).

Do you have Visual Studio or other debugger on the machine that is failing? If yes, I could give you some pointers on how to debug this with SSHFS.

@OskarAtGitHub
Copy link
Author

OskarAtGitHub commented Apr 25, 2019

It shouldn't be running out of RAM during this test. Almost nothing else running.
Ok, but sounds like I might try a fresh windows install. Its had a long life with a large amount of programs installed. But still strange!

@billziss-gh
Copy link
Collaborator

Yes, the memory problem sounds very unlikely, especially because the amounts of memory allocated are miniscule. I suspect that I am misdiagnosing the actual reason, perhaps only debugging the code on your machine would give us the real answer.

@OskarAtGitHub
Copy link
Author

Re-thinking this a little.
Is it possible that some anti-virus thing or other program is causing winfsp to crash/close before it outputs anything else?
Don't get any notifications though, so a anti-virus program might be unlikely.
This problem computer did come pre-installed with windows and some anti-virus things. So who knows.

@billziss-gh
Copy link
Collaborator

I doubt that it is the anti-virus because there are no file system interactions if no explanatory message is printed.

Basically the code allocates some memory and if that fails it prints the message you saw. Once it calls FspFileSystemPreflight then it does do some file system interactions, but it also prints an explanatory message on failure, which you did not see.

@mhogomchungu
Copy link

mhogomchungu commented May 4, 2019

SiriKali backends produce that error when winfsp is not installed.

Can the OP confirm that winfsp is installed in the affected computer.

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

No branches or pull requests

3 participants