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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Private file does not exist Error

sdidd opened this issue · comments

I know there is a troubleshooting option but i did everything required uploaded the api key to a oracle bucket took a pre authorized link and added a secret aswell with double quotes sometimes without double quotes. Chnaged the link with latest oracle specification still it says private key not founf is there any other troubleshooting step i am missing??

`name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

schedule:
- cron: '*/6 * * * *'

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4']
name: integration-tests (PHP ${{ matrix.php-versions }})
steps:
- uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Validate composer.json and composer.lock
run: composer validate

  - name: Get Composer Cache Directory
    id: composer-cache
    run: |
      echo "::set-output name=dir::$(composer config cache-files-dir)"
  - uses: actions/cache@v2
    with:
      path: ${{ steps.composer-cache.outputs.dir }}
      key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}
      restore-keys: |
        ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-

  - name: Install dependencies
    run: |
      composer update --prefer-dist --no-progress
  - name: Run script
    run: |
      php index.php
    env:
      OCI_REGION: ${{ secrets.OCI_REGION }}
      OCI_USER_ID: ${{ secrets.OCI_USER_ID }}
      OCI_TENANCY_ID: ${{ secrets.OCI_TENANCY_ID }}
      OCI_KEY_FINGERPRINT: ${{ secrets.OCI_KEY_FINGERPRINT }}
      OCI_PRIVATE_KEY_FILENAME: ${{ secrets.OCI_PRIVATE_KEY_FILENAME }}
      OCI_AVAILABILITY_DOMAIN: ${{ secrets.OCI_AVAILABILITY_DOMAIN }}
      OCI_SUBNET_ID: ${{ secrets.OCI_SUBNET_ID }}
      OCI_IMAGE_ID: ${{ secrets.OCI_IMAGE_ID }}
      OCI_OCPUS: ${{ secrets.OCI_OCPUS }}
      OCI_MEMORY_IN_GBS: ${{ secrets.OCI_MEMORY_IN_GBS }}
      OCI_SHAPE: ${{ secrets.OCI_SHAPE }}
      OCI_MAX_INSTANCES: ${{ secrets.OCI_MAX_INSTANCES }}
      OCI_SSH_PUBLIC_KEY: ${{ secrets.OCI_SSH_PUBLIC_KEY }}
      AD_ALWAYS_FREE: ${{ secrets.AD_ALWAYS_FREE }}`
      
    My php script.

Try changing echo "$OCI_PRIVATE_KEY_FILENAME" && php index.PHP I bet there’s smth wrong with it

What wrong could there be. Anyways I will try to run it in a local vm with .env file and let you know

Alright so created a local envoirnemnt and it works just the bucket thing of setting a secret with URL dosent work.