Version 1.61.0: ERROR CODE: PublicAccessNotPermitted

What is the problem you are having with rclone?

We ugrade to the most recent version 1.61.0. After the upgrade a filetransfer fails with the following error:
AAAAAAAA_20221221_224741_BBBBB.csv: Failed to copy: PUT
ERROR CODE: PublicAccessNotPermitted

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

.\rclone version
rclone v1.61.0

  • os/version: Microsoft Windows Server 2016 Standard 1607 (64 bit)
  • os/kernel: 10.0.14393.5501 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: cmount

yes, we are on the latest version we upgraded, because we want to make use of the ACL settings in Azure Data Lake Storage. But in this case it is using RBAC. It used to work with version: rclone v1.59.2.
When we restore the old rclone version it works again.

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

Azure Data Lake Storage.

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

I don't know exactly which command, because we use a tool which uses rclone, the output doesn't display the exact command

Paste command here

The rclone config contents with secrets removed.

We use a tool which uses rclone, so I don't know for sure if it looks exactly the same.

type = azureblob
account = XXXXXXXXX
service_principal_file = XXXX\

A log from the command with the -vv flag

We use a tool which uses rclone so unfortunately I can't provide this. But this is the logging I have ( I replaced some info for security reasons)

Attempt 3/3 failed with 5 errors and: PUT
 ERROR CODE: PublicAccessNotPermitted

 ERROR CODE: PublicAccessNotPermitted

 Return Code: 1
 Exiting due to ERROR(s).
 # Transfer Parameters:
 Source Storage Type: windows_source
 Source: \\AAAAA\BBBBBB\
 Target Storage Type: datalakegen2_storage_sp_target:
 Target: YYYYYY/Data/Import/Verzekerdegegevens
 Start Time: 2022-12-22 01:50:24  
 End Time: 2022-12-22 01:50:30  
 Duration: 0:00:05.859177
 Last Operational Memo: 0 B / 0 B, -, 0 B/s, ETA -
 # Action Parameters:
 Action: copy
 Error On No Transfer: true
 Dry-run: False
 Filter Type: include
 Filter: {{1111111111.csv|2222222222222.csv|33333333333333.csv|44444444444444444444.csv|55555555555555555A.csv}}
 Max-depth (Recursion Depth): 1
 Write Options: no_overwrite

This looks like the same issue being tracked here: rclone copy is ignoring the config file and throwing authentication errors in 1.6.1. · Issue #6645 · rclone/rclone · GitHub

If you could test the binary on the link above that would be helpful as I'd like confirmation before releasing the fix.

Hi Nick,
I was on holiday, but a colleague of mine got the updated version and has tested it. Now it works. Thanks a lot!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.