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.

The self-hosted runner: cml-xxx lost communication with the server

See original GitHub issue

Hi everyone, i have a problem when i using CML to create host runner.

Log issue: The self-hosted runner: cml-xxx lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.

My cml.yaml:

name: CML Report
on:
  push:
    branches:
    - master
jobs:
  deploy-runner:
    runs-on: ubuntu-latest
    steps:
      - uses: iterative/setup-cml@v1
      - uses: actions/checkout@v2
      - name: Deploy runner on EC2
        env:
          REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
          GOOGLE_APPLICATION_CREDENTIALS_DATA: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_DATA }}
        run: |
          cml runner \
              --cloud=gcp \
              --cloud-region=us-west \
              --cloud-type=e2-highmem-4 \
              --labels=cml-cpu \
  evaluate:
    needs: [deploy-runner]
    runs-on: [self-hosted, cml-cpu]
    container:
      image: docker://ghcr.io/iterative/cml:0-dvc2-base1
    steps:
      - uses: actions/checkout@v2
      - name: Generate metrics report
        env:
          REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
          GOOGLE_APPLICATION_CREDENTIALS_DATA: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_DATA }}
        run: |
          pip install -r requirements.txt
          dvc repro
          echo "## Metrics" >> report.md
          dvc metrics show --show-md >> report.md
          cml send-comment report.md

Any solution? Thanks all!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
TorRientcommented, Jun 9, 2022

The best solution is to not use cml runner, create runner on GitHub client and use VM instance on GCP / AWS … connect to it 👍

1reaction
DavidGOrtegacommented, Jun 9, 2022

duplicated of #1014

Read more comments on GitHub >

github_iconTop Results From Across the Web

Boarding Pass - Alle Billette bitte!
I'm on work experience http://xnxx.in.net/stats/xnxxstat-186.html xxx Administration officials declined to elaborate, but analysts and congressional aides ...
Read more >
Star Wars Comments - Wedding Cakes
Zimmerman claimed self-defense in the shooting incident, saying he shot Martin ... them drifting alone in orbit – with no communication from Earth....
Read more >
Charlevoix 2014 - 47 - Northern Michigan Brass Band
I'm hoping to start my own website soon but I'm a little lost on everything. ... an officer and founding member of the...
Read more >
Pznajesz się na zdjęciu?? Zgłoś się do mnie !! Hehe :D
Hello NOT SATISFIED WITH YOUR HOSTING ? GET A NEW ONE for zrobdemota.pl Check Out Our Coupons for This Month & Get Your...
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