myoung34 / docker-github-actions-runner

This will run the new self-hosted github actions runners with docker-in-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An error occurred: Not configured. Run config.(sh/cmd) to configure the runner

jasonyates opened this issue · comments

I'm attempting to run this as ephemeral against a GH Enterprise deployment. My .env file looks as follows:

RUNNER_SCOPE=repo
REPO_URL=XXXXX

ACCESS_TOKEN=XXXX
GITHUB_HOST=XXXXXX

RUNNER_WORKDIR=/tmp/runner/work
DISABLE_AUTO_UPDATE=1
EPHEMERAL=1

The container fails to start with the following error

May 14 12:22:50  systemd[1]: ephemeral-github-actions-runner.service holdoff time over, scheduling restart.
May 14 12:22:50  systemd[1]: Stopped Ephemeral GitHub Actions Runner Container.
May 14 12:22:50  systemd[1]: Starting Ephemeral GitHub Actions Runner Container...
May 14 12:22:50  docker[22958]: Error response from daemon: No such container: ephemeral-github-actions-runner
May 14 12:22:50  docker[22964]: Error: No such container: ephemeral-github-actions-runner
May 14 12:22:51  docker[22973]: latest: Pulling from myoung34/github-runner
May 14 12:22:51  docker[22973]: Digest: sha256:8751f83f044add7eb81fa2b5ca3ed06136b688e6a43b4ffaaa75d40c4c266c24
May 14 12:22:51  docker[22973]: Status: Image is up to date for myoung34/github-runner:latest
May 14 12:22:51  docker[22973]: docker.io/myoung34/github-runner:latest
May 14 12:22:51  systemd[1]: Started Ephemeral GitHub Actions Runner Container.
May 14 12:22:52  docker[22988]: Runner reusage is disabled
May 14 12:22:52  docker[22988]: Obtaining the token of the runner
May 14 12:22:52  docker[22988]: Ephemeral option is enabled
May 14 12:22:52  docker[22988]: Disable auto update option is enabled
May 14 12:22:52  docker[22988]: Configuring
May 14 12:22:53  docker[22988]: --------------------------------------------------------------------------------
May 14 12:22:53  docker[22988]: |        ____ _ _   _   _       _          _        _   _                      |
May 14 12:22:53  docker[22988]: |       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
May 14 12:22:53  docker[22988]: |      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
May 14 12:22:53  docker[22988]: |      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
May 14 12:22:53  docker[22988]: |       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
May 14 12:22:53  docker[22988]: |                                                                              |
May 14 12:22:53  docker[22988]: |                       Self-hosted runner registration                        |
May 14 12:22:53  docker[22988]: |                                                                              |
May 14 12:22:53  docker[22988]: --------------------------------------------------------------------------------
May 14 12:22:53  docker[22988]: # Authentication
May 14 12:22:54  docker[22988]: √ Connected to GitHub
May 14 12:22:54  docker[22988]: # Runner Registration
May 14 12:22:54  docker[22988]: An Internal Error Occurred. Activity Id: ed929172-b175-4106-8920-1c1655204e97.
May 14 12:22:54  docker[22988]: An error occurred: Not configured. Run config.(sh/cmd) to configure the runner.

This appears to be related to EPHEMERAL=1 . If I remove that option, the container starts successfully.

What is your "GH Enterprise" Enterprise Cloud, or Enterprise Server?
If you use Enterprise Server and that version is under 3.3, I'm not sure but it may be you cannot use EPHEMERAL=1.

EPHEMERAL=1 just enables --ephemeral feature when running the original self-hosted runner command, and this option rely on server side feature.

Thanks. I checked with my Enterprise Server GH team and they confirmed we are still running 3.2.