21-hour node freeze with stuck NFS mounts
Infrastructure incident record — playtelly-iac / do cluster
| Cluster | do (DigitalOcean, 3 nodes) |
| Nodes / OS | ubuntu-24-04-LTS-control-plane — Ubuntu 24.04 LTS (the NFS server involved below; registers in Kubernetes as ubuntu-24-04-lts-control-plane, lowercased) · ubuntu-mashup-gitlab-haproxy — Ubuntu 22.04.4 LTS · worker-node-a — Ubuntu 22.04.5 LTS |
| Detected | 2026-09-12 17:42 UTC |
| Node outage window | Sep 11 20:27 UTC → Sep 12 17:26 UTC |
| Pods affected | 8, across 4 namespaces |
| Status | Fully resolved — one unrelated pre-existing issue (dev/otw) still open |
A cluster node went unresponsive for nearly a full day with no shutdown trace, and came back to a cascade of stuck mounts, a dead NFS daemon, a drifted database password, and a memory-starved control-plane node. This records how each piece was found and cleared, and the one thing left open on purpose.
Sequence of events¶
Sep 11, 06:21:33 UTC — rpc.mountd dies on the control-plane node
nfs-mountd received a stop request (SIGTERM) and exited cleanly seconds after starting. Nothing broke yet — existing NFS mounts don't need mountd, only new ones do. What triggered the stop was never traced — see Left open, on purpose. (This node — ubuntu-24-04-LTS-control-plane — is the only one of the three running Ubuntu 24.04 LTS; the other two are on 22.04. Its nfs-utils package and unit behavior are specific to that OS version.)
Sep 11, ~20:27:49 UTC — ubuntu-mashup-gitlab-haproxy stops responding
The journal for this boot ends mid-stream — iscsid retry spam, then nothing. No shutdown sequence, no kernel panic, no oops. Consistent with a hard freeze or a hypervisor-level stop, not anything the OS initiated.
Sep 12, 17:25:58 UTC — node returns, 21 hours later
Boots on kernel 5.15.0-191 (was 5.15.0-140) — a staged upgrade applied on restart. Every pod that had been scheduled on it during the outage now needs its volumes reattached.
Sep 12, 17:37–17:44 UTC — Longhorn volumes recover; NFS mount hangs
Every Longhorn-backed volume (grafana, vmstorage, vmalertmanager) reattaches within minutes on its own. The one NFS-backed mount — zitadel-db — does not: mount.nfs enters uninterruptible sleep and stays there.
Sep 12, 17:58:07 UTC — rpc.mountd restarted on the control-plane node
First attempt failed with errno 12 (out of memory); a retry two minutes later succeeded. The two hung mount.nfs processes completed immediately after, and zitadel-db came up.
Sep 12, 18:00–18:13 UTC — a second, unrelated failure surfaces
With zitadel-db back, dev/zitadel kept crashlooping — not from the outage, but from a database password that had silently drifted from what its secret declared.
Sep 14 — control-plane memory pressure addressed
Five duplicated/movable pods (vmagent, vminsert, kube-state-metrics, planka, planka-postgresql) were rescheduled off the control-plane node onto the mashup node, dropping its memory requests from 96–99% to 73%.
Understanding the core failure: mountd vs. nfsd¶
This tripped everyone up while diagnosing it, so it's worth spelling out plainly, because the whole incident hinges on these being two separate processes, not one:
nfsd(started bynfs-server.service) is the data-mover — it listens on port2049and actually reads/writes file bytes once a client is already connected.rpc.mountd(started bynfs-mountd.service) is the gatekeeper — it handles the NFSv3 mount handshake, and answers the kernel's export-authorization checks even under NFSv4.
The analogy: think of an office with a receptionist (mountd) and a worker inside (nfsd). If the receptionist goes home, anyone already inside keeps working fine, and if you call the building's front line, the worker still picks up and says "we're open" — because that call doesn't need the receptionist. But a new visitor walking up to the door finds nobody to check them in. Not a "go away," just silence — they stand there indefinitely.
That's exactly what a health check would have seen here: rpcinfo -T tcp <CONTROL_PLANE_PRIVATE_IP> nfs 4 replied "ready and waiting" the entire time mountd was down, because that ping only exercises nfsd. The one thing actually broken — letting a new mount in the door — only shows up if you specifically check for mountd's own RPC program:
versus a healthy host, where it's there:
With mountd gone, a new mount request reaches nfsd, nfsd needs an export-auth answer from mountd, mountd isn't there to give one, and the request just waits — forever, with no error and no timeout. That's why mount.nfs sat in uninterruptible-sleep (D state) rather than failing outright, and why nothing in the logs pointed at the actual cause until someone thought to diff rpcinfo output between a healthy node and this one.
Root cause — the hung mount¶
Status: resolved
zitadel-db couldn't remount its NFS volume¶
default namespace · PV backed by <CONTROL_PLANE_PRIVATE_IP>:/data/zitadel/zitadel_db
The pod's PersistentVolume is an NFS export, not Longhorn — served, as it turned out, by the control-plane node itself (confirmed by matching <CONTROL_PLANE_PRIVATE_IP> against the k3s API-server certificate's SAN list). When the mashup node came back and tried to remount it, the request went nowhere, for the reason explained above.
Evidence — kubelet, every 2 minutes for 26 minutes:
E0912 17:46:14 "Error syncing pod, skipping" err="unmounted volumes=[data]...
context deadline exceeded" pod="default/zitadel-db-65d77b6977-wbj4k"
What actually fixed it:
$ systemctl start nfs-mountd && rpcinfo -p localhost | grep mountd
100005 3 tcp 34269 mountd ← back
$ systemctl restart nfs-server
rpc.nfsd: error starting threads: errno 12 (Cannot allocate memory)
— retried ~2 min later —
$ systemctl restart nfs-server
● nfs-server.service — active (exited)
A second, unrelated issue found in the wreckage — a stale password¶
Status: resolved
dev/zitadel couldn't authenticate to dev/postgres¶
dev namespace · surfaced by the outage, not caused by it
Both secrets agreed on paper — comparing SHA-256 fingerprints rather than printing the values confirmed zitadel-secret and postgres-secret held the identical password. The database itself didn't. Its PVC was 19 days old, and POSTGRES_PASSWORD is only applied by the postgres image at first init — a password rotated in the secret after that point is silently ignored by the already-running instance.
The tell:
err.parent="...FATAL: password authentication failed for user
\"postgres\" (SQLSTATE 28P01)"
postgres-secret.POSTGRES_PASSWORD sha256:<FINGERPRINT>
zitadel-secret.…ADMIN_PASSWORD sha256:<FINGERPRINT> ← identical, yet auth fails
Fix — two parts, both required: ALTER USER postgres WITH PASSWORD '<PASSWORD>' run directly against the live database (no manifest change reaches an already-initialized cluster), plus both secrets in the repo repointed to the same value, since dev/ isn't ArgoCD-managed and needed the change applied by hand.
Confirmed resolved: live secret hash now matches the fingerprint of the new password (kept in postgres-secret and zitadel-secret), and dev/zitadel has been 1/1 Running since.
Third issue — control-plane node memory pressure¶
Status: resolved
The control-plane node was carrying 96–99% of its memory in requests, which is what starved rpc.nfsd on its first restart attempt (errno 12: Cannot allocate memory). Five pods that had landed there by scheduling accident — not by any real requirement — were identified and moved:
| Pod | Why it was safe to move |
|---|---|
vmagent-…-1-… (one replica) |
its sibling replica was already on the same node — pure duplication |
vminsert-… (one replica) |
2 of 3 replicas were on control-plane, 1 elsewhere |
vm-stack-kube-state-metrics-… (one replica) |
both replicas were on control-plane |
planka + planka-postgresql-0 |
NFS-backed (RWX, served by the mashup node) — no data locality tying it to control-plane |
Left alone on purpose: vmstorage/vmselect shards, which are genuinely local-storage-bound via Longhorn and would require a real data migration, not a reschedule.
Result: control-plane memory requests dropped from 96–99% to 73%. All five replacements landed on the mashup node and stayed there.
Not related to this incident¶
Pre-existing, unrelated to anything above
| Pod | Cause | Status |
|---|---|---|
| dev/otw | missing secret castis-harbor-registry in any namespace, and registry.cdn.3bbtv.com returning 502 from its own upstream |
still open |
| staging/mediasoup | missing secret nexus-registry-secret in the staging namespace only |
resolved |
Left open, on purpose¶
-
Why
rpc.mountdwas sentSIGTERMat 06:21:33 on Sep 11 is unknown. The log shows a clean stop request seconds after a start, consistent with a package upgrade, asystemctl daemon-reload, config-management, or a manual restart — but nothing was traced back to confirm which. Tracing it would mean checking/var/log/apt/history.log,/var/log/dpkg.log, and the full journal for that ten-minute window on the control-plane node. Deliberately not pursued — the practical fix (monitor for mountd's absence) matters more than the historical trigger. -
There is no monitoring for
Not yet wired into the existing VictoriaMetrics/Grafana stack.rpc.mountdspecifically, and the unit isstatic— it has no restart policy of its own, so if it dies again it will stay dead until something notices. A one-line check would catch it early: -
NFS (111 / 2049) is reachable from the public internet on at least one node. The export ACL correctly refuses outside hosts — a dozen refused mount attempts from GCP and other ranges were logged over two weeks — but the daemons shouldn't be answering off the VPC interface at all.
-
The 21-hour node freeze itself has no in-OS explanation. No panic, no oops, no shutdown record — the journal just stops. That answer, if it exists, is in the DigitalOcean console's event log for this droplet, not on the box.
-
dev/has no ArgoCD Application. Convenient for applying the password fix by hand without it reverting — but also means nothing indev/self-heals.
playtelly-iac · do cluster · compiled from live diagnosis, 2026-09-12 through 2026-09-14