What is the problem you are having with rclone?
After upgrade to 1.61.0 I'm facing with permissions issue while trying copy file from local system to azure blob storage. What I'm doing I'm just generating simple json file locally and trying to move it to cloud. After upgrade it started to fail with this log.
Failed to copy: PUT https://***.windows.net/bucket_name
--------------------------------------------------------------------------------
RESPONSE 409: 409 Public access is not permitted on this storage account.
ERROR CODE: PublicAccessNotPermitted
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>PublicAccessNotPermitted</Code><Message>Public access is not permitted on this storage account.
Time:2022-12-22T16:03:40.6388175Z</Message></Error>
---------------------------------------------------------------
Does rclone requires any additional permissions to copy files? because running same with 1.60.0 still passing without error.
Note: I'm performing rclone sync on different container but in same storage account and with same sas-token and it works as expected
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-56-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Azure Blob Storage
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy local:$filepath azure:$bucket --config $rclone_conf
The rclone config contents with secrets removed.
[azure]
type = azureblob
account_name = ${account_name}
sas_url = https://${account_name}.blob.core.windows.net?${sas_token}
[local]
type = local
A log from the command with the -vv
flag
Sorry can't provide now log with -vv as error happens in production env, I'll be able to add it later if needed
-------------------------------------------------------------------------------
2022/12/22 17:03:40 ERROR : Attempt 2/3 failed with 1 errors and: PUT https://****.net/backup
--------------------------------------------------------------------------------
RESPONSE 409: 409 Public access is not permitted on this storage account.
ERROR CODE: PublicAccessNotPermitted
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>PublicAccessNotPermitted</Code><Message>Public access is not permitted on this storage account.
RequestId:
Time:2022-12-22T16:03:40.6478131Z</Message></Error>
--------------------------------------------------------------------------------
2022/12/22 17:03:40 ERROR : backup_2022_12_22T16_03_40Z.json: Failed to copy: PUT https://****.net/backup
--------------------------------------------------------------------------------
RESPONSE 409: 409 Public access is not permitted on this storage account.
ERROR CODE: PublicAccessNotPermitted
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>PublicAccessNotPermitted</Code><Message>Public access is not permitted on this storage account.
RequestId:
Time:2022-12-22T16:03:40.6568084Z</Message></Error>
--------------------------------------------------------------------------------
2022/12/22 17:03:40 ERROR : backup_2022_12_22T16_03_40Z.json: Not deleting source as copy failed: PUT https://***.net/backup
--------------------------------------------------------------------------------
RESPONSE 409: 409 Public access is not permitted on this storage account.
ERROR CODE: PublicAccessNotPermitted
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>PublicAccessNotPermitted</Code><Message>Public access is not permitted on this storage account.
RequestId:
Time:2022-12-22T16:03:40.6568084Z</Message></Error>
--------------------------------------------------------------------------------
2022/12/22 17:03:40 ERROR : Attempt 3/3 failed with 1 errors and: PUT https://***.net/backup
--------------------------------------------------------------------------------
RESPONSE 409: 409 Public access is not permitted on this storage account.
ERROR CODE: PublicAccessNotPermitted
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>PublicAccessNotPermitted</Code><Message>Public access is not permitted on this storage account.
RequestId:
Time:2022-12-22T16:03:40.6568084Z</Message></Error>
--------------------------------------------------------------------------------
2022/12/22 17:03:40 Failed to moveto: PUT https://***.net/backup
--------------------------------------------------------------------------------
RESPONSE 409: 409 Public access is not permitted on this storage account.
ERROR CODE: PublicAccessNotPermitted
--------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><Error><Code>PublicAccessNotPermitted</Code><Message>Public access is not permitted on this storage account.
RequestId:
Time:2022-12-22T16:03:40.6568084Z</Message></Error>
--------------------------------------------------------------------------------