Comments (6)
After some test, I find the bare minimum setup to reproduce this bug is
md Test
rclone.exe --local-encoding None mount --vfs-cache-mode=writes ./Test *
from rclone.
Does the file foo:bar.txt
arrive on the destination OK?
Apparently it is uploaded correctly according to the log
2024/04/13 11:05:58 DEBUG : foo:bar.txt: vfs cache: starting upload
2024/04/13 11:05:58 INFO : foo:bar.txt: vfs cache: upload succeeded try #1
Is it just that this file is no longer visible after it is uploaded?
from rclone.
Does the file
foo:bar.txt
arrive on the destination OK?Apparently it is uploaded correctly according to the log
2024/04/13 11:05:58 DEBUG : foo:bar.txt: vfs cache: starting upload 2024/04/13 11:05:58 INFO : foo:bar.txt: vfs cache: upload succeeded try #1
Is it just that this file is no longer visible after it is uploaded?
No, I've checked on the Cloudflare web console, there is no foo:bar.txt
in the bucket.
And it doesn't matter if you use a remote backend or a local backend.
Even if you mount a local folder as a vfs, it doesn't write the file as well.
from rclone.
If I look in the VFS cache on windows I see this
Directory of C:\Users\Dev\AppData\Local\rclone\vfs\local{sb0-v}\?\Z:\go\src\github.com\rclone\rclone
15/04/2024 16:43 <DIR> .
15/04/2024 16:43 <DIR> ..
15/04/2024 16:43 8 foo‛:bar.txt
1 File(s) 8 bytes
2 Dir(s) 4,666,073,088 bytes free
And I see this in the log
2024/04/15 16:43:49 ERROR : foo:bar.txt: vfs cache: failed to upload try #1, will retry in 10s: vfs cache: failed to find cache file: CreateFile \\?\C:\Users\Dev\AppData\Local\rclone\vfs\local{sb0-v}\?\Z:\go\src\github.com\rclone\rclone\foo:bar.txt: The filename, directory name, or volume label syntax is incorrect.
2024/04/15 16:43:59 ERROR : foo:bar.txt: vfs cache: failed to upload try #2, will retry in 20s: vfs cache: failed to find cache file: CreateFile \\?\C:\Users\Dev\AppData\Local\rclone\vfs\local{sb0-v}\?\Z:\go\src\github.com\rclone\rclone\foo:bar.txt: The filename, directory name, or volume label syntax is incorrect.
So
- the file is still safe in the VFS cache
- it has a funny name with a
‛
before the:
despite encoding being none. - the
--local-encoding none
is also affecting the VFS cache which it maybe shouldn't be.
I think that makes this issue related to
At minimum we need to make encoding none
disable all encodings which it clearly isn't at the moment.
from rclone.
There are actually two problems.
The first is the same as #7456 and #6098: None
encoding does not disable encoding.
It can be mitigated with the trick mentioned in #7456 .
And I have written a patch which I will open a pr later.
But it will still fail.
The problem is when creating temp file, it will use OS encoding (hardcoded), but try to decode it with encoding for the local filesystem (--local-encoding
) when copying it to remote.
(technical detail: toOSPath
for creating and localPath
(inside local backend) for copy)
I have no idea how to unify them.
from rclone.
I have opened a pr that should resolve the original problem.
But I realized the "bare minimum setup" actually reveals the third problem:
The case when there is some special characters in relativeDirOSPath
, the name of the cache directory.
But usually it is the name of the backend, which will not have some special characters.
In the "bare minimum setup", it is something like local{1pYER}\?\C:\xxx\yyy\zzz
from rclone.
Related Issues (20)
- Support blake3 / b3sum as hash HOT 5
- rclone FUSE mount does not reliably unmount when operations are in flight, leaving broken mount behind HOT 2
- mailru: change default pacer to reduce transactions per second HOT 9
- Google Drive: Rclone rewrites custom-set description on file rename in mounted drive HOT 1
- bisync: coloring in the logs not obeying --color or redirection HOT 1
- Provide `rclone/setup-rclone` action to setup rclone on the runner HOT 3
- Issue with rcolne in gdrive backup HOT 1
- Add support for scloud (SkyCloud) by API HOT 1
- rclone serve: support systemd socket activation HOT 1
- copy local files with --links, directories and links are created with wrong metadata(mod uid gid) HOT 1
- copy local files with --links ,directories and links are created with wrong metadata(mod uid gid)
- I encountered several errors while uploading to the PIKPAK cloud drive (investigated for over a week, identified the issues, hoping to assist in fixing). HOT 27
- cleanup: onedrive: delete version with newest modified date
- Backup dir cache from ram to disk and reload into ram on reboot
- Autodetect terminal width or add option to --progress to specify width HOT 2
- uloz backend, copyto doesn't work (Error 60001 (422): Validation failed) HOT 8
- Web Dav mount files appear as 1999-09-04 date HOT 1
- armv5tejl arch Illegal instruction HOT 3
- Options recover and max-lock missing in cmd/bisync/rc.go HOT 3
- Cannot access SMB share via Kerberos HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rclone.