What is the problem you are having with rclone?
First issue is that timestamps aren't being set on files copied to the destination. The timestamps are left at the default, which is just the time the file was copied over. According to the Overview of cloud storage systems rclone supports R/W for modtime in Azure Files, so we are puzzled.
Second issue is that it's not doing server-side copying. Does it not support this if the source and destination are different storage accounts? We tried adding the --server-side-across-configs
flag, but that results in authentication error when it tries to do the actual copy.
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.1
- os/version: Microsoft Windows Server 2025 Datacenter 24H2 24H2 (64 bit)
- os/kernel: 10.0.26100.3476 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Azure Files
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone.exe sync storageaccount1: storageaccount2: --progress --verbose --create-empty-src-dirs --server-side-across-configs
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[storageaccount1]
type = azurefiles
account = XXX
share_name = sharename
key = XXX
[storageaccount2]
type = azurefiles
account = XXX
share_name = sharename
key = XXX
A log from the command that you were trying to run with the -vv
flag
...
2025/04/10 21:33:29 ERROR : filename: Failed to copy: Copy failed: PUT https://storageaccount2.file.core.windows.net/sharename/filename.4fb89b73.partial
--------------------------------------------------------------------------------
RESPONSE 401: 401 Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
ERROR CODE: CannotVerifyCopySource
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>CannotVerifyCopySource</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:c4b77ecf-a01a-00a2-2f57-aa6dd2000000
Time:2025-04-10T20:33:29.2790125Z</Message><CopySourceStatusCode>401</CopySourceStatusCode><CopySourceErrorCode>NoAuthenticationInformation</CopySourceErrorCode><CopySourceErrorMessage>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.</CopySourceErrorMessage></Error>
--------------------------------------------------------------------------------
...
If we remove --server-side-across-configs
the copy operation works, but of course the data flows through the machine running rclone. We do not see any errors about failing to set timestamp:
2025/04/10 21:35:22 DEBUG : filename.4fb89b73.partial: renamed to: filename
2025/04/10 21:35:22 INFO : filename: Copied (new)
(No subsequent lines in the log mention the filename.)