Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.13: [Bug]: garden deploy --sync fails with an error #5053

Closed
bulliana opened this issue Sep 11, 2023 · 3 comments · Fixed by #5744
Closed

0.13: [Bug]: garden deploy --sync fails with an error #5053

bulliana opened this issue Sep 11, 2023 · 3 comments · Fixed by #5744

Comments

@bulliana
Copy link

bulliana commented Sep 11, 2023

Garden Bonsai (0.13) Bug

Current Behavior

deploy --sync fails with the following error:

Command "/Users/ulianasirotina/.garden/tools/mutagen/85054cb3eb04c4f0/mutagen sync create /Users/ulianasirotina/garden/garden-platform/api exec:'/Users/ulianasirotina/.garden/tools/kubectl/f8a39834529cd1ed/kubectl exec -i --context=eks_garden-ci-k8s-cfb88b38 --kubeconfig=/Users/ulianasirotina/garden/garden-platform/infra/dev-infrastructure/ci/kubeconfig_garden-ci-k8s-cfb88b38 --namespace=ge-ulianasirotina --container api Deployment/api -- /.garden/mutagen-agent synchronizer':/app/api --name k-8-s-dev-ge-ulianasirotina-api-deployment-api-api-app-api --sync-mode one-way-replica -i /**/*.git -i **/*.garden -i dist -i node_modules -i tmp --default-file-mode 0644 --default-directory-mode 0755" failed with code 1:

Error: unable to connect to beta: unable to connect to endpoint: unable to dial agent endpoint: unable to handshake with agent process: server magic number incorrect (error output: command terminated with exit code 126)

Here's the full output:

Connecting to agent (POSIX)...
Error: unable to connect to beta: unable to connect to endpoint: unable to dial agent endpoint: unable to handshake with agent process: server magic number incorrect (error output: command terminated with exit code 126)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────


2 deploy action(s) failed!

Expected behavior

deploy --sync works without errors

Reproducible example

none

Workaround

garden delete environment, and start from scratch

Suggested solution(s)

Updating Mutagen could be a possible solution

Your environment

  • OS: Ventura 13.5.1
  • How I'm running Kubernetes: 🤷‍♀️

garden version: 0.13.13

@bulliana bulliana added the 0.13 label Sep 11, 2023
@vvagaytsev vvagaytsev changed the title 0.13: [Bug]: Describe here 0.13: [Bug]: garden deploy --sync fails with an errpr Sep 11, 2023
@vvagaytsev vvagaytsev changed the title 0.13: [Bug]: garden deploy --sync fails with an errpr 0.13: [Bug]: garden deploy --sync fails with an error Sep 11, 2023
@vvagaytsev vvagaytsev added the bug label Sep 11, 2023
@eysi09
Copy link
Collaborator

eysi09 commented Dec 22, 2023

I've seen this on my end as well and most often it works to run deploy --sync again instead of deleting the environment.

If that doesn't work, it should be enough to run cleanup deploy <name-of-deploy-that-can't-sync> instead of deleting the entire namespace.

That being said, we obviously need to wrap up the Mutagen work ASAP and see if that fixes it.

@psimondk
Copy link

psimondk commented Jan 13, 2024

I just ran into the same - clean install of the quickstart for evaluation purposes:

image

And then I did the same again, and now everything works peachy.

Reproducible example

Clean install quick start on Sonoma and run deploy --sync

@eysi09
Copy link
Collaborator

eysi09 commented Feb 12, 2024

Thanks for sharing @psimondk!

We'll be including an updated version of Mutagen in our next release that we hope fixes this issue but we'll feature flag it to begin with and then make it the default in a subsequent release.

We've been using our own fork of Mutagen for some time and we want to make sure the transition is smooth for users.

github-merge-queue bot pushed a commit that referenced this issue Feb 22, 2024
**What this PR does / why we need it**:

This PR updates the Mutagen tool to the latest available version. 

**Which issue(s) this PR fixes**:

This should fix #5053

**Special notes for your reviewer**:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants