Failed to sync: can't overwrite file with directory

Hi,

I’m using rclone 1.36 on raspberry pi to sync files to b2. My b2 remote is encrypted.

I’ve started to get error “Failed to sync: can’t overwrite file with directory” which prevents me from backing up my files. I’m not sure which files/directories the error refers to, so I don’t know how to get around it.

If anyone could help me, that would be great. Thanks.

My rclone sync command:
rclone --transfers 12 -vv --log-file rclone-20170717220414.log /mnt/hdd_bck/backups/x220 b2-andrius-x220:

Last lines of the log file:

2017/07/19 03:21:54 DEBUG : usr/share/doc/texlive-doc/latex/yathesis/french/documentation/annexes/recommandations.tex.gz: Unchanged skipping
2017/07/19 03:21:54 DEBUG : usr/share/doc/texlive-doc/latex/yathesis/french/documentation/annexes/specimens-canevas.tex.gz: Size and modification time the same (differ by 0s, within tolerance 1ms)
2017/07/19 03:21:54 DEBUG : usr/share/doc/texlive-doc/latex/yathesis/french/documentation/annexes/specimens-canevas.tex.gz: Unchanged skipping
2017/07/19 03:21:54 DEBUG : usr/share/doc/texlive-doc/latex/yathesis/french/documentation/annexes/traduction.tex: Size and modification time the same (differ by 0s, within tolerance 1ms)
2017/07/19 03:21:54 DEBUG : usr/share/doc/texlive-doc/latex/yathesis/french/documentation/annexes/traduction.tex: Unchanged skipping
2017/07/19 03:21:54 DEBUG : usr/share/doc/texlive-doc/latex/yathesis/french/documentation/annexes/usage-avance.tex.gz: Size and modification time the same (differ by 0s, within tolerance 1ms)
2017/07/19 03:21:54 DEBUG : usr/share/doc/texlive-doc/latex/yathesis/french/documentation/annexes/usage-avance.tex.gz: Unchanged skipping
2017/07/19 03:21:54 INFO  : Encrypted B2 bucket andrius-x220: Waiting for checks to finish
2017/07/19 03:21:54 INFO  : Encrypted B2 bucket andrius-x220: Waiting for transfers to finish
2017/07/19 03:21:54 ERROR : Encrypted B2 bucket andrius-x220: not deleting files as there were IO errors
2017/07/19 03:21:54 ERROR : Attempt 3/3 failed with 0 errors and: can't overwrite file with directory
2017/07/19 03:21:54 Failed to sync: can't overwrite file with directory

You’ll find an ERROR a bit earlier in the log which tells you which file it was having a problem with.

I found the errors and deleted the corresponding files on b2. That solved the issue.

Thanks for the help.

1 Like