Traefik doesn't work [binary format]

Help, I'm trying to start traefik from binary format, but I can't.

I used the official instruction :
Grab the latest binary from the releases page.

tar -zxvf traefik_${traefik_version}_linux_${arch}.tar.gz

And run it:
./traefik --help

but I got the error:
bash: ./traefik: cannot execute binary file: Exec format error
When I used sudo I caught this error:
./traefik: 1: Syntax error: end of file unexpected

Could you help me?

Looks like you grabbed the binary for another system type. Like downloading arm64 vs amd64.

What are the outputs of uname -p and file traefik ?

uname -p
x86_64

file traefik
traefik: Mach-O 64-bit x86_64 executable

I should have asked you for uname -a. :smiley:

You downloaded the darwin build for OS X, it that what you are running on ?

Linux mimik-System-Product-Name 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I need v2+ could you give me the link to download? I'm absolutely confused)

https://github.com/traefik/traefik/releases/download/v2.4.8/traefik_v2.4.8_linux_amd64.tar.gz

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.