question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raspberry Pi: "exec format error"

See original GitHub issue

Describe the bug

When I try and run the second command as provided in the Quickstart I get an error as below. Let me know if there’s anything I can do to help. Thankyou.

Steps to reproduce

$ docker run -v ~/archivebox:/data -it nikisweeting/archivebox manage createsuperuser

Screenshots or log output

standard_init_linux.go:211: exec user process caused "exec format error"

Software versions

  • OS: Raspbian 10 (buster)
  • Python version: 3.7.3
  • Chrome version: Chromium 84.0.4147.141 Built on Raspbian , running on Raspbian 10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chrismellercommented, Nov 16, 2020

@pirate You can actually use docker buildx to build images for different architectures. For instance, I use this to build for my Pi3 from my Windows desktop:

docker buildx build --platform=linux/arm/v7 .

1reaction
piratecommented, Nov 22, 2020

ARM is a bit of a special case. You need to build the image on an arm CPU for it to run on arm (or use buildx).

git clone https://github.com/pirate/ArchiveBox
cd ArchiveBox

docker build . -t archivebox
docker run -v ~/archivebox:/data -it archivebox manage createsuperuser
docker run -v ~/archivebox:/data -it archivebox ...
...

If it still doesn’t work after that, can you post the output of running the archivebox version command:

docker run -v ~/archivebox:/data -it archivebox version
Read more comments on GitHub >

github_iconTop Results From Across the Web

Exec format error - Raspberry Pi Forums
This error is almost always caused by trying to run x86 binaries on the Pi. It boils down to: You can't install arbitrary...
Read more >
cannot execute binary file: Exec format error on Raspberry Pi
You have just installed .NET on Raspberry Pi and executed the dotnet command on Bash, you received the error message above. One of...
Read more >
Raspberry Pi Exec Format Error · Issue #2331 · sharkdp/bat
-bash: /usr/local/bat/bat: cannot execute binary file: Exec format error What did you expect to happen instead? For it to work.
Read more >
Exec format error on Raspberry PI Raspbian.
Hi, The installable version of Burp comes with both an embedded version of Java alongside a version of Chromium (that is used as...
Read more >
How can I fix exec format error on raspberry pi 4 - Stack Overflow
It's a "LSB relocatable" file, which is not executable since it hasn't been linked because the -c in your command command gcc -march=native ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found