new self-hosted runner is failing to start #174183
Replies: 7 comments
-
|
Okay I figured after posting: But this requires more clicks in that web page shown above ― you have to click the top box with the wording "copilot" in it ― which is a little non-intuitive. Please improve the usability of that page for other future cases ... The current workflow for zooming on agent errors is really prone to missing out. |
Beta Was this translation helpful? Give feedback.
-
|
Back to my original specific error:
All-in-all it seems the runner won't agree to run as root, nor as a non-root user without sudo, nor as a non-root user granted sudo, as I tried all three options. If it's a specific permissions issue then the succinct error text does not tell more. Perhaps someone can explain what I should do differently? |
Beta Was this translation helpful? Give feedback.
-
|
Digging in the I tried to pluck out the entire related block up here, which relates back to the start of this thread. |
Beta Was this translation helpful? Give feedback.
-
|
Should I supply more data from The contents of name: Copilot Setup Steps
permissions:
contents: read
jobs:
copilot-setup-steps:
runs-on: self-hosted
steps:
- name: Set up and enter a Python virtual environment
run: |
python3 -m venv .venv
source .venv/bin/activate |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
Thanks Aqib, this is a lot of things to check, and I think I'll keep it for next times around. Perhaps I should have installed the runner in the container as the non-root user to begin with and it is failing as it doesn't own all files/directories of the deflated runner files tree. For now I'll skip using AI as I'm helping improve runner ergonomics rather than gaining knowledge inside my actual target implementation domain.
I thank you for your comments, which should likely be pinned somewhere as a diagnostic how-to, but then, more automation and developer attention to details should avoid most of IMHO! |
Beta Was this translation helpful? Give feedback.
-
|
In one case few weeks back it was asking/using sudo, which implies using container isolation to me. However the current setup instruction page avoids detailing how to set up with containerized running ― that's a little too dead-ended to me ― as there should be a recipe in that page or anywhere at all for making it through to a secure container setup rather than only a cascade of error informational messages to bounce potential users of self-hosted runners around different ways towards successful operation ― even if they are a kind of dev-ops hardened :-) crowd of inidividuals. Maybe I'm just missing something obvious or it's not really meant for github outsiders to use this option so much. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
Copilot Agent Mode
Body
Is this a known issue that's new?
On the local machine running the runner, inside a docker image:
The image is used for safety as I had the runner request sudo permissions before as much as I recall. The docker image is Ubuntu 24.04 based and is successfully used for verifying a complex bazel build.
I'm trying to reuse this well-tested image for running a self-hosted runner which then (if the runner is fixed to work) can facilitate copilot running those builds to verify its work, when copilot is dispatched at its "agent mode" on github.com.
Of course, my workflow file used by copilot is already configured to use my self-hosted runner, which as seen below it does successfully contact, but then it fails with the top of this message error shown in that agent detailed logs page, shown above.
Beta Was this translation helpful? Give feedback.
All reactions