Actions Runner update failed

We use docker for running our self-hosted GitHub Actions Runner, and the version is 2.263.0.
Today, the runner itself tried to update to the latest version, which is 2.273.1 and failed.

Runner update in progress, do not shutdown runner.
Downloading 2.267.1 runner
Downloading 2.267.1 runner
Downloading 2.267.1 runner
Waiting for current job finish running.
Generate and execute update script.
Runner will exit shortly for update, should back online within 10 seconds.
/tmp/_update.sh: line 31: ping: command not found
/tmp/_update.sh: line 31: ping: command not found

And I checked the logs and found the update script had tried to use ping but not found.
My question is: Why? In my opinion it shouldn’t assume the OS would have ping originally.

1 Like

Ping is not installed on docker images by default , please try to install it .

apt-get update
apt-get install iputils-ping

You could add the ping command to your dockerfile while you are creating your image.
For example:

FROM ubuntu
RUN apt-get update && apt-get install -y iputils-ping
CMD bash

No that’s NOT the point and it seems that you don’t know what I want to express in this thread. I fully understood how to install ping in Ubuntu - I’m complaining about GitHub, they tried to update the runner and assume the OS would have ping. IMHO it should run some pre-script before updating like install_dependencies.sh before starting the runner.

Sorry for misunderstanding your actual point. Would you mind sharing your idea in the actions/runner repo? You could create an issue here.

Done and the link is https://github.com/actions/runner/issues/597 :wave:
Thanks.