Web GUI partially crashing after ~48 hours

Started by lexxieInTheWires, December 03, 2026, 01:35:33 AM

Previous topic - Next topic
December 03, 2026, 01:35:33 AM Last Edit: December 03, 2026, 01:43:29 AM by lexxieInTheWires Reason: (added current patch)
Hi y'all, finally made an account because I have an issue I haven't been able to track down the reason of. It began ~11-02 while running on 26.7.8 (though not immediately after I updated), where the web GUI will respond for a day or so, and then enter a fail state where I can log in, and after about a minute or two of waiting, take me to a dead front page that's unable to be navigated. Rebooting the web gui through the command line got me a seemingly functional interface, except any changes I made wouldn't take (i.e. updating an override in unbound). The only fix that has reliably worked is a full reboot of the system.The error logs show some kind of socket refusal error, but the best I've found on this particular error is an expired github issue from 2025. I don't believe this is a hardware issue, as I have opnsense running baremetal on an salvaged Dell Poweredge with far too many resources to begin with (2x8core xeons + ~192gb RAM), so there shouldn't be any physical bottlenecks happening. Best as I can tell, it will survive for about two days, and then the webgui becomes a zombie. There hasn't been any impact to my other services, though; DNS & DHCP continues to run fine, there's no degradation to inter or intranet access, SSH continues to function, etc. I've attached some screenshots of the web gui's error state & my findings in the webgui logs.

Any help or advice for further debugging is appreciated. Thanks y'all!

Non-stock plugins I have currently;

  • Acme Client
  • Crowdsec
  • Debug
  • Dmidecode
  • Iperf
  • Tayga (currently inactive)

Currently running version 26.7.10p1

December 03, 2026, 01:52:48 AM #1 Last Edit: December 03, 2026, 02:22:35 AM by OPNenthu
Hi, I don't know the current status of it but there's a history of discussion on the forum about idle session timeouts leaving a zombified GUI like this.  Same symptom, where the UI is somewhat navigable but pages and dashboard widgets fail to load or refresh.  The workaround is to log out and in again, though I'm hesitant because you say that it's only fixed by a reboot.  Might not be the same cause.

Just to rule this out, what timeout value do you have in System->Settings->Administration->Session Timeout?  Is there any correlation between that value and the amount of time that passes while you have the browser tab inactive? 

The default timeout is 240min (4hr) but it's entirely possible to not hit the issue for 48 hours or more, if you are periodically accessing it.
N5105 | 8/250GB | 4xi226-V | Community

December 03, 2026, 02:22:55 AM #2 Last Edit: December 03, 2026, 02:25:05 AM by lexxieInTheWires
No dice there unfortunately; it consistently kills the session for myself, my wife's admin account, and a read-only user API that passes info to a Homepage opnsense widget. Logging out / logging back in still returns a slow and zombified web gui. I have tested logging in after 24hr hours with success, but somewhere around 48hrs it's undead.

Looks like session timeout is set at the default 240 minutes.

what I've seen is this being only a symptom of some other more crucial problem. System starts swapping and GUI process one to suffer. Or a hardware problem.
I suggest to try to diagnose with a console, not the GUI.
top and ps to begin with - ssh fine, no need for physical console to begin with

Today at 05:35:02 PM #4 Last Edit: Today at 05:37:02 PM by lexxieInTheWires
True to schedule, sometime between 24 hours and 48 hours after this last reboot, webgui has gone into its zombie state. Now that I have a moment to take a closer look at it, I've attached results of top and ps for diagnostic help, will try to do some more poking around after rebooting to reset things. At first glance, these top and ps results don't *seem* to have anything weird going on, though I'll admit I'm not totally sure what would be weird beyond something taking 100% of CPU or such. I have also confirmed that both admin accounts are unable to access a more-alive version of the webgui, including on a backup laptop with no cached accounts or prior knowledge of the webgui.

last pid: 87840;  load averages:    0.66,    0.59,    0.52                        up 3+16:29:35  10:32:08
1583 processes:1 running, 1582 sleeping
CPU:  0.0% user,  0.0% nice,  0.1% system,  0.4% interrupt, 99.4% idle
Mem: 188M Active, 29G Inact, 5403M Wired, 2056K Buf, 153G Free
ARC: 1400M Total, 348M MFU, 879M MRU, 25M Anon, 11M Header, 133M Other
     992M Compressed, 3821M Uncompressed, 3.85:1 Ratio
Swap: 8192M Total, 8192M Free

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
 7140 root          1   1    0    21M  7396K CPU25   25   0:00   2.64% top
24388 root          1   0    0    98M    60M nanslp  20  12:26   0.24% php
76297 root         42   0    0  1804M   315M uwait   12  15:56   0.05% crowdsec
 8771 root          1  59    0   109M    72M nanslp  26   1:34   0.02% php
