LoginSignup
0
1

More than 3 years have passed since last update.

mount.cifsした共有フォルダへのrsyncでエラー: File exists (17)

Last updated at Posted at 2020-08-22

そのうち解消されるのと,最近の環境では発生しなそうなので賞味期限短めです.

事象

UbuntuサーバでマウントしているWindowsの共有フォルダへのrsyncでエラーが発生.
2020年8月17日頃 (kernel更新後) から発生.

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

環境

  • サーバ
    • Ubuntu 16.04.07
    • kernel: linux-image-4.4.0-187-generic
  • リモート
    • Windows Server 2012

原因

ここにたどり着いた.

  • rsync時の一時ファイルからの上書き時にエラー: File exists (17)
  • mv A B のBが存在する場合の上書きに失敗: File exists
  • SMB 1.0でのみ発生

というバグでした.

対処

mount.cifsがデフォルトでvers=1.0な環境だったので,vers=3.0を追加したところ解消.
最近のOSだとデフォルトは2.1とかになるみたいですね.
vers=1.0しか使えない環境では元に戻すか,修正を待ちましょう.

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1