-
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
Crash: toKubernetesError encountered an unknown error unexpectedly during Kub... #5217
Comments
Thank you for reporting this @stilist I think it might make sense to just generally handle all instances of WDYT @TimBeyer ? |
Hmm, the weird thing is that we already handle |
This line should catch this: https://github.com/garden-io/garden/blob/d460f3f0f4eadacc831c9d189ecc25fbf5239c5a/core/src/plugins/kubernetes/retry.ts#L119C22-L119C22 We need to find a reliable way to reproduce this, and use a debugger to find out why it doesn’t. |
Likely we need to handle DNS errors (https://nodejs.org/api/dns.html#error-codes) and possibly also |
DNS error codes are not included in the OS error constants (os.constants) / https://nodejs.org/docs/latest-v18.x/api/os.html#error-constants This commit adds DNS error codes to the list of handled errno errors. Fixes #5217
DNS error codes are not included in the OS error constants (os.constants) / https://nodejs.org/docs/latest-v18.x/api/os.html#error-constants This commit adds DNS error codes to the list of handled errno errors. Fixes #5217
DNS error codes are not included in the OS error constants (os.constants) / https://nodejs.org/docs/latest-v18.x/api/os.html#error-constants This commit adds DNS error codes to the list of handled errno errors. Fixes #5217
I do not know how to reliably reproduce this, but #5326 should fix this issue. |
Came up with a simple unit test in 7f785f7 to confirm that it should fix the issue. |
* fix: handle DNS error codes as ErrnoException DNS error codes are not included in the OS error constants (os.constants) / https://nodejs.org/docs/latest-v18.x/api/os.html#error-constants This commit adds DNS error codes to the list of handled errno errors. Fixes #5217 * test: isErrnoException * test: remove unnecessary assertions * fix(lint): remove unused import
Crash report
Error message
What did you do?
I think I had previously run
garden cleanup ns
, becausek9s
didn't show anything in my namespace.Your environment
Frequency
I've only seen this happen once.
Workaround
DNS resolution worked on redeploy.
Additional context
I doubt there's anything you can do about DNS issues, but I think it would be good to have an error handler for this issue.
The text was updated successfully, but these errors were encountered: