OCI CLI fails to load default profile from config file even if I have proper default profile

Viewed 728

When I run any oci cli command I'm getting below error:

ERROR: Profile '<DEFAULT>' not found in config file C:\Users\user1\.oci\config

Below is my config file for OCI CLI:

[DEFAULT]
user=<admin user ocid>
fingerprint=<fingerprint>
key_file=<path/to/private/key>
tenancy=<tenancy ocid>
region=ap-mumbai-1
4 Answers

I had a similar problem to this. If you use Python and have changed some of the libraries it's possible you may have updated some of the needed dependencies. Upgrade/reinstall oci ie.

pip install oci-cli --upgrade

This sorted the problem for me.

I would suggest you take a backup of this config file, delete it and reconfigure CLI automatically by executing "oci setup config"

Related