First run OK, then it breaks


#1

I have this simple bat file that does the following:

rclone sync S:\Wallpapers E:\Wallpapers -v -vv -P --local-no-check-updated

At the moment it runs, E:\Wallpapers doesn’t exist, and after the script is done, it is correctly mirroring the content of S:\Wallpapers. Here’s the output:

2019/03/11 00:24:51 DEBUG : rclone: Version "v1.46" starting with parameters ["rclone" "sync" "S:\\Wallpapers" "E:\\Wallpapers" "-v" "-vv" "-P" "--local-no-check-updated"]
2019/03/11 00:24:51 DEBUG : Using config file from "C:\\Users\\Guido\\.config\\rclone\\rclone.conf"
2019-03-11 00:24:51 INFO  : Local file system at \\?\E:\Wallpapers: Waiting for checks to finish
2019-03-11 00:24:51 INFO  : Local file system at \\?\E:\Wallpapers: Waiting for transfers to finish
2019-03-11 00:24:51 INFO  : sunset.jpg: Copied (new)ETA -
2019-03-11 00:24:51 INFO  : ocean_waves.jpg: Copied (new)ytes/s, ETA 0s
2019-03-11 00:24:51 INFO  : Waiting for deletions to finishes/s, ETA 0s
Transferred:        2.277M / 2.277 MBytes, 100%, 4.186 MBytes/s, ETA 0s
Errors:                 0 / 0, -%
Checks:                 0 / 0, -0%    sunset.jpg: transferring
Transferred:            2 / 2, 100%   sunset.jpg: transferring
Elapsed time:       500ms             sunset.jpg: transferring
2019/03/11 00:24:51 INFO  :      ocean_waves.jpg: transferring 0/s, -
Transferred:        2.277M / 2.277 MBytes, 100%, 4.178 MBytes/s, ETA 0s
Errors:                 0
Checks:                 0 / 0, -
Transferred:            2 / 2, 100%
Elapsed time:       500ms

2019/03/11 00:24:51 DEBUG : 2 go routines active
2019/03/11 00:24:51 DEBUG : rclone: Version "v1.46" finishing with parameters ["rclone" "sync" "S:\\Wallpapers" "E:\\Wallpapers" "-v" "-vv" "-P" "--local-no-check-updated"]

If I re-run the script, to check for new files or changed paths, it breaks and gives me the following:

2019/03/11 00:25:56 DEBUG : rclone: Version "v1.46" starting with parameters ["rclone" "sync" "S:\\Wallpapers" "E:\\Wallpapers" "-v" "-vv" "-P" "--local-no-check-updated"]
2019/03/11 00:25:56 DEBUG : Using config file from "C:\\Users\\Guido\\.config\\rclone\\rclone.conf"
2019-03-11 00:25:56 ERROR : : error reading destination directory: failed to read directory "": Readdir \\?\E:\Wallpapers: Impossibile trovare il percorso specificato.
2019-03-11 00:25:56 INFO  : Local file system at \\?\E:\Wallpapers: Waiting for checks to finish
2019-03-11 00:25:56 INFO  : Local file system at \\?\E:\Wallpapers: Waiting for transfers to finish
2019-03-11 00:25:56 ERROR : Local file system at \\?\E:\Wallpapers: not deleting files as there were IO errors
2019-03-11 00:25:56 ERROR : Local file system at \\?\E:\Wallpapers: not deleting directories as there were IO errors
2019-03-11 00:25:56 ERROR : Attempt 1/3 failed with 1 errors and: not deleting files as there were IO errors
2019-03-11 00:25:56 ERROR : : error reading destination directory: failed to read directory "": Readdir \\?\E:\Wallpapers: Impossibile trovare il percorso specificato.
2019-03-11 00:25:56 INFO  : Local file system at \\?\E:\Wallpapers: Waiting for checks to finish
2019-03-11 00:25:56 INFO  : Local file system at \\?\E:\Wallpapers: Waiting for transfers to finish
2019-03-11 00:25:56 ERROR : Local file system at \\?\E:\Wallpapers: not deleting files as there were IO errors
2019-03-11 00:25:56 ERROR : Local file system at \\?\E:\Wallpapers: not deleting directories as there were IO errors
2019-03-11 00:25:56 ERROR : Attempt 2/3 failed with 1 errors and: not deleting files as there were IO errors
2019-03-11 00:25:56 ERROR : : error reading destination directory: failed to read directory "": Readdir \\?\E:\Wallpapers: Impossibile trovare il percorso specificato.
2019-03-11 00:25:56 INFO  : Local file system at \\?\E:\Wallpapers: Waiting for checks to finish
2019-03-11 00:25:56 INFO  : Local file system at \\?\E:\Wallpapers: Waiting for transfers to finish
2019-03-11 00:25:56 ERROR : Local file system at \\?\E:\Wallpapers: not deleting files as there were IO errors
2019-03-11 00:25:56 ERROR : Local file system at \\?\E:\Wallpapers: not deleting directories as there were IO errors
2019-03-11 00:25:56 ERROR : Attempt 3/3 failed with 1 errors and: not deleting files as there were IO errors
Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Checks:                 0 / 0, -
Transferred:            0 / 0, -
Elapsed time:       200ms
2019/03/11 00:25:56 Failed to sync: not deleting files as there were IO errors

Can’t understand why. Any help?