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

Cannot create fs: unspecified error #477

Open
ConnorMcF opened this issue Dec 14, 2022 · 6 comments
Open

Cannot create fs: unspecified error #477

ConnorMcF opened this issue Dec 14, 2022 · 6 comments

Comments

@ConnorMcF
Copy link

ConnorMcF commented Dec 14, 2022

WinFsp seems to fail to create a filesystem with a vague error.

How to Reproduce

Interacting with anything that uses WinFsp fails.

rclone.exe mount user@host X:
2022/12/14 20:36:57 NOTICE: Config file "C:\\Users\\XXX\\AppData\\Roaming\\rclone\\rclone.conf" not found - using defaults
Cannot create WinFsp-FUSE file system: unspecified error.
2022/12/14 20:36:57 ERROR : Local file system at //?/C:/Users/XXX/Downloads/rclone-v1.60.1-windows-amd64/rclone-v1.60.1-windows-amd64/user@host: Mount failed
2022/12/14 20:36:57 Fatal error: failed to mount FUSE fs: mount stopped before calling Init: mount failed
net use X: \\sshfs\user@host
The password is invalid for \\sshfs\user@host.

Enter the username for 'sshfs': user
Enter the password for sshfs:
System error 67 has occurred.

The network name cannot be found.
net use X: \\memfs64\test
System error 67 has occurred.

The network name cannot be found.

(memfs64 did not generate any event logs)

The event log contains the following logs when trying to connect via net use or rclone:

INFO   launcher-x64: create sshfs\user@host = 0
ERROR  sshfs: Cannot create WinFsp-FUSE file system: unspecified error.
INFO   launcher-x64: terminated sshfs\user@host

Behaviors

WinFsp should be expected to create the filesystem.

Environment

  • OS version and build: 10.0.19044 N/A Build 19044
  • WinFsp version and build: 2022.2 1.12.22301
  • SSHFS version: 2021 3.5.20357
  • diag.bat output

Thanks!

@billziss-gh
Copy link
Collaborator

Thanks for the report.

The diag.bat output shows that the WinFsp driver cannot be started which is rather weird. The relevant output is:

SERVICE_NAME: WinFsp
        TYPE               : 2  FILE_SYSTEM_DRIVER
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 5  (0x5)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

The WIN32_EXIT_CODE is 5 which means ERROR_ACCESS_DENIED. This is a weird error code, because the WinFsp installation sets things up so that everyone should be able to start the driver.

What account are you using to start file systems? Also is it a possibility that some AntiVirus has quarantined WinFsp and does not allow it to run?

@ConnorMcF
Copy link
Author

I've tried both just using my regular user account as well elevating to run as administrator and both seem to have the same result.

There shouldn't be anything interfering with WinFsp as far as I'm aware, the only AV product installed is Malwarebytes though I don't believe that it does anything 'active'.

@billziss-gh
Copy link
Collaborator

I believe I have heard Malwarebytes causing problems for WinFsp before, although I cannot remember the specifics.

@haovic
Copy link

haovic commented Jan 20, 2023

Also having the exact same issue trying to get rclone mount working with WinFsp. Am seeing the same output from diag.bat indicating that the WinFsp driver can't be started. I tried manually starting the service with net start WinFsp but that gave

System error 1450 has occurred.

Insufficient system resources exist to complete the requested service.

If that provides some insight into what's going wrong.

Are there any other steps we can take to try and get things to work?

@billziss-gh
Copy link
Collaborator

@haovic do you also have Malwarebytes installed?

@haovic
Copy link

haovic commented Jan 20, 2023

No, I don't have any antivirus installed besides the basic windows defender that comes with windows. I'm kind of curious why the logs show an access denied error but when trying to start the service manually there is a not enough resource error though 🤔

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