`cml launch` fails to start runners with terraform error

Open
#1,479 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, github-actions, javascript, terraform

Research direction

Reproduce the exact cml runner launch command in GitHub Actions using iterative/setup-cml@v3, then inspect src/utils.js around line 38 and the Terraform invocation. Compare the behavior with CML 0.20.4 and determine why the runner launch reports terraform,version; done means identifying and fixing the launch failure or documenting the confirmed cause.

Written by the indexing model from the issue text.

Description

Hello,
I am getting the following error when trying to launch some runners with cml launch on github actions.

{"level":"error","message":"terraform,version\n\t\n\t","stack":"Error: terraform,version\n\t\n\t\n    at /snapshot/cml/src/utils.js:38:18\n    at exithandler (node:child_process:406:5)\n    at ChildProcess.errorhandler (node:child_process:418:5)\n    at ChildProcess.emit (node:events:527:28)\n    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)\n    at onErrorNT (node:internal/child_process:478:16)\n    at processTicksAndRejections (node:internal/process/task_queues:83:21)"}

The exact command i'm trying to run is:

 cml runner launch \
    --cloud=aws \
    --cloud-region=eu-west-2 \
    --cloud-type=m7i.large \
    --cloud-hdd-size 100 \

I am running cml version 0.20.4 and setting it up using the iterative/setup-cml@v3 action.

Thank you in advance!

Dominant language
JavaScript
Stars
4.2k
Forks
345
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from iterative/cml

All issues in iterative/cml

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.