WebGUI unaccessible for 3-4 minutes --> when modyfing "Interfaces"

Started by AES777GCM, November 13, 2024, 07:20:37 PM

Previous topic - Next topic
Regarding bug-hunting: Isn't it helpful when developers know now that "killing" the lighttpd task manually (while system is in status "locked") brings the Web Gui instantly back to live ?

Pls have a look @ my posting from 18th Nov 03:28pm.

Is this problem taken seriously?
I hope so.

However - thank's in advance @Franco and Team!!!

November 19, 2024, 05:13:41 PM #31 Last Edit: November 19, 2024, 05:16:06 PM by Monviech (Cedrik)
Can you tell me the minimal configuration and environment which can reproduce this?

Minimal configuration would be any configuration changes after a clean install.
Environment would be if it can also be reproduced without any external infrastructure involved. Direct connection of client to Opnsense hardware

If there are switches, ISP routers or whatever involved it makes it harder to reproduce since it can be many specific factors in your personal environment I do not know.

Does it have to be random hardware? I still have an old intel core2duo pc around if thats needed for reproduction. I ran opnsense on it before like 4 years ago I think.
Hardware:
DEC740

Hello Cedrik,

at first thanks for your reply and intention to look this up.

My setup is really simple basic: WAN put in em1; LAN in em0. LAN connected to a layer 2 switch - pc directly connected to this switch.

Installation of fresh 24.7 --> then update via console to 24.7.8.
After reboot login as root (WEB GUI)--> run initial setup.

Then act as you want to do anything on WAN interface - like OPT IN "Prevent Interface Removal" --> Save --> APPLY

This "Apply" leads on my 2 Systems (HUNSN / FUJITSU) to the above mentioned system stall.
Its very interesting how your system react and if it the same, what might be the problem.

Cheers,
Udo

Does your system react the same if WAN is disconnected, the Layer 2 switch does not exist, and your client is plugged into LAN directly?

Please deconstruct your setup a bit more for a common baseline.
Hardware:
DEC740

I hardly can use a Firewall with WAN disconnected and an unbroken, unmanaged Layer 2 Switch can't be a factor.

As I said - when the lighttpd task is killed manually the WebGui pop ups directly again of the former struggled system.

But I can find out on thursday what you proposed.
Do you have a "special idea" by asking this for?
How does your System behaves?


November 19, 2024, 09:28:06 PM #35 Last Edit: November 19, 2024, 09:52:30 PM by Monviech (Cedrik)
My systems (mostly DEC740 and 750) as well as my developement and general use VMs all work without issues. Thats why right now I want to rule out outside factors in your environment. Asking you to disconnect all outside factors is not to make your system unusable, but to see if the issue still happens.

Thats common troubleshooting practice, deconstructing a setup until the issue is not present, and then slowly introducing more complexity until it happens again.

Digging around on the box itself would be far more productive but thats commercial support scope.

EDIT:

Looking at the lighttpd error logs you provided makes it look like the graceful shutdown of the process fails. It seems to wait for something, e.g., all connections to close. Thats why killing it fixes it for you, the graceful process shutdown fails.
Hardware:
DEC740

Okay - got the point.
I'll give report on thursday. Thx in advance for your support.

cheers,
udo

Hello Cedrik,

I tried already and - bad news - When disconnect WAN - nothing happens regarding this issse.
Second - directly plugin of LAN had no impact, too.

It keeps on being "weird".

Btw: Patched up to today's latest version (24.7.9_1) and (as expected) nothing changes - issue is same.

Hey thanks for trying and confirming that it must be an isolated hardware/software related issue. I'll install the latest version on some old and new hardware and see if I can reproduce the steps you outlined.
Hardware:
DEC740

November 20, 2024, 08:02:14 PM #39 Last Edit: November 20, 2024, 09:35:24 PM by Monviech (Cedrik)
I just tested a fresh installation on a DEC740, couldn't reproduce the issue.

Also had IPv6 on WAN with DHCPv6 just to ensure parity.

Next I dusted off some pretty ancient hardware.

Tarox Digital Machine
Intel Core Duo T6600 2.2ghz
2GB DDR2 RAM
64GB SSD
Realtek Nic

I could only install 24.7 on it, updates would fail since its too bad. But clicking aroun, saving and applying the interface settings in 24.7 did not make the web GUI freeze like in your case.

