Create a remote on the fly with the flag "--vfs-cache-mode writes" encountered an error

What is the problem you are having with rclone?

I was trying to create a s3 remote on the fly and mount to an unused drive letter A:.
Everything was fine when I didn't add the flag --vfs-cache-mode writes.

However, after I added the flag, I encountered the following error.

2020/10/30 10:45:38 ERROR : Error traversing cache "C:\\Users\\user\\AppData\\Local\\rclone\\vfs\\:s3": CreateFile C:\Users\user\AppData\Local\rclone\vfs\:s3: The filename, directory name, or volume label syntax is incorrect.

What is your rclone version (output from rclone version)

rclone v1.52.3

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

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

Windows 10, 64 bit

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

S3

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

rclone mount :s3:/ A: --s3-access-key-id ***** --s3-secret-access-key ***** --s3-endpoint 127.0.0.1 --no-check-certificate --vfs-cache-mode writes

The rclone config contents with secrets removed.

I create the remote on the fly according to https://rclone.org/docs/#backend-path-to-dir
So there is no rclone.conf.

A log from the command with the -vv flag

2020/10/30 10:43:01 DEBUG : rclone: Version "v1.52.3" starting with parameters ["rclone" "mount" ":s3:/" "A:" "--s3-access-key-id" "*****" "--s3-secret-access-key" "*****" "--s3-endpoint" "127.0.0.1" "--no-check-certificate" "--vfs-cache-mode" "writes" "-vv"]
2020/10/30 10:43:01 DEBUG : Using config file from "C:\\Users\\user\\.config\\rclone\\rclone.conf"
2020/10/30 10:43:01 DEBUG : fs cache: renaming cache item ":s3:/" to be canonical ":s3:"
2020/10/30 10:43:01 DEBUG : S3 root: Mounting on "A:"
2020/10/30 10:43:01 INFO  : S3 root: poll-interval is not supported by this remote
2020/10/30 10:43:01 DEBUG : vfs cache root is "C:\\Users\\user\\AppData\\Local\\rclone\\vfs\\:s3"
2020/10/30 10:43:01 DEBUG : fs cache: renaming cache item "C:\\Users\\user\\AppData\\Local\\rclone\\vfs\\:s3" to be canonical "//?/C:/Users/user/AppData/Local/rclone/vfs/:s3"
2020/10/30 10:43:01 DEBUG : Adding path "vfs/forget" to remote control registry
2020/10/30 10:43:01 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/10/30 10:43:01 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/10/30 10:43:01 DEBUG : S3 root: Mounting with options: ["-o" "fsname=:s3:" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=s3"]
2020/10/30 10:43:01 ERROR : Error traversing cache "C:\\Users\\user\\AppData\\Local\\rclone\\vfs\\:s3": CreateFile C:\Users\user\AppData\Local\rclone\vfs\:s3: The filename, directory name, or volume label syntax is incorrect.
2020/10/30 10:43:01 INFO  : Cleaned the cache: objects 0 (was 0), total size 0 (was 0)
2020/10/30 10:43:01 DEBUG : S3 root: Init:
2020/10/30 10:43:01 DEBUG : S3 root: >Init:
2020/10/30 10:43:01 DEBUG : /: Statfs:
2020/10/30 10:43:01 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/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Readlink:
2020/10/30 10:43:01 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/10/30 10:43:01 DEBUG : /: Statfs:
2020/10/30 10:43:01 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/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x0
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x0
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x0
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x0
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x1
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x1
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x1
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x1
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x0
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x0
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x1
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x1
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x1
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x1
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x0
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/10/30 10:43:01 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:01 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:01 DEBUG : /: Opendir:
2020/10/30 10:43:01 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:01 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:01 DEBUG : /: >Opendir: errc=0, fh=0x1
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x1
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:01 DEBUG : /: Releasedir: fh=0x0
2020/10/30 10:43:01 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:04 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/10/30 10:43:05 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/10/30 10:43:05 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/10/30 10:43:05 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/10/30 10:43:05 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/10/30 10:43:05 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/10/30 10:43:05 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /autorun.inf: >Getattr: errc=-2
2020/10/30 10:43:05 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:05 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:05 DEBUG : /: Opendir:
2020/10/30 10:43:05 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:05 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:05 DEBUG : /: >Opendir: errc=0, fh=0x0
2020/10/30 10:43:05 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /: >Getattr: errc=0
2020/10/30 10:43:05 DEBUG : /: Opendir:
2020/10/30 10:43:05 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2020/10/30 10:43:05 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2020/10/30 10:43:05 DEBUG : /: >Opendir: errc=0, fh=0x1
2020/10/30 10:43:05 DEBUG : /: Releasedir: fh=0x1
2020/10/30 10:43:05 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:05 DEBUG : /: Releasedir: fh=0x0
2020/10/30 10:43:05 DEBUG : /: >Releasedir: errc=0
2020/10/30 10:43:05 DEBUG : /AutoRun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2020/10/30 10:43:05 DEBUG : /AutoRun.inf: >Getattr: errc=-2

Known issue:

Thank you!

Looking forward to seeing this bug is fixed in 1.54 ^^

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