zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.28k stars 973 forks source link

postgres-operator-ui:v1.12.0 exec format error on ARM64 #2649

Closed acelinkio closed 3 months ago

acelinkio commented 4 months ago

Please, answer some short questions which should help us to understand your problem / question better?

On v1.12.0 of the UI, I am getting exec error on ARM based host. I see there is an ARM based image published to ghcr.io but still getting this exec format error. Did not have this error on v1.11.0 of the ui. Also do NOT have this error with 1.12.0 of the postgres-operator.

exec /usr/local/bin/python: exec format error
goshkis commented 3 months ago

I'm getting this error even on 1.11.0. v1.29.4+k3s1

Installed with helm helm install postgres-operator-ui postgres-operator-ui-charts/postgres-operator-ui (...and with: --version 1.11.0)

Also tried -ui image from ghcr.io

FxKu commented 3 months ago

@goshkis @acelinkio Can you pull the latest image from master branch and try again? Should be registry.opensource.zalan.do/acid/postgres-operator-ui:v1.12.0-2-g1f47f592

I want to do a patch release today and want to make sure this is fixed.

crkochan commented 3 months ago

I pulled registry.opensource.zalan.do/acid/postgres-operator-ui:v1.12.0-2-g1f47f592 and tried to run it.

No joy I'm afraid.

exec /usr/local/bin/python: exec format error

Metal arm64, RK1 / Rockchip RK3588 Talos v1.7.2 k8s v1.30.1

FxKu commented 3 months ago

maybe it's because the registry.opensorce... image is not a multi-arch image and can only run on amd64. @crkochan can you share your exec command?

crkochan commented 3 months ago

No exec command is being specified. By "pulled", I mean I patched the deployment object created by the postgres-operator-ui helm chart (v1.12.0, btw).

kubectl patch deployment postgres-operator-ui -p '{"spec":{"template":{"spec":{"containers":[{"name":"service", "image":"registry.opensource.zalan.do/acid/postgres-operator-ui:v1.12.0-2-g1f47f592"}]}}}}'
FxKu commented 3 months ago

We have released a fixed version of the 1.12 release today. I hope the issue is gone now with the 1.12.2 version. If not I would ask you to investigate and maybe come up with a PR as we don't get this error on our arm machines.

acelinkio commented 3 months ago

Confirmed that 1.12.2 is working on my arm hardware. Image being used: ghcr.io/zalando/postgres-operator-ui:v1.12.2

closing ticket. thanks @FxKu