[LINUX] Error in rsync to mount.cifs shared folder: File exists (17)

It will be resolved soon, and it seems that it will not occur in recent environments, so the expiration date is short.

Event

An error occurred in rsync to the Windows shared folder mounted on the Ubuntu server. Occurs from around August 17, 2020 (after updating the kernel).

rsync: rename "/path/to/.file.XXXXXX" -> "file": File exists (17)

environment

--Server - Ubuntu 16.04.07 - kernel: linux-image-4.4.0-187-generic

Cause

I arrived at here.

--Error when overwriting from temporary file during rsync: File exists (17) --Failed to overwrite when B of mv A B exists: File exists --Occurs only with SMB 1.0

It was a bug.

Coping

Since mount.cifs was the environment where vers = 1.0 by default, it was solved by adding vers = 3.0. It seems that the default is 2.1 in recent OS. In an environment where only vers = 1.0 can be used, restore it or wait for a fix.

Recommended Posts

Error in rsync to mount.cifs shared folder: File exists (17)
How to suppress display error in matplotlib
Convert psd file to png in Python
How to drop Google Docs in one folder in a .txt file with python
Output timing is incorrect when standard (error) output is converted to a file in Python
Don't forget to close the file just because it's in a temporary folder
How to implement shared memory in Python (mmap.mmap)
From file to graph drawing in Python. Elementary elementary
How to create a JSON file in Python
How to get the files in the [Python] folder
To write to Error Repoting in Python on GAE
Error when trying to install psycopg2 in Python
In bash, "Delete the file if it exists".
How to read a file in a different directory
Sample to put Python Kivy in one file
How to set a shared folder with the host OS in CentOS7 on VirtualBOX
When a file is placed in the shared folder of Raspberry Pi, the process is executed.
When publishing a package to PyPI, "HTTP Error: 400 Client Error: File already exists." Is displayed.