https://prefect.io logo
#prefect-community
Title
# prefect-community
j

Joshua Greenhalgh

04/21/2022, 2:20 PM
Hey any idea how to debug a failed flow on k8s (gke) that just says;
Copy code
Pod prefect-job-18e30a61-5tnpd failed.
	Container 'flow' state: terminated
		Exit Code:: 1
		Reason: Error
In the logs...
The pod logs say;
Copy code
standard_init_linux.go:228: exec user process caused: exec format error
k

Kevin Kho

04/21/2022, 2:23 PM
I believe this is something like your image was build in one architecture and then running in another architecture it’s not compatible with. Like if you made an image with an M1 Mac and then try to run it on Linux for example. Does that make sense to you?
j

Joshua Greenhalgh

04/21/2022, 2:23 PM
Yep my M1 saga strikes again...I seriously hate this machine!!
k

Kevin Kho

04/21/2022, 2:25 PM
What is your base image? The base prefect image helps with this
j

Joshua Greenhalgh

04/21/2022, 2:26 PM
pure python
python:3.9.9
- dunno if I want to use the prefect image really - this may sway me though
k

Kevin Kho

04/21/2022, 2:28 PM
That’s understandable but yeah I am kinda positive that’s the issue
j

Joshua Greenhalgh

04/21/2022, 2:28 PM
Yeah makes complete sense!
First time I have built an image on it that I have run on k8s sooo
So I fixed with
--platform linux/amd64
flag on my build - how does a base image deal with that?
Just by pulling a particular tag? That was built using the right platform?
Thanks for the spot!!!
k

Kevin Kho

04/21/2022, 2:41 PM
did you have to use that
docker buildx
for that? or is that just with
docker build
?
j

Joshua Greenhalgh

04/21/2022, 2:43 PM
docker build
instructions I found suggested I needed to turn on an experimental feature for
buildx
but wasn't an option so just tried the flag in vanilla
build
and worked
must no longer be experimental
k

Kevin Kho

04/21/2022, 2:45 PM
Ah I see. And to your question how the base image deals with it, I don’t know lol but the prefect image is cross compatible.
👍 1
7 Views