cml
cml copied to clipboard
`cml launch` fails to start runners with terraform error
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!
For anyone else who finds this issue we found that the problem may be related to some interaction with the latest Ubuntu version. We were using the default ubuntu-latest which now maps to 24.04. Explicitly setting this to 22.04 resulted in this error going away.
e.g.
jobs:
deploy-runner:
runs-on: ubuntu-22.04