actions-runner-controller icon indicating copy to clipboard operation
actions-runner-controller copied to clipboard

Error: Unable to locate executable file: ssh

Open ianbabysre opened this issue 1 month ago • 6 comments

Checks

  • [x] I've already read https://github.com/actions/actions-runner-controller/blob/master/TROUBLESHOOTING.md and I'm sure my issue is not covered in the troubleshooting guide.
  • [x] I'm not using a custom entrypoint in my runner image

Controller Version

summerwind/actions-runner-controller:v0.27.5

Helm Chart Version

0.23.5

CertManager Version

1.13.1

Deployment Method

Helm

cert-manager installation

Yes Cert-manager is working fine

Checks

  • [x] This isn't a question or user support case (For Q&A and community support, go to Discussions. It might also be a good idea to contract with any of contributors and maintainers if your business is so critical and therefore you need priority support
  • [x] I've read releasenotes before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes
  • [x] My actions-runner-controller version (v0.x.y) does support the feature
  • [x] I've already upgraded ARC (including the CRDs, see charts/actions-runner-controller/docs/UPGRADING.md for details) to the latest and it didn't fix the issue
  • [x] I've migrated to the workflow job webhook event (if you using webhook driven scaling)

Resource Definitions

N/A

To Reproduce

You can exec into a pod and try to clone a repository and will get an error regarding ssh package not being installed

Describe the bug

Since yesterday at around 14h Paris time, our ci jobs started to fail with error Error: Unable to locate executable file: ssh. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

Describe the expected behavior

Expected behavior : be able to clone a git repository (with action/checkout for example)

Whole Controller Logs

N/A

Whole Runner Pod Logs

N/A

Additional Context

Our team rebuild the docker image by adding the ssh client again Example bellow (i do not recommend using latest)

FROM summerwind/actions-runner:latest

USER root

RUN apt-get update -y \
  && apt-get install openssh-client -y \
  && rm -rf /var/lib/apt/lists/*


USER runner

My question is : did the summerwind contributors removed the ssh clients ? If yes, where could we have been informed of the change ?

I'm posting this because others might run into the same issue and i wanted to offer a quick solution, i hope that's okay !

ianbabysre avatar Oct 31 '25 09:10 ianbabysre

Hello! Thank you for filing an issue.

The maintainers will triage your issue shortly.

In the meantime, please take a look at the troubleshooting guide for bug reports.

If this is a feature request, please review our contribution guidelines.

github-actions[bot] avatar Oct 31 '25 09:10 github-actions[bot]

Looks like the latest tag in summerwind/actions-runner points to version that is missing ssh. Using the exact version tag (e.g. v2.329.0-ubuntu-20.04) seems to resolve the issue.

tpokki avatar Oct 31 '25 11:10 tpokki

It seems previous latest release was based on ubuntu20.04 image as I have similar issue but with ping and nslookup.

There is significantly more binaries in /usr/bin/ in 20.04 compared to 22.04 and recently added 24.04:

for VERSION in latest \
               v2.329.0-ubuntu-24.04 \
               v2.329.0-ubuntu-22.04 \
               v2.329.0-ubuntu-20.04 \
               v2.328.0-ubuntu-22.04 \
               v2.328.0-ubuntu-20.04 \
               v2.327.0-ubuntu-22.04 \
               v2.327.0-ubuntu-20.04
do
  echo "------ $VERSION ------"
  docker run --rm summerwind/actions-runner-dind:$VERSION 'ls -l /usr/bin/ | wc -l'
done
------ latest ------
485
------ v2.329.0-ubuntu-24.04 ------
485
------ v2.329.0-ubuntu-22.04 ------
487
------ v2.329.0-ubuntu-20.04 ------
686
------ v2.328.0-ubuntu-22.04 ------
487
------ v2.328.0-ubuntu-20.04 ------
686
------ v2.327.0-ubuntu-22.04 ------
487
------ v2.327.0-ubuntu-20.04 ------
686

tvarohohlavy avatar Nov 03 '25 10:11 tvarohohlavy

I have noticed that make is also not available. I guess you should rebuild latest with all that was installed before. I think that maybe the latest ubuntu package repos changes has something to do with this

ealogar avatar Nov 04 '25 10:11 ealogar

Looks like this PR: https://github.com/actions/actions-runner-controller/pull/4061 add the missing binaries ?

ealogar avatar Nov 04 '25 11:11 ealogar

Looks like this PR: #4061 add the missing binaries ?

For anyone else affected by this issue, please show your support on the PR (e.g., with a 👍 reaction or a comment) to help it get prioritized.

valeriy-soloviov-wd avatar Nov 09 '25 12:11 valeriy-soloviov-wd