witty-pilot-66879
05/12/2024, 8:00 PMmultipass
with k3s
on a MacBook M3, and it appears that Garden is not compatible with Kubernetes clusters on ARM processors. I'm encountering an exec format error
with the images for buildkitd, util, and default-backend. Upon checking Docker Hub, I noticed there are no linux/arm64
versions available. To support ARM-based Kubernetes clusters, it might be as straightforward as adjusting the pipeline for these repositories to also push arm64 images.
Can I compile these images myself and configure them within Garden? Is that part of the setup configurable?
https://cdn.discordapp.com/attachments/1239306293307637932/1239306293752365117/image.png?ex=6642716d&is=66411fed&hm=3620fd7c79f745b637a927aca1b6c47f5fcc0441cfcd56b143e4d1330e620458&
https://cdn.discordapp.com/attachments/1239306293307637932/1239306294092107816/image.png?ex=6642716d&is=66411fed&hm=10f671367b9ef4e60a3fd3bbf187afc7ae838d7cbf57a384c23ff6ba80b28ebf&freezing-pharmacist-34446
05/14/2024, 12:08 PMwitty-pilot-66879
05/19/2024, 12:25 PMwitty-pilot-66879
05/21/2024, 11:50 AMfreezing-pharmacist-34446
05/21/2024, 12:14 PMwitty-pilot-66879
05/21/2024, 10:06 PMfreezing-pharmacist-34446
05/24/2024, 6:51 AMfreezing-pharmacist-34446
05/24/2024, 2:02 PMwitty-pilot-66879
05/25/2024, 9:59 AMwitty-pilot-66879
05/25/2024, 10:25 AMlinux/arm64
will covert generic arm
Silicons but for AppleSilicons linux/arm/v6
and linux/arm/v7
are neededfreezing-pharmacist-34446
05/27/2024, 7:40 AMfreezing-pharmacist-34446
05/27/2024, 1:39 PMbig-spring-14945
05/28/2024, 1:33 PMlinux/arm64
versions of all our images at the moment. On Apple Silicon, the correct platform is linux/arm64
– linux/arm/v6
and linux/arm/v7
(where linux/arm
is an alias for v7
) are referring to older 32-bit ARM architectures. Are you sure v6 and v7 are needed for you on Apple Silicon?witty-pilot-66879
05/30/2024, 1:02 PMmoby/buildkit
supports linux/arm64
, linux/arm/v7
I was able to run moby/buildkit:v0.12.5-rootless
on a VM running on my MacBook M3. So, it seems like linux/arm/v6
is not requiredwitty-pilot-66879
05/30/2024, 1:18 PMgardendev/buildkit:v0.13.2
but I got the following error
https://cdn.discordapp.com/attachments/1239306293307637932/1245728162088878111/image.png?ex=6659ce42&is=66587cc2&hm=f013069184264b6bd125a0f8c204e46c37736cf602b9546ff327c441b248bea6&witty-pilot-66879
05/30/2024, 1:21 PMdeployment
while garden
command was still runningwitty-pilot-66879
05/30/2024, 1:23 PMgarden
cli will use gardendev/buildkit:v0.13.2
as a default image?freezing-pharmacist-34446
05/31/2024, 9:12 AMswift-garage-61180
06/04/2024, 11:37 AMbig-spring-14945
06/04/2024, 12:25 PMwitty-pilot-66879
06/04/2024, 9:31 PMmutagen sync
is crashing
https://cdn.discordapp.com/attachments/1239306293307637932/1247663961982107731/image.png?ex=6660d91d&is=665f879d&hm=9f338198843905de42d24801b0f9b77dc741522bcc4e20566b7bdfc470c4e52a&freezing-pharmacist-34446
06/06/2024, 12:42 PMGARDEN_ENABLE_NEW_SYNC=true garden deploy
witty-pilot-66879
06/11/2024, 11:17 AMcurved-intern-91221
06/11/2024, 1:18 PMGARDEN_ENABLE_NEW_SYNC=false garden util mutagen daemon stop
GARDEN_ENABLE_NEW_SYNC=true garden util mutagen daemon stop
curved-intern-91221
06/11/2024, 1:18 PMgarden deploy --sync
witty-pilot-66879
06/22/2024, 10:49 PMmutagen
https://cdn.discordapp.com/attachments/1239306293307637932/1254206667713675264/image.png?ex=6678a67b&is=667754fb&hm=052a046a3dcbc9e25cd60e2a31982e142c0a8587fba6d68a2379a16b9f4c73ac&witty-pilot-66879
06/22/2024, 11:13 PMcurved-intern-91221
06/25/2024, 11:25 AMpd -ef | grep mutagen
to get the list of syncs and daemons.witty-pilot-66879
06/26/2024, 4:35 AMv0.13.32
is not v0.17.6
I tried to upgrade using self-upgrade
as well as complete remove then reinstall using homebrew
https://cdn.discordapp.com/attachments/1239306293307637932/1255380937580089384/image.png?ex=667cec1b&is=667b9a9b&hm=3b9c3f49762cd15f6899328236c6f50de1baf1d3939fc0e397af755be8146921&
https://cdn.discordapp.com/attachments/1239306293307637932/1255380937823227925/image.png?ex=667cec1b&is=667b9a9b&hm=9cb71672d8c3d0057c9f656d5a1e45d8196c983fcb0a3599643c7d68d1a2060d&
https://cdn.discordapp.com/attachments/1239306293307637932/1255380938141990932/image.png?ex=667cec1b&is=667b9a9b&hm=96c7eb05756a62180ebb9509b09d2661eb0cb36e22134eec9af2a3659482d8f1&witty-pilot-66879
06/26/2024, 6:48 AMGARDEN_ENABLE_NEW_SYNC=true garden util mutagen --version
then killed all processes. Tried again but got same handshake
error.
https://cdn.discordapp.com/attachments/1239306293307637932/1255414323526893588/image.png?ex=667d0b33&is=667bb9b3&hm=9101b17dca028ccfabe9295cfcf2d2a0cce1a452487a1bfa0caf86e140e7aa92&curved-intern-91221
06/28/2024, 7:49 AMGARDEN_ENABLE_NEW_SYNC=true
when ou retried the deploy command? That flag must always be passed to use new Mutagen (0.17.6). otherwise, old version 0.15.0 will be used.
In 0.13.34 we'll switch the default Mutagen to 0.17.6.
Can you please share a minimal reproducible example with us?witty-pilot-66879
07/18/2024, 1:48 PMcurved-intern-91221
07/18/2024, 1:52 PMps -ef | grep mutgaen
? There should be no running mutagen processes before you trying to switch to the new sync modecurved-intern-91221
07/18/2024, 1:56 PMGARDEN_ENABLE_NEW_SYNC=false garden util mutagen daemon stop
GARDEN_ENABLE_NEW_SYNC=true garden util mutagen daemon stop
from the Garden project root.
2. Make sure there are no running mutagen processes: ps -ef | grep mutagen
- if anything is found, plese stop those
3. Run deploy --sync
with the new daemon:
GARDEN_ENABLE_NEW_SYNC=true garden deploy --sync
Please share the log file from the deploy command execution if the error persists.witty-pilot-66879
07/18/2024, 1:59 PMcurved-intern-91221
07/18/2024, 2:14 PMwitty-pilot-66879
07/18/2024, 2:22 PMcurved-intern-91221
07/18/2024, 2:41 PMbig-spring-14945
07/18/2024, 2:47 PMcurved-intern-91221
07/18/2024, 2:59 PMwitty-pilot-66879
07/18/2024, 6:08 PMcurved-intern-91221
07/22/2024, 11:48 AMcurved-intern-91221
07/23/2024, 6:10 AMinitContainerStatuses
section:
initContainerStatuses:
- containerID: docker://51bb94dfb088b6773908e81caa77ffa5080d1c69794eba1950077d8292ef79d6
image: sha256:3e941b4fb299b810e5981c08d5977115d25d0bbb4e7b4a733aab29e8112d7429
imageID: docker-pullable://gardendev/k8s-sync@sha256:90a583672c63e61031a036900753cb6a8a6b0b7dc20909e2abcc079a1120127b
lastState: {}
name: garden-dev-init
ready: true
restartCount: 0
started: false
state:
terminated:
containerID: docker://51bb94dfb088b6773908e81caa77ffa5080d1c69794eba1950077d8292ef79d6
exitCode: 0
finishedAt: "2024-07-23T06:05:14Z"
reason: Completed
startedAt: "2024-07-23T06:05:14Z"
You can get it with this command:
kubectl get pod <pod-name> -o yaml
I'm going to compare the outputs and the Docker image IDs with my local run.
There might be some troubles in starting the Mutagen agent on the Pod side for k3s cluster on Mac M1 chip. That's just a hypothesis that I need to verify.
The fix we made before had the expected effect - now the faux ssh command seems to be called, so the error message is different , and it looks like some data cannot be retrieved from the Pod side.witty-pilot-66879
07/31/2024, 1:30 AMcurved-intern-91221
08/05/2024, 9:35 AMwitty-pilot-66879
08/05/2024, 10:19 AMfreezing-pharmacist-34446
09/12/2024, 11:47 AMwitty-pilot-66879
09/26/2024, 10:22 AM0.13.40
witty-pilot-66879
09/26/2024, 10:29 AM0.13.40
witty-pilot-66879
09/26/2024, 10:31 AMcurved-intern-91221
09/26/2024, 11:42 AMgarden self-update edge-bonsai
. There was an issue with the mutagen agent binaries in the k8s-sync image, now it's fixed in the edge release, but the fix has not been released yet.witty-pilot-66879
09/29/2024, 6:38 PMwitty-pilot-66879
09/29/2024, 6:39 PMfreezing-pharmacist-34446
09/30/2024, 8:59 AMfreezing-pharmacist-34446
09/30/2024, 1:04 PMbig-spring-14945
01/09/2025, 10:46 AM