EDIT:
It didnt update cause my time was wrong lol
root@OPNsense:~ # date
Thu Aug 21 00:11:50 UTC 2008
root@OPNsense:~ # date
Wed Nov 20 20:25:18 UTC 2024

Now it is on 24.7.9 on that ancient but trusty piece of industry standard hardware.


root@OPNsense:~ # dmidecode
# dmidecode 3.6
Scanning /dev/mem for entry point.
SMBIOS 2.4 present.
39 structures occupying 1058 bytes.
Table at 0x000F0000.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: Phoenix Technologies, LTD
        Version: 6.00 PG
        Release Date: 08/21/2008
        Address: 0xE0000
        Runtime Size: 128 kB
        ROM Size: 1 MB
        Characteristics:
                ISA is supported
                PCI is supported
                PNP is supported
                APM is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                Boot from CD is supported
                Selectable boot is supported
                BIOS ROM is socketed
                EDD is supported
                5.25"/360 kB floppy services are supported (int 13h)
                5.25"/1.2 MB floppy services are supported (int 13h)
                3.5"/720 kB floppy services are supported (int 13h)
                3.5"/2.88 MB floppy services are supported (int 13h)
                Print screen service is supported (int 5h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                Printer services are supported (int 17h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                USB legacy is supported
                LS-120 boot is supported
                ATAPI Zip drive boot is supported
                BIOS boot specification is supported
                Targeted content distribution is supported

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: AOpen
        Product Name: i965GMx-HG
        Version: OEM
        Serial Number: OEM
        UUID: 00000000-0000-0000-0000-000000000001
        Wake-up Type: Power Switch
        SKU Number:
        Family:

Handle 0x0002, DMI type 2, 10 bytes
Base Board Information
        Manufacturer: AOpen
        Product Name: i965GMx-HG
        Version: 55ADE01I650
        Serial Number: 90200487JEA7
        Asset Tag:
        Features:
                Board is a hosting board

Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
        Manufacturer: AOpen
        Type: Desktop
        Lock: Not Present
        Version: i965GMx-HG
        Serial Number:
        Asset Tag:
        Boot-up State: Unknown
        Power Supply State: Unknown
        Thermal State: Unknown
        Security Status: Unknown
        OEM Information: 0x00000000

Handle 0x0004, DMI type 4, 35 bytes
Processor Information
        Socket Designation: Socket 479
        Type: Central Processor
        Family: Core 2 Duo
        Manufacturer: Intel
        ID: 7A 06 01 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 23, Stepping 10
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Intel(R) Core(TM)2
        Voltage: 1.1 V
        External Clock: 200 MHz
        Max Speed: 4000 MHz
        Current Speed: 2200 MHz
        Status: Populated, Enabled
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x0008
        L2 Cache Handle: 0x0009
        L3 Cache Handle: Not Provided
        Serial Number:
        Asset Tag:
        Part Number: <BAD INDEX>

Handle 0x0005, DMI type 5, 20 bytes
Memory Controller Information
        Error Detecting Method: 8-bit Parity
        Error Correcting Capabilities:
                None
        Supported Interleave: One-way Interleave
        Current Interleave: One-way Interleave
        Maximum Memory Module Size: 2048 MB
        Maximum Total Memory Size: 4096 MB
        Supported Speeds:
                Other
        Supported Memory Types:
                DIMM
        Memory Module Voltage: 5.0 V
        Associated Memory Slots: 2
                0x0006
                0x0007
        Enabled Error Correcting Capabilities:
                None

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A0
        Bank Connections: None
        Current Speed: Unknown
        Type: Unknown
        Installed Size: Not Installed
        Enabled Size: Not Installed
        Error Status: OK

Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A1
        Bank Connections: 2 3
        Current Speed: Unknown
        Type: DIMM
        Installed Size: 1024 MB (Double-bank Connection)
        Enabled Size: 1024 MB (Double-bank Connection)
        Error Status: OK

Handle 0x0008, DMI type 7, 19 bytes
Cache Information
        Socket Designation: Internal Cache
        Configuration: Enabled, Not Socketed, Level 1
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 32 kB
        Maximum Size: 32 kB
        Supported SRAM Types:
                Synchronous
        Installed SRAM Type: Synchronous
        Speed: Unknown
        Error Correction Type: Unknown
        System Type: Unknown
        Associativity: Unknown

Handle 0x0009, DMI type 7, 19 bytes
Cache Information
        Socket Designation: External Cache
        Configuration: Enabled, Not Socketed, Level 2
        Operational Mode: Write Back
        Location: External
        Installed Size: 1 MB
        Maximum Size: 1 MB
        Supported SRAM Types:
                Synchronous
        Installed SRAM Type: Synchronous
        Speed: Unknown
        Error Correction Type: Unknown
        System Type: Unknown
        Associativity: Unknown

Handle 0x000A, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: PRIMARY IDE
        Internal Connector Type: On Board IDE
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x000B, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SECONDARY IDE
        Internal Connector Type: On Board IDE
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x000C, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: FDD
        Internal Connector Type: On Board Floppy
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: 8251 FIFO Compatible

Handle 0x000D, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: COM1
        Internal Connector Type: 9 Pin Dual Inline (pin 10 cut)
        External Reference Designator:
        External Connector Type: DB-9 male
        Port Type: Serial Port 16450 Compatible

Handle 0x000E, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: COM2
        Internal Connector Type: 9 Pin Dual Inline (pin 10 cut)
        External Reference Designator:
        External Connector Type: DB-9 male
        Port Type: Serial Port 16450 Compatible

Handle 0x000F, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: LPT1
        Internal Connector Type: DB-25 female
        External Reference Designator:
        External Connector Type: DB-25 female
        Port Type: Parallel Port ECP/EPP

Handle 0x0010, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Keyboard
        Internal Connector Type: PS/2
        External Reference Designator:
        External Connector Type: PS/2
        Port Type: Keyboard Port

Handle 0x0011, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: PS/2 Mouse
        Internal Connector Type: PS/2
        External Reference Designator:
        External Connector Type: PS/2
        Port Type: Mouse Port

Handle 0x0012, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB0
        External Connector Type: Other
        Port Type: USB

Handle 0x0013, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB1
        External Connector Type: Other
        Port Type: USB

Handle 0x0014, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB2
        External Connector Type: Other
        Port Type: USB

Handle 0x0015, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB3
        External Connector Type: Other
        Port Type: USB

Handle 0x0016, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB4
        External Connector Type: Other
        Port Type: USB

Handle 0x0017, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB5
        External Connector Type: Other
        Port Type: USB

Handle 0x0018, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB6
        External Connector Type: Other
        Port Type: USB

Handle 0x0019, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB7
        External Connector Type: Other
        Port Type: USB

Handle 0x001A, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB8
        External Connector Type: Other
        Port Type: USB

Handle 0x001B, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB9
        External Connector Type: Other
        Port Type: USB

Handle 0x001C, DMI type 9, 13 bytes
System Slot Information
        Designation: PCI0
        Type: PCI
        Data Bus Width: 32 bit
        Current Usage: Available
        Length: Long
        ID: 1
        Characteristics:
                5.0 V is provided
                PME signal is supported

Handle 0x001D, DMI type 9, 13 bytes
System Slot Information
        Designation: PCI1
        Type: PCI Express
        Data Bus Width: 32 bit
        Current Usage: In Use
        Length: Long
        ID: 2
        Characteristics:
                5.0 V is provided
                PME signal is supported

Handle 0x001E, DMI type 13, 22 bytes
BIOS Language Information
        Language Description Format: Long
        Installable Languages: 3
                n|US|iso8859-1
                n|US|iso8859-1
                r|CA|iso8859-1
        Currently Installed Language: n|US|iso8859-1

Handle 0x001F, DMI type 16, 15 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: None
        Maximum Capacity: 2 GB
        Error Information Handle: Not Provided
        Number Of Devices: 2

Handle 0x0020, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x001F
        Error Information Handle: Not Provided
        Total Width: Unknown
        Data Width: Unknown
        Size: No Module Installed
        Form Factor: DIMM
        Set: None
        Locator: A0
        Bank Locator: Bank0/1
        Type: Unknown
        Type Detail: Unknown

Handle 0x0021, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x001F
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 1 GB
        Form Factor: DIMM
        Set: None
        Locator: A1
        Bank Locator: Bank2/3
        Type: Unknown
        Type Detail: Synchronous
        Speed: 55438 MT/s
        Manufacturer: None
        Serial Number: None
        Asset Tag: None
        Part Number: None

Handle 0x0022, DMI type 19, 15 bytes
Memory Array Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x0003FFFFFFF
        Range Size: 1 GB
        Physical Array Handle: 0x001F
        Partition Width: 1

Handle 0x0023, DMI type 20, 19 bytes
Memory Device Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x000000003FF
        Range Size: 1 kB
        Physical Device Handle: 0x0020
        Memory Array Mapped Address Handle: 0x0022
        Partition Row Position: 1

Handle 0x0024, DMI type 20, 19 bytes
Memory Device Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x0003FFFFFFF
        Range Size: 1 GB
        Physical Device Handle: 0x0021
        Memory Array Mapped Address Handle: 0x0022
        Partition Row Position: 1

Handle 0x0025, DMI type 32, 11 bytes
System Boot Information
        Status: No errors detected

Handle 0x0026, DMI type 127, 4 bytes
End Of Table


root@OPNsense:~ # opnsense-version
OPNsense 24.7.9_1 (amd64)


root@OPNsense:~ # ifconfig
re0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        description: LAN (lan)
        options=82088<VLAN_MTU,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:01:80:77:8d:4d
        inet 172.16.0.94 netmask 0xffffff00 broadcast 172.16.0.255
        inet6 fe80::201:80ff:fe77:8d4d%re0 prefixlen 64 scopeid 0x1
        inet6 2003:XXXX:XXXX:XXaa:201:80ff:fe77:8d4d prefixlen 64 autoconf pltime 14400 vltime 86400
        inet6 fd70:248c:966f:de48:201:80ff:fe77:8d4d prefixlen 64 detached autoconf pltime 1800 vltime 1800
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>


Still no dice though, all interface editing works for me without any lighttpd crashes.

So I give up here, sorry.
Hardware:
DEC740


Last post from me on this topic, cause it seems that only very few hardware items got this "weird" behaviour.

So I have to live with it, that after "Applying" on any INTERFACE made GUI action the System's GUI hang up for a several time.

This leads to my question: Is it okay, when I make x-Switch Actions on several Interfaces and click only ONE TIME the "APPLY" Button at the end? 
Or is it better to klick on APPLY each time before leaving any Interface?

I can live with one time waiting 4 minutes before re-entering GUI; but x-time Waiting for 4 minutes is really not good for my heart due too much coffee pauses  ::)

November 24, 2024, 11:56:35 AM #42 Last Edit: November 24, 2024, 12:00:20 PM by DEC670airp414user
as posted previously.  I am running a DEC 670 running the latest business release.
if I open a interface >  choose 1400 as MTU.   click save then APPLY>.  this immediately happens each time.

I'm running the router to a Unifi 8 port switch with 2 vans.   

static IP for wan

edit.    when I removed 1400 under MTU.   and hit save > apply. it happens again.    I refresh Safari
I just tried this in Firefox ESR and it acts differently.    if I make the change and click save then Apply.   nothing happens.. I have to click Apply Twice for it to save.

so easily replicated in Safari.    different issues in Firefox ESR

is the OP using Safari?

Quoteas posted previously.  I am running a DEC 670 running the latest business release.
if I open a interface >  choose 1400 as MTU.   click save then APPLY>.  this immediately happens each time.

What happens immediately each time?
A System "Stall" for 3-4 minutes describes as in this thread?

QuoteI just tried this in Firefox ESR and it acts differently.    if I make the change and click save then Apply.   nothing happens.. I have to click Apply Twice for it to save.

What means "nothing happens"?
The system saves not? The system hangs? The system react like it should?

Could you give an information which describes your experiences clearly?

Quote from: AES777GCM on November 24, 2024, 05:39:36 PM
Quoteas posted previously.  I am running a DEC 670 running the latest business release.
if I open a interface >  choose 1400 as MTU.   click save then APPLY>.  this immediately happens each time.

What happens immediately each time?
A System "Stall" for 3-4 minutes describes as in this thread?

the hardware does not stall.  just the  browser goes to page can not be displayed message in Safari.   in firefox.  you click apply and nothing happens... if i wait and click apply again, it then saves

QuoteI just tried this in Firefox ESR and it acts differently.    if I make the change and click save then Apply.   nothing happens.. I have to click Apply Twice for it to save.

What means "nothing happens"?
The system saves not? The system hangs? The system react like it should?
all tunnels still work, traffic flows.   you just lose access to the page you are on currently until you fresh

Could you give an information which describes your experiences clearly?