actions / actions/runner

Linux runner image on arm64 mac - ./bin/Runner.Listener: cannot execute binary file

Open
#3,288 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug Stale
Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

Describe the bug
When using an m1 mac, selecting a linux runner image for arch arm64, ./config.sh --url ... results in
./config.sh: line 80: ./bin/Runner.Listener: cannot execute binary file

To Reproduce
Steps to reproduce the behavior:

  1. Be on m1 mac, sonoma 14.4, arm64
  2. Select Linux runner image & select architecture arm64
  3. Run commands listed (mkdir, cd, curl to download, validate hash, extract installer, create the runner and start config
  4. ./config.sh --url https://git.innova-partners.com/demo-org/demo-repo --token AAAAITISMYTOKEN
  5. view error ./config.sh: line 80: ./bin/Runner.Listener: cannot execute binary file

Expected behavior
Configuration starts

Runner Version and Platform

Starts up fine when using macos x64 -- Current runner version: '2.303.0'

OS of the machine running the runner? OSX/Windows/Linux/...
OSX

What's not working?

Please include error messages and screenshots.
./config.sh: line 80: ./bin/Runner.Listener: cannot execute binary file
Screenshot 2024-05-15 at 4 45 54 PM

Runner and Worker's Diagnostic Logs

If applicable, add relevant diagnostic log information. Logs are located in the runner's _diag folder. The runner logs are prefixed with Runner_ and the worker logs are prefixed with Worker_. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure on an M1 Mac running Sonoma with the Linux arm64 runner image, using config.sh and the downloaded bin/Runner.Listener. Inspect the selected runner package and its architecture before configuration; done means ./config.sh starts successfully for the Linux arm64 image.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, shell
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.