Create self-hosted runner command execution error

I am trying to create self-hosted runner from gitbash in my local machine.
Have executed all commands successfully except the last one:
./config.sh --url https://github.com/dipen80/TestRepo --token AKUJQH4RZ4DYXPD4QOJJKVDBOELZ6

  • This is throwing error “./config.sh: line 80: ./bin/Runner.Listener: cannot execute binary file: Exec format error”.

Can you please suggest how to resolve this error?

Thanks
Dipen

Not sure what gitbash is. But the most likely explanation is that you’re trying to run a Linux self-hosted runner on Windows, or an a amd64 runner on arm64 or similar.

Where did you get the “self hosted runner”?

It is now May 2022 but for anyone else who runs across this error. I got this wehn trying to setup the ARM64 runner on Amazon EC2 instance.

I was able to fix it by running the following commands before running the ./config.sh command.
sudo yum update -y
sudo yum install -y libicu60 jq

1 Like

Hey @tlsimmons88 thanks for chiming in with the fix! Appreciate it :heart:

This post was flagged by the community and is temporarily hidden.