79793561

Date: 2025-10-18 04:48:50
Score: 1
Natty:
Report link

If anyone ever encounters the error using the OCI CLI

ERROR: Could not find config file at [DEFAULT]

user=ocid1.user.xxxx

...

Do you want to create a new config file? [Y/n]: Abort:

I hit this issue in a gitlab pipeline job, whereby I was using the contents of a pipeline variable named OCI_CLI_CONFIG_FILE to seed ~/.oci/config

Unfortunately that OCI_CLI_CONFIG_FILE variable happened to also be a reserved environment variable name in the context of the OCI CLI : https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/clienvironmentvariables.htm

... and was thus causing the OCI CLI to fail when making requests, as it was looking for a config file at that messed up location.

So be very careful with environment variables!

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: TodayGuessWhat