So when I have online classes, the router suddenly goes into a reboot sequence, disrupting it. I found an error, but I don't know what it means.
Here's the system log for reference.
Sun Oct 4 19:02:09 2020 user.notice SQM: piece_of_cake.qos was started on eth0.2 successfully
Sun Oct 4 19:02:10 2020 user.notice firewall: Reloading firewall due to ifup of wan (eth0.2)
Sun Oct 4 19:02:10 2020 daemon.info dnsmasq[1896]: read /etc/hosts - 4 addresses
Sun Oct 4 19:02:10 2020 daemon.info dnsmasq[1896]: read /tmp/hosts/odhcpd - 2 addresses
Sun Oct 4 19:02:10 2020 daemon.info dnsmasq[1896]: read /tmp/hosts/dhcp.cfg01411c - 3 addresses
Sun Oct 4 19:02:10 2020 daemon.info dnsmasq-dhcp[1896]: read /etc/ethers - 0 addresses
Sun Oct 4 19:15:56 2020 daemon.info hostapd: wlan0: STA b2:be:76:5c:47:0e IEEE 802.11: authenticated
Sun Oct 4 19:15:56 2020 daemon.info hostapd: wlan0: STA b2:be:76:5c:47:0e IEEE 802.11: associated (aid 1)
Sun Oct 4 19:15:56 2020 daemon.info dnsmasq-dhcp[1896]: DHCPREQUEST(br-lan) 192.168.9.100 b2:be:76:e4:6c:7c
Sun Oct 4 19:15:56 2020 daemon.info dnsmasq-dhcp[1896]: DHCPNAK(br-lan) 192.168.9.100 b2:be:76:e4:6c:7c address not available
Sun Oct 4 19:15:57 2020 daemon.notice hostapd: wlan0: AP-STA-CONNECTED b2:be:76:5c:47:0e
Sun Oct 4 19:15:57 2020 daemon.info hostapd: wlan0: STA b2:be:76:5c:47:0e WPA: pairwise key handshake completed (RSN)
Sun Oct 4 19:15:58 2020 daemon.info hostapd: wlan0: STA b2:be:76:41:ab:3a IEEE 802.11: authenticated
Sun Oct 4 19:15:58 2020 daemon.info hostapd: wlan0: STA b2:be:76:16:2b:31 IEEE 802.11: authenticated
Sun Oct 4 19:15:58 2020 daemon.info hostapd: wlan0: STA b2:be:76:41:ab:3a IEEE 802.11: associated (aid 2)
Sun Oct 4 19:15:58 2020 daemon.info hostapd: wlan0: STA b2:be:76:16:2b:31 IEEE 802.11: associated (aid 3)
Sun Oct 4 19:15:59 2020 daemon.notice hostapd: wlan0: AP-STA-CONNECTED b2:be:76:41:ab:3a
Sun Oct 4 19:15:59 2020 daemon.info hostapd: wlan0: STA b2:be:76:41:ab:3a WPA: pairwise key handshake completed (RSN)
Sun Oct 4 19:15:59 2020 daemon.notice hostapd: wlan0: AP-STA-CONNECTED b2:be:76:16:2b:31
Sun Oct 4 19:15:59 2020 daemon.info hostapd: wlan0: STA b2:be:76:16:2b:31 WPA: pairwise key handshake completed (RSN)
Sun Oct 4 19:16:00 2020 daemon.info dnsmasq-dhcp[1896]: DHCPDISCOVER(br-lan) b2:be:76:e4:6c:7c
Sun Oct 4 19:16:00 2020 daemon.info dnsmasq-dhcp[1896]: DHCPOFFER(br-lan) 192.168.0.114 b2:be:76:e4:6c:7c
Sun Oct 4 19:16:00 2020 daemon.info dnsmasq-dhcp[1896]: DHCPINFORM(br-lan) 192.168.0.198 08:62:66:87:3c:87
Sun Oct 4 19:16:00 2020 daemon.info dnsmasq-dhcp[1896]: DHCPACK(br-lan) 192.168.0.198 08:62:66:87:3c:87 CHIDOWS
Sun Oct 4 19:16:00 2020 daemon.info dnsmasq-dhcp[1896]: DHCPREQUEST(br-lan) 192.168.0.114 b2:be:76:e4:6c:7c
Sun Oct 4 19:16:00 2020 daemon.info dnsmasq-dhcp[1896]: DHCPACK(br-lan) 192.168.0.114 b2:be:76:e4:6c:7c Blastorix
Sun Oct 4 19:16:14 2020 daemon.info dnsmasq-dhcp[1896]: DHCPDISCOVER(br-lan) 192.168.9.28 b0:be:76:5c:47:0d
Sun Oct 4 19:16:14 2020 daemon.info dnsmasq-dhcp[1896]: DHCPOFFER(br-lan) 192.168.9.28 b0:be:76:5c:47:0d
Sun Oct 4 19:16:21 2020 daemon.err uhttpd[1406]: luci: accepted login on / for root from 192.168.0.114
Sun Oct 4 19:16:24 2020 daemon.err miniupnpd[2042]: upnp_event_recv: recv(): Connection reset by peer
Sun Oct 4 19:16:24 2020 daemon.err miniupnpd[2042]: upnpevents_processfds: 0x428ee0, remove subscriber uuid:3db9bf35-885d-4044-a51a-39e3f9cd7e1f after an ERROR cb: http://192.168.0.114:2869/upnp/eventing/drjplcpwkp
Sun Oct 4 19:16:24 2020 daemon.err miniupnpd[2042]: upnp_event_recv: recv(): Connection reset by peer
Sun Oct 4 19:16:24 2020 daemon.err miniupnpd[2042]: upnpevents_processfds: 0x428ee0, remove subscriber uuid:feff367f-a245-409a-9f0e-955d64e4d4cd after an ERROR cb: http://192.168.0.114:2869/upnp/eventing/lttlucmhzy
How do I solve this? It's a recurring issue, much to my annoyance.
Can you tell us make/model of router and exact version of OpenWrt is installed?
Unlikely those miniupnpd errors are the cause, but I could be wrong.
If in doubt, I believe you can turn off uPnP functionality in LuCI. (Some software/apps may require uPnP to function correctly)
The problem is if a router does reboot spontaneously, any actual error, if it is even recorded in the System log, is lost.
You would need a serial connection wired to the router's circuit board to try and capture all console messages. But this is only useful if the error is displayed.
Usual non-software causes include an ageing router, or it may be overheating. A failing power adapter which cannot deliver enough power to the router when demanded is another common reason.
Open a ssh terminal and run logread -f. This will cause the router to send logs in real time to the PC. Watch for any log messages made shortly before the router crashes. (Note some ssh clients will close the window when the connection dies-- do not use one of those).
It was the miniupnpd errors causing such disruptions. Apparently, when I changed the UPnP and Port Forwards to the internal address 192.168.0.0/16, there are no longer any form of disruptions.
Perhaps that address automatically factors in any device that may possess 192.168.x.x hence why the issue being completely sidestepped.