(First off, I only just started using rclone yesterday just after I signed up for BackBlaze B2 storage for my FreeNAS backups and it’s simply amazing… that it’s so cross-platform and feature rich, you have my thanks!)
Here’s what I did to reproduce this error (I’ve been testing with various options and repeating them, in fact the very last test I did showed that it apparently wasn’t ALL files without tags that I tagged that cause the problem, but so far it’s been nearly all of them (tested tagging non-tagged files probably 20 times now):
Mounted drive, deleted old test files (deletes are very slow as well, not for 4 files, but in general)
Copied 2 tagged files to Testing directory
Added tag to each, one after the other
Copied 2 non-tagged files to Testing directory
Tagged one of the files successfully (no previous tags on the file)
Tried tagging the other and got “Invalid file handle.” from windows with a Try Again/Skip option, I hit try again once, then skip when it reappeared
I closed everything and hit control-c to stop the rclone mount.
I originally had tried writes and had the same error. Here is a log with the mount and then just updating the file tag (Windows reported the error, I hit retry once):
I did a rename within the CMD window in this debug without fuse-debug, with -vv and vfs-cache mode set to writes. The rename was successful with the rename command. I then tried adding a tag via explorer again to illustrate the difference in behavior.
2018/05/30 15:06:25 ERROR : photo_2018-05-08_12-59-29-new.jpg~RF4832180.TMP: corrupted on transfer: sizes differ 0 vs 172178
2018/05/30 15:06:25 INFO : photo_2018-05-08_12-59-29-new.jpg~RF4832180.TMP: Removing failed copy
Which probably explains the second error (though rclone should probably have closed the file anyway)
2018/05/30 15:06:25 ERROR : ~hoto_2018-05-08_12-59-29-new.tmp: Dir.Rename cant rename open file
What exactly does it mean “add a tag via explorer” - I’m not familiar with that. Is it as described here?
Can you make an rclone mount which is just a local directory and see if the problem still exists?
rclone -vv --vfs-cache-mode writes mount C:\somedir Y:
I have access to a Windows server 2016 VM which I think is basically Windows 10 for servers so I’ll see if I can replicate the problem there if you can confirm exactly what you are doing to add a tag.
And yes, the tagging is as described in that article. It allows a platform independent method of adding keywords to image files for easy search (ie. “Bank statements”; 2017; Wells Fargo) It modifies the EXIF info of the file (or the equivalent on some other files (IPTC I think)).
I feel silly… I got it to work. I tried the beta version and it works there.
Thanks again for your amazing work and help with this. After payday I’ll be making a donation (this was the plan anyways, regardless of help with this issue), maybe you can take the wife out for dinner. ^^