Oracle Cloud "Out of host capacity" resolving script – get free VPS: 4 ARM cores & 24 GB RAM
Alexander Hitrov Alexander Hitrov
85 subscribers
35,408 views
317

 Published On Sep 23, 2021

Update 2024: The script is still functional, but many Reddit users now recommend upgrading to Pay As You Go (PAYG) for the best experience. With PAYG, you'll continue to enjoy all the free benefits without any additional cost, but you'll also receive priority for launching instances and are less likely to face "Out of host capacity" errors. Additionally, PAYG unlocks more types of OCI resources, including free Kubernetes-related infrastructure if that's something you're interested in. It's important to set up budget alerts as a safety net and be mindful of the resources you deploy and their associated costs. This way, you can take full advantage of PAYG while keeping your spending in check.

Sometimes it's complicated to launch an instance due to the "Out of Capacity" error. Here we’re solving that issue as Oracle constantly adds Cloud capacity from time to time.

Most relevant manual is in the README https://github.com/hitrov/oci-arm-hos...

NB! No need to modify any value in index.php file anymore!
Copy .env.example to .env and adjust there instead.

Written the tutorial some time ago:
  / resolving-oracle-cloud-out-of-capacity-iss...  

Was proposed to create a video instruction of script usage:
  / resolving_oracle_cloud_out_of_capacity_iss...  

NB Highly recommended to read article first!

Always free Google Cloud Platform instance was used in this tutorial. PHP and composer were installed during the video. As well as periodic job (cron) was setup.

If your browser downloads *.cer file (instead of needed *.pem) in Oracle Cloud Console, please convert, use search engine for any tutorial available on the web.

Command used:
git clone https://github.com/hitrov/oci-arm-hos...
cd oci-arm-host-capacity/
composer install
which php
sudo apt update
sudo apt install php libapache2-mod-php
php -v
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
sudo apt-get install zlibc -y
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
sudo apt install php7.4-curl
sudo apt install php7.4-dom
sudo apt install php7.4-mbstring
sudo apt install php7.4-zip php7.4-unzip
sudo apt install unzip -y
nano index.php
mv ~/oracleidentitycloudservice_petitprops-09-23-07-11.pem .
ls /var/www/html/
cd ..
sudo mv ~/oci-arm-host-capacity /var/www/html/
/usr/bin/php /var/www/html/oci-arm-host-capacity/index.php
cd /var/www/html/oci-arm-host-capacity/
touch log.txt
chmod 777 log.txt
cat log.txt
nano log.txt
sudo crontab -e
date

show more

Share/Embed