-
Notifications
You must be signed in to change notification settings - Fork 498
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
Windows Server 2008 crashes with BSOD when invoking winfsp_ x64.sys from 'rclone mount' #392
Comments
WinFsp does not support OS'es prior to Windows 7. Windows Server 2008 is based on Vista which is an unsupported OS. I note that I have never tested or even ran WinFsp on a Vista-based OS. Having said that, let me suggest some troubleshooting steps:
|
Hi, I am sorry for not responding for so long. And thank you for paying attention to this issue even though my OS is not officially supported.
luafv 1 135000 0
|
I apologize for the long delay. Unfortunately I do not have time to troubleshoot WinFsp on unsupported OS'es. For this reason I am closing this issue. |
I have mounted several cloud storages as local folders using rclone and its 'mount' command, which on Windows uses winFSP.
These folders were mounted inside of a parent folder which is shared accross the network, so that other devices can access the cloud storages via CIFS/SMB.
The above setup was done on Windows Server 2008 running on a relatively weak machine with 4Gb of memory.
When the mounted folders are accessed from other devices on the network, the server at times (i.e. sometimes immediately, and sometimes once a day) crashes with the blue screen of death.
The crash dump contains information that the culprit process is rclone.exe and the culprit module is winfsp_ x64.sys.
To test it further, I configured the Windows built-in checking utility, 'verifier.exe', to monitor 'winfsp_ x64.sys'. With this monitoring turned on the server crashes a few minutes after reboot, and this time the culprit process is 'explorer.exe', whereas the culprit module is still 'winfsp_ x64.sys'. This is strange, because explorer.exe is not supposed to use winFSP directly. Furthermore, if rclone is not started, the 'winfsp_ x64.sys' driver is not even seen by the verifier. However, this is what I got. Maybe the Windows explorer scans at user login the folders tree of all drives, and this causes the crash, which in this case is not implicitly associated with rclone.
I tried then to reproduce this issue on a more powerful Windows 10 computer, but there it works without problems.
I also tried to reproduce it locally on the server, but with no luck - I successfully open mounted folders locally.
However, when I open a mounted folder from another local computer, the server crashes more often if I have a vpn connection up on that local computer.
I don't know, if Windows Server 2008 architecture differs too much from the Windows 10 with regards to the file system. Probably not.
So I assume this issue is more likely to happen on a slow computer and when the network traffic is more complex than usual and there are more unusual delays in it.
Also it appears to happen when the cloud is scanned for the first time (or at a later time when the local rclone file cache expires) - when the process of opening the mounted folder is quite heavy and may easily take up to 10 seconds.
I don't believe that this issue is totally dependent on winFSP, because otherwise there would have been other mentions of similar problems on the internet.
I also don't believe that rclone by itself can crash the system because it is not working on the system kernel level.
So, the problem is somewhere in between.
Maybe winFPS makes some callbacks into the calling code, which are executed at the kernel level? Or are there any other cases when the system crash may happen because of a unique way of interaction between winFSP and other software?
So far I have no idea how to test it further, neither how to propery log the details.
As for rclone, this issue does not seem to depend on what particular cloud storage I mount. It happens both with Google Drive and with Microsoft OneDrive. So, the problem must be somewhere on a lower level.
By the way, other rclone commands besides 'mount' successfully work with all clouds and transfer hundreds of gigabytes without a problem. Only 'mount' is unsuccessful.
And as I said, the problem may not happen immediately, but if I just leave the server running for a day or two, the first attempt to open the monted folder remotely causes BSOD in 75% of times.
This is the thread on rclone github: https://github.com/rclone/rclone/issues/5570
version of winFSP: 1.9.21096
The text was updated successfully, but these errors were encountered: