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
989 stars 497 forks source link

PHP Warning: file_get_contents(***): failed to open stream: HTTP request failed! HTTP/***.0 ***0*** Not Found #112

Closed Atreck closed 10 months ago

Atreck commented 10 months ago

I have been running the script for around a week or so and it has been generating successfully but yesterday, without any intervation, it has started spewing these errors repeatedly during the script run.


Run php index.php
  **mphp index.php
  shell: /usr/bin/bash -e {0}
  env:
    COMPOSER_PROCESS_TIMEOUT: 0
    COMPOSER_NO_INTERACTION: ***
    COMPOSER_NO_AUDIT: ***
    OCI_REGION: ***
    OCI_USER_ID: ***
    OCI_TENANCY_ID: ***
    OCI_KEY_FINGERPRINT: ***
    OCI_PRIVATE_KEY_FILENAME: ***
    OCI_AVAILABILITY_DOMAIN: 
    OCI_SUBNET_ID: ***
    OCI_IMAGE_ID: ***
    OCI_OCPUS: ***
    OCI_MEMORY_IN_GBS: ***
    OCI_SHAPE: ***
    OCI_MAX_INSTANCES: ***
    OCI_SSH_PUBLIC_KEY: ***
    TELEGRAM_USER_ID: 
    TELEGRAM_BOT_API_KEY: 
    AD_ALWAYS_FREE: 
    TEST_IMAGE_ID: 
    TEST_SUBNET_ID: 
PHP Warning:  file_get_contents(***): failed to open stream: HTTP request failed! HTTP/***.0 ***0*** Not Found
 in /home/runner/work/oci-arm-host-capacity/oci-arm-host-capacity/vendor/hitrov/oci-api-php-request-sign/src/Hitrov/OCI/Signer.php on line 2***5
PHP Fatal error:  Uncaught TypeError: Return value of Hitrov\OCI\Signer::getPrivateKey() must be of the type string or null, bool returned in /home/runner/work/oci-arm-host-capacity/oci-arm-host-capacity/vendor/hitrov/oci-api-php-request-sign/src/Hitrov/OCI/Signer.php:2***5
Stack trace:
#0 /home/runner/work/oci-arm-host-capacity/oci-arm-host-capacity/vendor/hitrov/oci-api-php-request-sign/src/Hitrov/OCI/Signer.php(7***): Hitrov\OCI\Signer->getPrivateKey()
#*** /home/runner/work/oci-arm-host-capacity/oci-arm-host-capacity/src/OciApi.php(***0): Hitrov\OCI\Signer->getHeaders()
#2 /home/runner/work/oci-arm-host-capacity/oci-arm-host-capacity/src/OciApi.php(***32): Hitrov\OciApi->call()
#3 /home/runner/work/oci-arm-host-capacity/oci-arm-host-capacity/index.php(7***): Hitrov\OciApi->getInstances()
#*** {main}
  thrown in /home/runner/work/oci-arm-host-capacity/oci-arm-host-capacity/vendor/hitrov/oci-api-php-request-sign/src/Hitrov/OCI/Signer.php on line 2***5
Error: Process completed with exit code 255.
hitrov commented 10 months ago

Guessing your link to private key expired

Atreck commented 10 months ago

Perfect, that fixed it, thank you very much!