Dependabot hangs when checking nuget packages #208043
Replies: 2 comments
|
Maybe it's a bug ? |
|
This one's a known rough edge with self-hosted Dependabot + ARC in dind mode, and it's worth knowing upfront: this isn't really a "community" bug, it lives in dependabot-core (the actual updater code), not in this repo. Worth searching/filing there directly — issues tagged nuget + connection reset + self-hosted do show up periodically and get real engineering attention, which a discussion here won't get. On the "connection reset by peer" specifically: that's the dependabot proxy sidecar's own MITM layer failing mid-TLS-handshake with api.nuget.org, not your dependabot.yml (which looks fine as-is — no registries block needed for public nuget.org). A few things worth isolating before assuming it's ARC misconfiguration: Is it network-level or proxy-level? Shell into the job pod and curl -v https://api.nuget.org/v3/index.json directly, bypassing the dependabot proxy entirely. If that also resets, it's your cluster's egress path (CNI MTU mismatch is a classic dind-on-k8s gotcha — Calico/Flannel default to 1450 vs the host's 1500, and large TLS server-hello / cert-chain packets from nuget.org's CDN get fragmented and dropped, which shows up as a reset rather than a timeout). If curl works fine but the proxy still resets, it's the mitm proxy sidecar specifically. Resource starvation on the proxy container: dind mode runs an extra proxy sidecar per job, and ARC's default resource requests/limits are tuned for the runner, not for a proxy doing TLS termination on every registry call. If that pod is getting CPU-throttled, it can be slow enough to trip nuget.org's/Front Door's own idle-connection reset on their end. Worth checking if bumping requests/limits on the runner pod changes anything, since NPM and OpenTofu working fine doesn't rule this out — nuget.org's index response is notably larger than a typical npm registry call. If you rule both of those out, it really is worth opening it as an issue on dependabot-core with these exact proxy logs — that's the team that owns this code path. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
ARC (Actions Runner Controller)
Discussion Details
Hey,
Not sure if this belongs here or in dependabot-core but I figured I'll start here and see where that gets me.
I'm trying to set up Dependabot using my own self-hosted action runner set. For OpenTofu and NPM packages this already works great, but when I try to have it check for nuget packages it seems to get stuck in a loop because it can't access the nuget API;
As far as I can tell this seems to be a networking issue related to DIND, which I guess might mean that I'm installing ARC incorrectly somehow? I've installed it as follows;
My
dependabot.ymlis very simple;Does anyone have any idea what I might be doing wrong? Or is this maybe a bug within dependabot somehow?
Thanks in advance.
All reactions