Skip to content

oci cli installation is failing with an error"The process '/home/runner/.local/bin/oci' failed with exit code 2" #62

@kondurure

Description

@kondurure

oci cli installation is failing with an error"The process '/home/runner/.local/bin/oci' failed with exit code 2"

/home/runner/work/_actions/oracle-actions/run-oci-cli-command/v1.3.2/node_modules/@actions/exec/lib/toolrunner.js:592
error = new Error(The process '${this.toolPath}' failed with exit code ${this.processExitCode});
^
Error: The process '/home/runner/.local/bin/oci' failed with exit code 2
at ExecState._setResult (/home/runner/work/_actions/oracle-actions/run-oci-cli-command/v1.3.2/node_modules/@actions/exec/lib/toolrunner.js:592:1)
at ExecState.CheckComplete (/home/runner/work/_actions/oracle-actions/run-oci-cli-command/v1.3.2/node_modules/@actions/exec/lib/toolrunner.js:575:1)
at ChildProcess. (/home/runner/work/_actions/oracle-actions/run-oci-cli-command/v1.3.2/node_modules/@actions/exec/lib/toolrunner.js:469:1)
at ChildProcess.emit (node:events:524:28)
at maybeClose (node:internal/child_process:1104:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

github task:
- name: Configure OCI CLI
uses: oracle-actions/[email protected]
with:
command: "setup config --file ~/.oci/config --user ${{ env.OCI_CLI_USER }} --tenancy ${{ env.OCI_CLI_TENANCY }} --region ${{ env.OCI_CLI_REGION }} --fingerprint ${{ env.OCI_CLI_FINGERPRINT }} --key-content '${{ env.OCI_CLI_KEY_CONTENT }}'"

here all secrets are working fine , since able to install and connect oci resources with below two stages

  • name: Install OCI CLI
    run: |
    python3 -m pip install oci-cli

    • name: OCI CLI config setup
      run: |
      mkdir -p ~/.oci
      echo "${OCI_CLI_KEY_CONTENT}" > ~/.oci/oci_api_key.pem
      chmod 600 ~/.oci/oci_api_key.pem
      cat < /.oci/config
      [DEFAULT]
      user=${OCI_CLI_USER}
      fingerprint=${OCI_CLI_FINGERPRINT}
      key_file=
      /.oci/oci_api_key.pem
      tenancy=${OCI_CLI_TENANCY}
      region=${OCI_CLI_REGION}
      EOF

can help to get am i missing anything usage of task oracle-actions/[email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions