CML runner launch command not working

Open
#102 2 comments 1 reaction 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
gcp, github-actions, terraform, typescript
Domain
ci-cd, cloud, devops

Research direction

Reproduce the cml runner launch command with the provided GitHub Actions configuration and inspect the serial-console output. Start with cml/src/utils.js, which appears in the stack trace, and investigate the reported Terraform version failure; done means the provisioned GCP VM starts the CML service instead of being terminated.

Written by the indexing model from the issue text.

Description

Since beginning of this week, the cml runner launch command is failing to provision a VM.
The VM provisioning works, but the service is unable to start the VM gets terminated.

jobs:
  deploy-runner:
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v3
      - uses: iterative/setup-cml@v2
      - name: deploy runner
        env:
          GOOGLE_APPLICATION_CREDENTIALS_DATA: ${{ secrets.CML_AI_GCLOUD_SERVICE_ACCOUNT_KEY }}
        run: | 
          cml runner launch --cloud=gcp --cloud-type=g2-standard-16+nvidia-l4*1 --name=test-name --labels="val,bk0000,L4" --token=${{ secrets.CML_GITHUB_TOKEN }} --repo=https://github.com/***/**.git --cloud-hdd-size=200 --idle-timeout=1200 --log=debug --cloud-region=us-central1-a

Some logs from the serial console

cml.sh[39067]: {"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)"}
Jun 12 08:50:32 cml-test-name-mqmvh9j6-5383uaw2 systemd[1]: cml.service: Main process exited, code=exited, status=1/FAILURE
Jun 12 08:50:32 cml-test-name-mqmvh9j6-5383uaw2 systemd[1]: cml.service: Failed with result 'exit-code'.

Would there be a fix for this issue? Or shoudl we use our own startup scripts?

Any suggestions are much appreciated

Dominant language
TypeScript
Stars
34
Forks
12
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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/setup-cml

All issues in iterative/setup-cml

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.