Skip to content

How to fix cp: cannot stat '/actions-runner/_diag': No such file or directory cp: cannot stat '/actions-runner/svc.sh': No such file or directory #426

@sustainjane98

Description

@sustainjane98

After a few hours of work the runner crashed and now it shows this message, I don't understand please help:

Runner reusage is enabled
Copying previous data
The runner has already been configured
Reusage is enabled. Storing data to /runner/data
cp: cannot stat '/actions-runner/_diag': No such file or directory
cp: cannot stat '/actions-runner/svc.sh': No such file or directory
√ Connected to GitHub
2025-02-22 20:42:26Z: Runner connect error: Registration was not found or is not medium trust. ClientType: . Retrying until reconnected.
√ Connected to GitHub

This is my docker-compose:

services:
  worker:
    environment:
      ACCESS_TOKEN: valid_token
      CONFIGURED_ACTIONS_RUNNER_FILES_DIR: /runner/data
      LABELS: linux,x64
      REPO_URL: https://github.com/sustainjane98/bots
      RUNNER_NAME: sustainjane-runner
      RUNNER_SCOPE: repo
      RUNNER_WORKDIR: /tmp/runner/work
    image: myoung34/github-runner:latest
    security_opt:
      - label:disable
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /mnt/storage-1/apps/github-runner/data:/runner/data
      - /tmp/runner:/tmp/runner


A hint is that the runner was registered once in github, but it isn't there anymore in the ui, so I guess it got removed correctly but not sure.

OS: truenas ElectricEel-24.10.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions