Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
`rclone mount` configured by env variables uses invalid VFS cache dir on Windows #4544
Comments
Does this work as a workaround (from the example in the docs @ https://rclone.org/docs/#config-file): $Env:RCLONE_CONFIG_MYSEAFILE_TYPE="seafile"
$Env:RCLONE_CONFIG_MYSEAFILE_USER="me@example.com"
$Env:RCLONE_CONFIG_MYSEAFILE_PASS="mypassword"
$Env:RCLONE_CONFIG_MYSEAFILE_LIBRARY="mylibrary"
rclone mount myseafile: R: --vfs-cache-mode writes |
Ah, this is unfortunate! @darthShadow 's workaround should get you going though while we work on a fix. |
Thanks! I have tested the workaround @darthShadow, and it works very well. |
If someone wants to have a go at a fix, it should be easy The problem lines are here Lines 84 to 86 in bfcd411
Probably what we need to do is get Line 82 in bfcd411 Though it might be better to substitute the |
What is the problem you are having with rclone?
Using
rclone mount
with a non-persistent configuration (all settings given by environment variables) & VFS caching enabled attempts to use a VFS cache dir with illegal characters (:
) on Windows.What is your rclone version (output from
rclone version
)Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows Server Core 2019 LTSC (64-bit) Docker Container (but I suspect the problem appears on all Windows versions)
Which cloud storage system are you using? (eg Google Drive)
Seafile (But I suspect the problem appears with all backends)
The command you were trying to run (eg
rclone copy /tmp remote:tmp
)A log from the command
As soon as attempting to write a file to the mounted drive:
Workaround
Create a temporary config.
Using
--cache-dir
does not help, since rclone always appendsvfs\:seafile
to the custom directory path.