Unable to muount an OCI Object Storage bucket using rclone

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

When attempting to mount an OCI Object Storage bucket using rclone, the following error is encountered:

“ERROR: user_principal_auth: failed to create object storage client, cannot create client, bad configuration: did not find a proper configuration for the private key”
Description:

The rclone configuration appears to be set up correctly, with the necessary values for user, fingerprint, tenancy, region, and key_file specified.

The private key file specified in the rclone configuration (key_file) is accessible and has the correct permissions.

Running rclone commands with sudo is required, as executing commands without sudo results in permission issues.

Troubleshooting Steps Taken:

Verified the private key file path and its contents.

Ensured correct OCI configuration values.

Updated rclone to the latest version.

Additional Information:

The Oracle Cloud Infrastructure (OCI) account and IAM policy are set up correctly with the required permissions to access the Object Storage bucket.

Using rclone with elevated privileges (sudo) is the only way commands can be executed, as there seems to be a lack of permissions without sudo.

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

rclone v1.63.1

  • os/version: ubuntu 18.04 (64 bit)
  • os/kernel: 5.4.0-1102-oracle (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.6
  • go/linking: static
  • go/tags: none

Yes

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

OCI

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

sudo rclone mount nfm_cloud_config:~/rawdata test_mount &

The rclone config contents with secrets removed.

A log from the command with the -vv flag

Not sure where the log file is```

Please provide content of your rclone.config with all secrets removed

than run

rclone mount nfm_cloud_config:rawdata test_mount -vv

and post output here

Here is the rclone config file with secrets removed
'''
type = oracleobjectstorage
provider = user_principal_auth
namespace = #Mynamespace
compartment = #Mycompartment
region = #Myregion

"''

Here is the output of the command:
'''
sudo rclone mount nfm_cloud_config:rawdata test_mount -vv
2023/08/05 10:53:36 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "mount" "nfm_cloud_config:rawdata" "test_mount" "-vv"]
2023/08/05 10:53:36 DEBUG : Creating backend with remote "nfm_cloud_config:rawdata"
2023/08/05 10:53:36 DEBUG : Using config file from "/home/ubuntu/.config/rclone/rclone.conf"
2023/08/05 10:53:36 ERROR : user_principal_auth: failed to create object storage client, can not create client, bad configuration: did not find a proper configuration for private key
2023/08/05 10:53:36 Failed to create file system for "nfm_cloud_config:rawdata": can not create client, bad configuration: did not find a proper configuration for private key

'''

You are using authentication provider User Principal

Have a look at sample config:

[oos]
type = oracleobjectstorage
namespace = id<redacted>34
compartment = ocid1.compartment.oc1..aa<redacted>ba
region = us-ashburn-1
provider = user_principal_auth
config_file = /home/opc/.oci/config
config_profile = Default

I think your configuration is missing some elements.

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