question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`terraform: command not found`

See original GitHub issue

Found within a GH runner

{"level":"warn","message":"ignoring RUNNER_NAME environment variable, use CML_RUNNER_NAME or --name instead"}
{"level":"error","message":"terraform version\n\t\n\t/bin/sh: terraform: command not found\n","stack":"Error: terraform version\n\t\n\t/bin/sh: terraform: command not found\n\n    at /usr/local/lib/node_modules/@dvcorg/cml/src/utils.js:[20](https://github.com/DavidGOrtega/fashion_mnist/runs/6076057465?check_suite_focus=true#step:4:20):27\n    at ChildProcess.exithandler (node:child_process:406:5)\n    at ChildProcess.emit (node:events:526:28)\n    at maybeClose (node:internal/child_process:1092:16)\n    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)","status":"terminated"}
{"level":"info","message":"waiting 10 seconds before exiting..."}
Error: Process completed with exit code 1.

example workflow

name: train-my-model

on: [push]

jobs:
  deploy-runner:
    runs-on: [macos-latest]
    env:
      REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
      AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
      AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
      AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
      AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
    steps:
      - uses: actions/checkout@v2
      - uses: iterative/setup-cml@v1

      - name: deploy
        shell: bash
        run: |
          cml --version
          cml-runner \
            --reuse \
            --cloud-spot \
            --cloud azure \
            --cloud-region us-west \
            --cloud-type Standard_D2S_v3 \
            --labels cml

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
0x2b3bfa0commented, Apr 19, 2022

Issue & Fix

on: workflow_dispatch
jobs:
  issue:
    runs-on: macos-latest
    steps:
      - run: terraform --version
  fix:
    runs-on: macos-latest
    steps:
      - run: brew install hashicorp/tap/terraform
      - run: terraform --version
1reaction
DavidGOrtegacommented, Apr 19, 2022

There is nothing to repair, seems that GH has removed terraform from their runners. Has been today. Yesterday it worked perfectly

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terraform Command Not Found - Medium
Today, We have prepared to show you the video tutorial on how to install Terraform as well fix the error Terraform command not...
Read more >
Install Terraform - HashiCorp Developer
If you get an error that terraform could not be found, your PATH environment variable was not set up properly. Please go back...
Read more >
bash: terraform: command not found, export $PATH unresolved
And so the file exists, and the command fails. One solution is to remove the incorrect symlink /usr/bin/terraform and then re-run ln -s...
Read more >
Terraform not found on Mac OS Montero - Reddit
I installed the Terraform through installing the Homebrew. But i got zsh: command not found: terraform as the output from my terminal. Do...
Read more >
Fix Terraform not running even when added to Path ...
Follow the steps below on how to solve terraform command not recognized even when terraform is already added to the Path Environment ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found