-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fluxctl timesout, loading notes from repo - context deadline exceeded on v1.22.2 #3489
Comments
Greetings, thanks for posting. The You can increase the timeout duration or you can address the root cause of whatever is taking longer. Can you provide some info about what dimensions are scaled out, so we can understand better how this error condition might be arrived at? If your git repo is very large or has a lot of tags, those are examples of what I mean. I inferred from your post that you have been using Flux v1 for a while. Something is growing over time, and as a result the timeout condition has become more likely to reach, until it is apparently timing out most every time. Other things which might be a leading cause of this trouble: (1) your GitHub Enterprise instance is heavily taxed and under load, so is slow to respond, or your git repository is large and expensive to clone, or (2) your cluster or node hosting the Flux installation is similarly taxed or under heavy load, which is putting pressure on Flux resource limits and causing the context deadline exceeded error. Generally we are recommending all users migrate to Flux v2 as soon as possible since feature parity was announced, since users will experience many performance benefits and observability of timeout-related failure is raised significantly vs the Flux v1 user experience. There are fewer points of failure due to the Kustomize changes and they are isolated better, so we generally don't have to guess anymore whether the problem is experienced due to network issues during git clone, or during an apply operation later on when the git sources have already been retrieved and the issue must be caused somewhere else. |
Thank you for the quick response @kingdonb |
@durprasa The timeouts which should be adjusted are not in
These are the timeout values that can be adjusted to positive effect. They are documented here: https://docs.fluxcd.io/en/1.22.2/references/daemon/#setup-and-configuration If the git repository is not large, and does not take long to clone from scratch, then I would start by attempting to adjust If increasing the timeout abates the situation, there are a number of places where timeout-inducing loads could be coming from. Diagnosing this in Flux v1 is a tricky situation and will require some specific knowledge of your configuration. We often see these sorts of timeouts coming from |
Thank you again! |
That did the trick. increasing sync-timeout. helped. Thank you very much for your support. |
Superb. Thanks for being responsive and playing along! I'm going to close this since there is nothing left to resolve. But you can feel free to reply or open a new issue if you need more support. We're also happy to answer questions in #flux on the CNCF slack! Thanks for using Flux. |
Describe the bug
we use GitHub enterprise version, and we started seeing the below error, which is causing the latest changes not being applied to kubernetes.
To Reproduce
Steps to reproduce the behaviour:
just running "fluxctl sync".
started seeing this behavior more often with linkerD 2.10
Expected behavior
Expect "fluxctl sync" to complete and apply the resources to kubernetes.
Logs
ts=2021-06-07T18:46:09.544252696Z caller=loop.go:108 component=sync-loop err="loading notes from repo: running git command: git [notes --ref flux list]: context deadline exceeded"
Additional context
The text was updated successfully, but these errors were encountered: