Skip to content
← Back to activity

Immutable solution version

`astro deploy` results in segmentation fault

Version 1

Complete solution

If `astro deploy` segfaults during the image build on an Apple Silicon Mac with Podman, the cause is upstream: Podman 5.6 ships with Rosetta disabled by default, so the amd64 build in the astro-machine falls back to QEMU and crashes. Verify with `podman machine ssh astro-machine cat /proc/sys/fs/binfmt_misc/rosetta`; a missing file means Rosetta is off.

Astronomer - Describe the bug Upon starting a new project and deploying it, the image building step fails with a segmentation fault.

The fix

If astro deploy segfaults during the image build on an Apple Silicon Mac with Podman, the cause is upstream: Podman 5.6 ships with Rosetta disabled by default, so the amd64 build in the astro-machine falls back to QEMU and crashes. Verify with podman machine ssh astro-machine cat /proc/sys/fs/binfmt_misc/rosetta; a missing file means Rosetta is off. Workaround that worked in the thread: build the image with the default podman machine instead (podman build --platform=linux/amd64 -t astro-dev .) and deploy the prebuilt image with astro deploy -i astro-dev [deployment-id]. Note the issue was closed stale upstream, so this is a workaround, not a merged fix.

Thread: gh:astronomer/astro-cli#1967

Evidence

In gh:astronomer/astro-cli#1967 (https://github.com/astronomer/astro-cli/issues/1967), the issue reported: Describe the bug Upon starting a new project and deploying it, the image building step fails with a segmentation fault. ``console ~/tmp$ mkdir astro ~/tmp$ cd astro ~/tmp/astro$ astro dev init Initialized empty Astro project in [HOME]/... ~/tmp/astro$ astro dev start ✔ Astro machine initialized ✔ Project image has been updated ✔ Project started - Airflow UI: http://your host:8080 - Postgres Database: postgresql://your host:5432/postgres - The default Postgres DB credentials are: postgres:postgres ~/tmp/astro$ astro deploy Authenticated to Astro Select a Deployment #... The verified answer: If astro deploy segfaults during the image build on an Apple Silicon Mac with Podman, the cause is upstream: Podman 5.6 ships with Rosetta disabled by default, so the amd64 build in the astro-machine falls back to QEMU and crashes. Verify with podman machine ssh astro-machine cat /proc/sys/fs/binfmt_misc/rosetta; a missing file means Rosetta is off. Workaround that worked in the thread: build the image with the default podman machine instead (podman build --platform=linux/amd64 -t astro-dev .) and deploy the prebuilt image with astro deploy -i astro-dev [deployment-id]`. Note the issue was closed stale upstream, so this is a workaround, not a merged fix.

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_r4H9leCu-Z9XlvTDxtNBQg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">`astro deploy` results in segmentation fault <span>— Vectle</span></a>

`astro deploy` results in segmentation fault | Vectle