26.7.10p1 (no reboot) — web GUI hangs; configd children stuck in flock

Started by mlenje, Today at 07:03:34 AM

Previous topic - Next topic
Updated to 26.7.10p1 via the GUI at ~13:37. No reboot was requested. Hours later the
web GUI wouldn't load (browser spins forever). Ping, SSH, routing and WireGuard all kept working.
Disk 3%, load ~0.3.

Log at update time:
13:37:04 configctl: unable to connect to configd socket (@/var/run/configd.socket)
13:37:11 opnsense: /usr/local/etc/rc.configure_firmware: warning: ignoring missing default tunable request: vm.pmap.pti
13:37:12 syslog-ng: Loading the new configuration; / Configuration reload finished;
configd, cron and lighttpd all show start times of 13:37:04–15.

What I found before rebooting:
- configd worker held ~126 connections on configd.sock and had ~121 children that never finished, all "pluginctl -S" or "pluginctl -s ddclient status" (dashboard widget polling), starting 13:37:21 and running 6+ hours. ~26 php-cgi workers waiting behind them.
- Kernel stack of the stuck pluginctl processes:
mi_switch sleepq_catch_signals sleepq_wait_sig _sleep lf_advlockasync lf_advlock vop_stdadvlock sys_flock amd64_syscall
- "procstat advlock" showed NO lock on /conf/config.xml — only configd's own /var/run/configd.pid, so I couldn't find what they were waiting on.
- ddclient daemon not running (no pid file), yet "ddclient status" hung like everything else.
- Restarting gateway_watcher and cron didn't help. A reboot fixed it immediately.

I have procstat -kk -a, fstat, ps and log captures from before the reboot if they're useful.
Is this a known issue with in-place updates, and which lock would pluginctl be waiting on here?

> configctl: unable to connect to configd socket (@/var/run/configd.socket)

This would be a problem which would be fixed by "service configd restart".

None of your other collected info tells us if that was actually the issue or if there's something else going on.

Check dmesg at least -- perhaps there's an OOM kill or something similarly fatal going on.


Cheers,
Franco

Thanks Franco. No OOM or fatal kernel events — the system log for that day has kernel messages but no "killed", "out of swap", "reclaim", panic or signal entries, and nothing from the kernel between 12:00 and 15:00.

On configd: the "unable to connect" lines were only at 13:37:04, during the update's
restart. Afterwards configd was up and reachable — the worker had ~126 open connections on configd.sock and kept spawning pluginctl children (dashboard polls), but those children never finished (stuck in sys_flock). I didn't try "service configd restart" before rebooting, so I can't confirm whether that alone would have cleared it — next time I'll try that first and report back.