I have this setup, where two pods with vault are running on EKS. Last week I performed upgrade from Kubernetes 1.21 to 1.22 and one of my vault pods started to show:
in the logs. It happens always at the same time - 10 minutes past the full hour. I have a cronjob running every 10 minutes, so it’s like the obvious place to check - but this cronjob’s pod reports:
I’ve searched issues on Github, but I wasn’t able to find anything with such generic error message as ‘context cancelled’ - every one of them had a ‘valid’ reason.
Any ideas, what could/should I check? Or maybe a general explanation what does ‘context cancelled’ mean?
Generally, ‘context cancelled’ means ‘an operation timed out and was abandoned’.
Your post is quite interesting to me, as we’re also seeing that pair of errors, a lot, on our very busy Vault cluster at work - and we’re also running Kubernetes 1.22 - however sadly we’ve not been able to make any progress in understanding the cause either.
I have been debugging this for so long and even went down to the vault code and i finally found someone with the same error. Did upgrading to 1.12 resolve the problem?
Disclaimer: Different scenarios and it may not be related
I was receiving a “context canceled” error is received in go when there is a timeout from client side/client cancels request before its completed. Can you check if there is some timeout configured for those requests and if that can be increased?