19411 root          3   0    0    55M    17M kqread  26   3:30   0.02% syslog-ng
 2590 hostd        10   0    0    69M    18M uwait   30   1:33   0.02% hostwatch
55920 root          4  59    0    14M  2824K sigsus   0   0:21   0.00% dpinger
43415 root          1   0    0    14M  2836K select  15   0:05   0.00% rtsold
26445 root          1   0    0    14M  3428K bpf     24   1:27   0.00% filterlog
42903 root          1   0    0    14M  2772K kqread  31   0:04   0.00% rtsold
25458 root          1   0    0    28M    15M select   2   0:14   0.00% python3.13
25433 root          1   0    0    28M    15M select  13   0:14   0.00% python3.13
59377 root          4  59    0    14M  2820K sigsus  23   0:14   0.00% dpinger
18193 lexxie        1   0    0    25M    11M select   4   0:00   0.00% sshd-session
35786 root          1   0    0    25M  9376K select  19   0:20   0.00% ntpd
96909 nobody        1   0    0    18M  5100K select  21   0:31   0.00% dnsmasq
89543 root          1   1    0    53M    40M nanslp  28  94:13   0.00% python3.13
42120 _dhcp         1   0    0    14M  3012K select  14   0:01   0.00% dhclient
78750 root          1   0    0    25M    12M kqread  19   0:04   0.00% lighttpd
10085 root          1   0    0    16M  4316K kqread  30   0:03   0.00% lighttpd
46363 root         17  59    0  2463M  1178M kqread   5  57:13   0.00% python3.13
41520 unbound      32   0    0  1038M   253M kqread   3  23:54   0.00% unbound
  518 root       1500   0    0   890M   265M accept  22  12:11   0.00% python3.13
84588 root         23   0    0  1317M    37M uwait   22   0:33   0.00% crowdsec-firewall-b
97752 _flowd        1   0    0    14M  2872K select  31   0:10   0.00% flowd
  470 root          1  59    0    29M    16M wait    24   0:07   0.00% python3.13
 3854 root          1   0    0    14M  2860K wait    29   0:05   0.00% dhcp6c
97578 nobody        1   0    0    14M  2408K sbwait  25   0:03   0.00% samplicate
44186 root          1  59    0    14M  2768K nanslp  18   0:03   0.00% cron
46873 root          1   0    0    14M  2652K select  31   0:02   0.00% radvd
94146 root          1   0    0   208M    48M accept  11   0:01   0.00% php-cgi
93980 root          1   0    0   208M    49M accept  16   0:01   0.00% php-cgi
94433 root          1   0    0   203M    49M accept  11   0:01   0.00% php-cgi
95443 root          1   1    0   208M    48M accept  24   0:00   0.00% php-cgi
95729 root          1   0    0   208M    48M accept   0   0:00   0.00% php-cgi
31423 root          1   3    0   203M    47M accept  16   0:00   0.00% php-cgi
43325 root          1  59    0    14M  2728K select  11   0:00   0.00% rtsold
68964 root          1  35    0    76M    43M lockf   17   0:00   0.00% php
41654 root          1  27    0    76M    43M lockf    8   0:00   0.00% php
94578 root          1   0    0   203M    47M accept  11   0:00   0.00% php-cgi
94969 root          1  27    0    76M    43M lockf   17   0:00   0.00% php

PID TT  STAT    TIME COMMAND
71266 v0  Is+  0:00.00 /usr/libexec/getty Pc ttyv0
72208 v1  Is+  0:00.00 /usr/libexec/getty Pc ttyv1
72220 v2  Is+  0:00.00 /usr/libexec/getty Pc ttyv2
73131 v3  Is+  0:00.00 /usr/libexec/getty Pc ttyv3
73716 v4  Is+  0:00.00 /usr/libexec/getty Pc ttyv4
74430 v5  Is+  0:00.00 /usr/libexec/getty Pc ttyv5
75452 v6  Is+  0:00.00 /usr/libexec/getty Pc ttyv6
75686 v7  Is+  0:00.00 /usr/libexec/getty Pc ttyv7
24998  0  I    0:00.00 /bin/sh /usr/local/sbin/opnsense-shell
63893  0  R+   0:00.03 ps
81932  0  S    0:00.01 /bin/csh
85639  0  I    0:00.00 su root

I'd say to use "ps -A", but I don't think it'll be useful here - I don't see any evidence of a resource eater. Perhaps "netstat -m" and "-s"... but that's a reach. "sockstat" seems to just offer info on listening and open sockets (vs. e.g. "netstat -m"), but you could check it for anything unusual.

Are you running RAM disks ("System: Settings: Miscellaneous" -> "Disk / Memory Settings (reboot to apply changes)")? Also a reach.