standard_init_linux.go:178: exec user process caused exec format error
I forgot to put
#!/bin/bash
at the top of the sh file, problem solved.
Docker error: standard_init_linux.go:228: exec user process caused: exec format error
A "multiarch" Python interpreter built on MacOS is intended to target MacOS-on-Intel and MacOS-on-Apple's-arm64.
There is absolutely no binary compatibility with Linux-on-Apple's-arm64, or with Linux-on-aarch64. You can't run MacOS executables on Linux, no matter if the architecture matches or not.
standard_init_linux.go:211: exec user process caused exec format error
I can see that you add the command command: [/app/helloworld.py]
to yaml file.
so you need to (in Dockerfile):
RUN chmod +x /app/helloworld.py
set shebang to your py
file:
#!/usr/bin/env python # whatever your defualt python to run the script
or setup the command the same as you did in Dockerfile
exec user process caused: exec format error' in AWS Fargate Service
I think you've identified your problem.
You're building your images on Apple's M1 chip, which is an ARM architecture. Fargate is probably running on the more common Intel x86-64 architecture. Images you build locally on your Mac aren't going to be able to run there.
The easiest solution is probably to have your images build automatically in Docker Hub (or use a Github Action to build them in Github).
I don't have all the details about how you're building and deploying your images, so it's possible I'm missing some details.
standard_init_linux.go:219: exec user process caused: exec format error
I forgot to put #!/bin/sh
on the top of 'gunicorn.sh'. Adding this line fixed the problem.
standard_init_linux.go:207: exec user process caused exec format error
I've experienced similar issues that was caused by the docker image being built on one architecture (say AMD64) but then failed when trying to run on a different architecture (ARM64).
Look into QEMU
tutorial
docker ref
Related Topics
Two Versions of Python on Linux. How to Make 2.7 the Default
Uninstall Python Built from Source
Force Another Program'S Standard Output to Be Unbuffered Using Python
Webdriverwait Not Working as Expected
Convert Columns into Rows With Pandas
Why Doesn't Calling a String Method Do Anything Unless Its Output Is Assigned
Local Variables in Nested Functions
What Is the Purpose of the Return Statement? How Is It Different from Printing
Generator Expressions Vs. List Comprehensions
How to Install Pygame on Python Via Pip (Windows 10)
Extracting Text from Ms Word Files in Python
Force Python to Use an Older Version of Module (Than What I Have Installed Now)
How to Find and Install the Dependencies For Pygame
How to Iterate Over Rows in a Dataframe in Pandas
How to Group Dataframe Rows into List in Pandas Groupby