Can't mount drive after reboot (no friendly ctrl+c shutdown) on Windows

What is the problem you are having with rclone?

After rebooting (without stoping rclone manually) I can't mount my drive anymore

What is your rclone version (output from rclone version)

rclone v1.53.2

  • os/arch: windows/amd64
  • go version: go1.15.2

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10 64bit

Which cloud storage system are you using? (eg Google Drive)

Nextcloud

The command you were trying to run (eg rclone copy /tmp remote:tmp)

set "rclone_config_Home_type=webdav"rclone.exe" "mount" "Home:" "Z:" "--webdav-url=https://domain.tld/remote.php/dav/files/ROOT" "--webdav-vendor=nextcloud" "--webdav-user=ROOT" "--webdav-pass=********" "--vfs-cache-mode=writes" "--fuse-flag" "--VolumePrefix=Home" "--attr-timeout" "8700h" "--dir-cache-time" "8760h" "-vv"

The rclone config contents with secrets removed.

Already inside command

A log from the command with the -vv flag

2020/11/29 23:55:38 DEBUG : rclone: Version "v1.53.2" starting with parameters ["C:\\rclone\\rclone.exe" "mount" "Home:" "Z:" "--webdav-url=https://domain.tld/remote.php/dav/files/ROOT" "--webdav-vendor=nextcloud" "--webdav-user=ROOT" "--webdav-pass=*************" "--vfs-cache-mode=writes" "--fuse-flag" "--VolumePrefix=Home" "--attr-timeout" "8700h" "--dir-cache-time" "8760h" "-vv"]
2020/11/29 23:55:38 DEBUG : Creating backend with remote "Home:"
2020/11/29 23:55:38 NOTICE: Config file "C:\\Users\\ROOT\\.config\\rclone\\rclone.conf" not found - using defaults
2020/11/29 23:55:38 INFO  : webdav root '': poll-interval is not supported by this remote
2020/11/29 23:55:38 DEBUG : vfs cache: root is "\\\\?\\C:\\Users\\ROOT\\AppData\\Local\\rclone\\vfs\\Home"
2020/11/29 23:55:38 DEBUG : vfs cache: metadata root is "\\\\?\\C:\\Users\\ROOT\\AppData\\Local\\rclone\\vfs\\Home"
2020/11/29 23:55:38 DEBUG : Creating backend with remote "\\\\?\\C:\\Users\\ROOT\\AppData\\Local\\rclone\\vfs\\Home"
2020/11/29 23:55:38 DEBUG : fs cache: renaming cache item "\\\\?\\C:\\Users\\ROOT\\AppData\\Local\\rclone\\vfs\\Home" to be canonical "//?/C:/Users/ROOT/AppData/Local/rclone/vfs/Home"
2020/11/29 23:55:38 DEBUG : fs cache: switching user supplied name "\\\\?\\C:\\Users\\ROOT\\AppData\\Local\\rclone\\vfs\\Home" for canonical name "//?/C:/Users/ROOT/AppData/Local/rclone/vfs/Home"
2020/11/29 23:55:38 DEBUG : webdav root '': Mounting on "Z:"
2020/11/29 23:55:38 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/11/29 23:55:38 DEBUG : webdav root '': Mounting with options: ["-o" "fsname=Home:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=3.132e+07" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=Home" "--VolumePrefix=Home"]
2020/11/29 23:55:38 DEBUG : webdav root '': Init:
2020/11/29 23:55:38 DEBUG : webdav root '': >Init:
2020/11/29 23:55:38 DEBUG : /: Statfs:
2020/11/29 23:55:39 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2020/11/29 23:55:39 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/11/29 23:55:39 DEBUG : /: >Getattr: errc=0
2020/11/29 23:55:39 DEBUG : /: Readlink:
2020/11/29 23:55:39 DEBUG : /: >Readlink: linkPath="", errc=-40
Cannot create WinFsp-FUSE file system.
2020/11/29 23:55:39 DEBUG : webdav root '': Destroy:
2020/11/29 23:55:39 DEBUG : webdav root '': >Destroy:
The service rclone has failed to start (Status=c000000d).
2020/11/29 23:55:39 ERROR : webdav root '': Mount failed
2020/11/29 23:55:49 ERROR : mountpoint "Z:" didn't became available on mount - continuing anyway
2020/11/29 23:55:49 DEBUG : Calling host.Unmount
2020/11/29 23:55:49 DEBUG : host.Unmount failed
2020/11/29 23:55:49 DEBUG : vfs cache: cleaner exiting
2020/11/29 23:55:49 Fatal error: failed to umount FUSE fs: mount failed

hello,

not sure this is a rclone error.
as the first error in the log is Cannot create WinFsp-FUSE file system.

after reboot, how is the mount started, as a windows service, at system boot?
if so, make sure the winfsp service is running before starting the rclone service.

what version of winfsp is installed?

once windows is up and running, if you manually start the rclone mount command from the command lone, does it work?

never had a problem with re-starting a mount after reboot.

hey there, I installed it as a Windows Service but forgot to change th 1.5 seconds to 10 seconds for stopping the service -> now I disabled autostart of the service and tried to start it manually after about a minute after boot -> doesn't work. And if I run it manually it results in the same error too.

Update.. I was able to reproduce it on another computer (vm this time), resulting in the same error after rebooting.

About WinFsp, do you (or someone else..) know how to debug this? like where does WinFsp write files to? Because I already uinstalled and re-installed it on both pc's now, but the error doesn't disappear.

Update2:
I just found anothe ruser with a similar problem, but somehow he disappeared:


I just tested it again on a new win10 pc, but this time it doesn't work even the first time. But what I can assure is that SSHFS-Win works. So this tends to be a problem with rclone itself (in the way I try to use it).

I found my error / the solution for it:

Volume-Prefix was the problem.. It needs a "Server"-Variable like this:
\Server\Share

so this won't work:
Share
//
\Share

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.