hitrov / oci-arm-host-capacity

This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.
MIT License
965 stars 491 forks source link

Whats the error #49

Open Ajvj09 opened 2 years ago

Ajvj09 commented 2 years ago

IMG_20220910_154742

RaistlinTAO commented 1 year ago

Whatever env you are currently using cannot connect to the oracle cloud,

HanosThePlacid commented 8 months ago

I have the same issue. Capture Could you elaborate on what you mean by "Whatever env you are currently using cannot connect to the oracle cloud," I'm pretty new to linux, php, and to programming in general. Is my .env file faulty? or did you mean enviroment?

And what shall I do to fix it?

RaistlinTAO commented 8 months ago

I have the same issue. Capture Could you elaborate on what you mean by "Whatever env you are currently using cannot connect to the oracle cloud," I'm pretty new to linux, php, and to programming in general. Is my .env file faulty? or did you mean enviroment?

And what shall I do to fix it?

Certainly, based on the error information captured in your screenshot, it appears that the OciApi is encountering an issue when attempting to resolve iaas.amsterdam-1.oraclecloud.com during the initialization of an instance with HttpClient. This indicates that your runtime environment (referred to as "env") lacks a suitable DNS configuration to resolve this domain.

You can perform the following troubleshooting steps:

  1. Try to ping or curl the domain directly in Linux. if dns cannot be solved, edit /etc/hosts directly or fix any firewall related permission issues.
  2. Please double-check the Oracle Cloud dashboard to confirm whether the API address is indeed set to 'iaas.amsterdam-1.oraclecloud.com'. In the source code, the developer utilizes private function getBaseApiUrl(OciConfig $config, string $api = 'iaas'): string { return "https://$api.{$config->region}.oraclecloud.com/20160918"; } to generate api addresses.

If your API address is incorrect, it could be due to an error in the region configuration, or Oracle Cloud might have changed the API access address for your specific region. Verify the accuracy of the API address by checking the region configuration, and make sure it aligns with the correct API access address provided by Oracle Cloud.