A cellular modem connects, then a log entry mentions a missing configuration for wan_4. Separate the saved WAN configuration, the runtime interface and the kernel device carrying the traffic. Each name need not have a permanent configuration section.
Compare the three names during the same connection
On OpenWrt 24.10.5 some QMI configurations call network add_dynamic to create an IPv4 interface ending in _4. Other modem protocols can behave differently. Over SSH substitute your own interface names.
ubus list 'network.interface.*'
uci -q get network.wan.proto
uci -q get network.wan_4.proto
ubus call network.interface.wan status
ubus call network.interface.wan_4 status
logread -e netifd | tail -40

The OpenWrt 25.12.6 virtual DHCP example has a saved interface named wan and a layer-three device named eth1. It has no cellular modem and does not create wan_4. If the runtime object is absent, querying its status can report that it was not found.
Decide whether the event affects traffic
If ubus lists wan_4, UCI does not, and the runtime object is up with an IPv4 address, check the intended routing table and open a real service from the LAN. Determine whether only a custom script expects a persistent configuration.
If the interface remains pending or has no address, inspect the parent WAN and modem connection log. If only the router can reach the Internet, inspect LAN forwarding and the exit zone.
If the object disappears briefly during reconnection, align the ifdown and ifup timestamps with the query. A script might be reading an object after it was removed.
The 24.10.5 handler 00-netstate attempts a state update on ifup. In a custom script, check for a UCI section when persistent settings are required. For the current device use the event's DEVICE or its live interface status. Ignoring every dynamic interface could discard valid events.
Back up custom scripts. Observe a reconnection during a maintenance window with a local recovery path. Verify the new address, LAN application and intended event action. Restore the script if an action stops firing. A log message by itself is insufficient reason to create a static interface.
How to read a cgmon WAN incident when only some sites stop working
Comments