Obfuscated file name causes file not found error on Windows share

What is the problem you are having with rclone?

I'm using rclone to backup from a Linux amd64 box to a folder shared from a Windows 10 Pro box 64-bit via a mounted CIFS directory. There's an additional crypt layer using with obfuscated file names.

What is your rclone version (output from rclone version)

rclone v1.53.1-DEV
- os/arch: linux/amd64
- go version: go1.15.2

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Server: Windows 7 Pro 64 bit
Client: Ubuntu 20.10 amd64

Which cloud storage system are you using? (eg Google Drive)

Not related.

The command you were trying to run (eg rclone copy /tmp remote:tmp)

GODEBUG=asyncpreemptoff=1 \
rclone sync --progress \
  /src bak-crypt:

The rclone config contents with secrets removed.

type = local

type = crypt
remote = bak:/mnt/rclone/
password = redacted
password2 = redacted
filename_encryption = obfuscate
directory_name_encryption = false

A log from the command with the -vv flag

2021-02-20 02:31:24 ERROR : d4/0鹩哥学语(可用)/Philip上的/鸟鸣/谢谢⃧⃧(6遍).mp3: Couldn't delete: remove /mnt/rclone/d4/0鹩哥学语(可用)/Philip上的/鸟鸣/22.豖豖‛‛\8邁].AD5: no such file or directory
2021-02-20 02:31:24 ERROR : da/book/Music/Audio100/天籁10首 之四   -【短歌行】.mht: Couldn't delete: remove /mnt/rclone/da/book/Music/Audio100/241.夺籒65馧 乜囬 ‛‛>〡矾歝衝〢.upB: no such file or directory

Is it possible that the obfuscation generated some special character that is invalid for a Samba share? Thanks!

It is possible though that isn't supposed to happen!

In your example


encodes to


Can you try creating a file for each of the characters in 22.豖豖‛‛\8邁].AD5 just using the command line on Linux and see if those files can't be found?

Also can you look in the directory d4/0鹩哥学语(可用)/Philip上的/鸟鸣 using the command line ls command and see what the 22....AD5 file is actually called?