-
Notifications
You must be signed in to change notification settings - Fork 196
Description
[backend] | 2025-09-05T20:44:17.357Z error: [repo-manager] Failed to sync repository gerrit.hostname.com/MyRepo (id: 8) after 3 attempts. Error: Error: Failed to fetch repository: /data/.sourcebot/repos/8. Reason: fatal: couldn't find remote ref HEAD
[backend] |
I updated Sourcebot from v4.6.3 -> v4.6.6, running in k8s. terminationGracePeriod for my deployment was set to 15s (meaning k8s would send SIGTERM to Sourcebot process, wait 15 seconds, hope Sourcebot gracefully shut down, then send SIGKILL after 15 seconds regardless). Perhaps this was too low.
In either case, after Sourcebot came up with v4.6.6 image, certain repos are now failing to sync/index, and retrying doesn't help. All fail with the same error signature (above).
Not sure how to debug this / bandaid fix these failing repos. Redeploying SB from scratch will certainly fix things but that's sort of undesirable when there are 5000+ repos indexed already.