-
Notifications
You must be signed in to change notification settings - Fork 273
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]: in-cluster build sync error when root path is very long #4527
Comments
Verified it still happens in 0.13.1 ✅ |
@chrispsplash Thank you for reporting this and figuring out the underlying cause. It shouldn't be a hard fix so we'll try to get on to it in the coming weeks. |
I reproduced this locally with So it fails in a different place, not when running the I found an original mutagen issue that might be relevant: mutagen-io/mutagen#433. I found a limit experimentally on my local machine, it was Adding one more character to the path caused mutagen daemon failures with code As long as it's a socket path limitation, we can't do any proper fix here. But we can mitigate it by firing a warning if the path exceeds the threshold value of |
@chrispsplash it doesn't seem that the problem can be fixed in the Garden codebase. The issue comes from the implementation details of the underlying sync tool. See the comment above for the details. In #4582 we introduced a warning to clarify the failure cause. The fix is available in the Please let us know if it's ok to close this issue. |
@vvagaytsev thanks that works for me! |
What about setting up a shorter directory path at Even just supporting users manually setting this would be a helpful workaround. I tried Thank you very much for making the error message by the way, or I would have been hopelessly confused given the error message. |
After discussing with @vvagaytsev we believe that there is a way to avoid this failure mode altogether (Some ideas are here: https://discord.com/channels/817392104711651328/1088795679159222292/1127950349374869534). There are also some tests in our codebase like |
@chrispsplash @salotz the fix has been released in 0.13.9, please try it out. |
Confirmed!! Thanks! |
@vvagaytsev Looks to be working for me as well. Thanks for the fix! I will note that I still receive lots of warnings and errors on trying to connect. Its highly variable and it if it doesn't automatically work it out like in the following example, a retry usually does it. I don't think its related to this issue, but I thought I would mention it.
|
@salotz, thank you for sharing extra details. You are right, that looks like another issue. We'll take a look if we can consistently reproduce it. Could you please share a reproducible example? |
If I find something reproducible I will share in another issue. I haven't been able to reproduce it reliably myself. |
Garden Bonsai (0.13) Bug
Current Behavior
When using
garden build
in especially long root paths (over 70 chars) I've noticed an odd repeating error (log below).For example, the full path being used below is
/tmp/Extremely/Long/path-with/some-hyphens/and/whatnot/example-bonsai-sync-issue
command output
Expected behavior
Garden builds the container without issue.
Reproducible example
I created a super simple example in a repo called example-bonsai-sync-issue
Workaround
There is no problem when you move the project to a much shorter path (ex
/tmp/example-bonsai-sync-issue
).Suggested solution(s)
🤷
Additional context
N/A
Your environment
garden version
0.13.0
The text was updated successfully, but these errors were encountered: