Transfer to azure files only works with --inplace flag

What is the problem you are having with rclone?

Transfer to Azure Files only works with --inplace flag, when authenticated with account and key. While the transfer itself succeeds, the path for moving the temp file to the real one is incorrect. It works when the file is transferred directly. Using SAS for auth url works as well.

Run the command 'rclone version' and share the full output of the command.

rclone v1.71.2
os/version: ubuntu 24.04 (64 bit)
os/kernel: 6.6.87.2-microsoft-standard-WSL2 (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.25.3
go/linking: static
go/tags: none

Which cloud storage system are you using?

Azure Files

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

rclone -vv copy /mnt/c/kiteworks/test.txt ':azurefiles,account="mftazurefileshares",endpoint=,key="XXX":testshare/share_A/inner_a_1'

A log from the command that you were trying to run with the -vv flag

2025/11/04 13:34:07 DEBUG : rclone: Version "v1.71.2" starting with parameters ["rclone" "-vv" "copy" "/mnt/c/kiteworks/test.txt" ":azurefiles,account=\"mftazurefileshares\",endpoint=,key=\"XXX\":testshare/share_A/inner_a_1"]
2025/11/04 13:34:07 DEBUG : Creating backend with remote "/mnt/c/kiteworks/test.txt"
2025/11/04 13:34:07 DEBUG : Using config file from "/home/kalin/.config/rclone/rclone.conf"
2025/11/04 13:34:07 DEBUG : fs cache: renaming child cache item "/mnt/c/kiteworks/test.txt" to be canonical for parent "/mnt/c/kiteworks"
2025/11/04 13:34:07 DEBUG : Creating backend with remote ":azurefiles,account=\"mftazurefileshares\",endpoint=,key=\"XXX\":testshare/share_A/inner_a_1"
2025/11/04 13:34:07 DEBUG : :azurefiles: detected overridden config - adding "{Ssbnu}" suffix to name
2025/11/04 13:34:07 DEBUG : fs cache: renaming cache item ":azurefiles,account=\"mftazurefileshares\",endpoint=,key=\"XXX":testshare/share_A/inner_a_1" to be canonical ":azurefiles{Ssbnu}:testshare/share_A/inner_a_1"
2025/11/04 13:34:07 DEBUG : test.txt: Need to transfer - File not found at Destination
2025/11/04 13:34:07 DEBUG : test.txt: md5 = 17c1678ef8e65afcb52f50bf38e44bcb OK
2025/11/04 13:34:07 ERROR : test.txt.aae5e726.partial: partial file rename failed: Move: Rename failed: PUT https://mftazurefileshares.file.core.windows.net/testshare/testshare/share_A/inner_a_1/test.txt
--------------------------------------------------------------------------------
RESPONSE 404: 404 The specified parent path does not exist.
ERROR CODE: ParentNotFound
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>ParentNotFound</Code><Message>The specified parent path does not exist.
RequestId:cde8a13d-301a-002d-197e-4d17d7000000
Time:2025-11-04T11:34:06.6598146Z</Message></Error>
--------------------------------------------------------------------------------
2025/11/04 13:34:07 INFO  : test.txt.aae5e726.partial: Removing failed copy
2025/11/04 13:34:07 ERROR : Attempt 1/3 failed with 1 errors and: Move: Rename failed: PUT https://mftazurefileshares.file.core.windows.net/testshare/testshare/share_A/inner_a_1/test.txt
--------------------------------------------------------------------------------
RESPONSE 404: 404 The specified parent path does not exist.
ERROR CODE: ParentNotFound
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>ParentNotFound</Code><Message>The specified parent path does not exist.
RequestId:cde8a13d-301a-002d-197e-4d17d7000000
Time:2025-11-04T11:34:06.6598146Z</Message></Error>
--------------------------------------------------------------------------------
2025/11/04 13:34:07 DEBUG : test.txt: Need to transfer - File not found at Destination
2025/11/04 13:34:08 DEBUG : test.txt: md5 = 17c1678ef8e65afcb52f50bf38e44bcb OK
2025/11/04 13:34:08 ERROR : test.txt.aae5e726.partial: partial file rename failed: Move: Rename failed: PUT https://mftazurefileshares.file.core.windows.net/testshare/testshare/share_A/inner_a_1/test.txt
--------------------------------------------------------------------------------
RESPONSE 404: 404 The specified parent path does not exist.
ERROR CODE: ParentNotFound
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>ParentNotFound</Code><Message>The specified parent path does not exist.
RequestId:cde8a152-301a-002d-2e7e-4d17d7000000
Time:2025-11-04T11:34:06.9868790Z</Message></Error>
--------------------------------------------------------------------------------
2025/11/04 13:34:08 INFO  : test.txt.aae5e726.partial: Removing failed copy
2025/11/04 13:34:08 ERROR : Attempt 2/3 failed with 1 errors and: Move: Rename failed: PUT https://mftazurefileshares.file.core.windows.net/testshare/testshare/share_A/inner_a_1/test.txt
--------------------------------------------------------------------------------
RESPONSE 404: 404 The specified parent path does not exist.
ERROR CODE: ParentNotFound
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>ParentNotFound</Code><Message>The specified parent path does not exist.
RequestId:cde8a152-301a-002d-2e7e-4d17d7000000
Time:2025-11-04T11:34:06.9868790Z</Message></Error>
--------------------------------------------------------------------------------
2025/11/04 13:34:08 DEBUG : test.txt: Need to transfer - File not found at Destination
2025/11/04 13:34:08 DEBUG : test.txt: md5 = 17c1678ef8e65afcb52f50bf38e44bcb OK
2025/11/04 13:34:08 ERROR : test.txt.aae5e726.partial: partial file rename failed: Move: Rename failed: PUT https://mftazurefileshares.file.core.windows.net/testshare/testshare/share_A/inner_a_1/test.txt
--------------------------------------------------------------------------------
RESPONSE 404: 404 The specified parent path does not exist.
ERROR CODE: ParentNotFound
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>ParentNotFound</Code><Message>The specified parent path does not exist.
RequestId:cde8a15c-301a-002d-387e-4d17d7000000
Time:2025-11-04T11:34:07.3172021Z</Message></Error>
--------------------------------------------------------------------------------
2025/11/04 13:34:08 INFO  : test.txt.aae5e726.partial: Removing failed copy
2025/11/04 13:34:08 ERROR : Attempt 3/3 failed with 1 errors and: Move: Rename failed: PUT https://mftazurefileshares.file.core.windows.net/testshare/testshare/share_A/inner_a_1/test.txt
--------------------------------------------------------------------------------
RESPONSE 404: 404 The specified parent path does not exist.
ERROR CODE: ParentNotFound
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>ParentNotFound</Code><Message>The specified parent path does not exist.
RequestId:cde8a15c-301a-002d-387e-4d17d7000000
Time:2025-11-04T11:34:07.3172021Z</Message></Error>
--------------------------------------------------------------------------------
2025/11/04 13:34:08 INFO  :
Transferred:            168 B / 168 B, 100%, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.9s

2025/11/04 13:34:08 DEBUG : 6 go routines active
2025/11/04 13:34:08 NOTICE: Failed to copy: Move: Rename failed: PUT https://mftazurefileshares.file.core.windows.net/testshare/testshare/share_A/inner_a_1/test.txt
--------------------------------------------------------------------------------
RESPONSE 404: 404 The specified parent path does not exist.
ERROR CODE: ParentNotFound
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>ParentNotFound</Code><Message>The specified parent path does not exist.
RequestId:cde8a15c-301a-002d-387e-4d17d7000000
Time:2025-11-04T11:34:07.3172021Z</Message></Error>
--------------------------------------------------------------------------------

Command withinplace succeeds:

rclone -vv --inplace copy /mnt/c/kiteworks/test.txt ':azurefiles,account="mftazurefileshares",endpoint=,key="XXX":testshare/share_A/inner_a_1'
2025/11/04 13:34:32 DEBUG : rclone: Version "v1.71.2" starting with parameters ["rclone" "-vv" "--inplace" "copy" "/mnt/c/kiteworks/test.txt" ":azurefiles,account=\"mftazurefileshares\",endpoint=,key=\"XXX\":testshare/share_A/inner_a_1"]
2025/11/04 13:34:32 DEBUG : Creating backend with remote "/mnt/c/kiteworks/test.txt"
2025/11/04 13:34:32 DEBUG : Using config file from "/home/kalin/.config/rclone/rclone.conf"
2025/11/04 13:34:32 DEBUG : fs cache: renaming child cache item "/mnt/c/kiteworks/test.txt" to be canonical for parent "/mnt/c/kiteworks"
2025/11/04 13:34:32 DEBUG : Creating backend with remote ":azurefiles,account=\"mftazurefileshares\",endpoint=,key=\"XXX\":testshare/share_A/inner_a_1"
2025/11/04 13:34:32 DEBUG : :azurefiles: detected overridden config - adding "{Ssbnu}" suffix to name
2025/11/04 13:34:32 DEBUG : fs cache: renaming cache item ":azurefiles,account=\"mftazurefileshares\",endpoint=,key=\"XXX\":testshare/share_A/inner_a_1" to be canonical ":azurefiles{Ssbnu}:testshare/share_A/inner_a_1"
2025/11/04 13:34:32 DEBUG : test.txt: Need to transfer - File not found at Destination
2025/11/04 13:34:32 DEBUG : test.txt: md5 = 17c1678ef8e65afcb52f50bf38e44bcb OK
2025/11/04 13:34:32 INFO  : test.txt: Copied (new)
2025/11/04 13:34:32 INFO  :
Transferred:             56 B / 56 B, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         0.1s

2025/11/04 13:34:32 DEBUG : 5 go routines active

Surprising! Can you make a GitHub issue about that please. I would have thought the integration tests would be failing with that too.

Thanks