Last night my home experienced a power outage and although I can’t believe this would cause my issue, I am not sure what else could have done this. That said I updated all my add-ins via the GLi-Net UI a few days ago (not via Luci nor via SSH opkg) but all appeared to be OK after this until this morning.
I just get a spinning dots icon and a message at the top of the scrren: X - msg.unknown_err
I have tried different browsers, incognito mode, different PCs, smart devices but all report the same. I am just wondering whether the issue was with the updated add-ins and I only noticed the issue after a reboot? Other than the GUI, the router appears to be working fine otherwise - just cannot get access to the UI!
However, I do have a backup that I did via Luci before I did the upgrade.
As I have some reasonably complex manual changes to firewall, wifi etc, I don’t really want to do a U-Boot unless I really have to and even then can I restore my backup to get back to where I had been? But is there a way I can get back to pre add-in update using SSH and a fresh copy of the firmware and my backup file?
Yes, the issue is most likely related to updating all plugins.
We do not recommend updating system components through any interface (GL UI, LuCI, or SSH), except for manually installed third-party plugins.
If your firewall and Wi-Fi settings are configured via UCI, or if the relevant files are properly listed in sysupgrade.conf, then importing the backup after reflashing the firmware via U-Boot should work as expected.
Please note that any third-party components will need to be reinstalled manually.
Would the restore of the backup restore all the firewall rules?
Bruce helped me with the following to help split my wifi zones. Would these be restored OK with their firewall rules?
/etc/config/network
uci add network device # =cfg1b0f15
uci set network.@device[-1].type='bridge'
uci set network.@device[-1].name='br-iot'
uci set network.iot=interface
uci set network.iot.proto='static'
uci set network.iot.device='br-iot'
uci set network.iot.ipaddr='192.168.11.1'
uci set network.iot.netmask='255.255.255.0'
/etc/config/dhcp
uci set dhcp.iot=dhcp
uci set dhcp.iot.interface='iot'
uci set dhcp.iot.start='100'
uci set dhcp.iot.limit='150'
uci set dhcp.iot.leasetime='12h'
uci add_list dhcp.iot.ra_flags='none'
/etc/config/firewall
uci add firewall zone # =cfg26dc81
uci set firewall.@zone[-1].name='iot'
uci set firewall.@zone[-1].input='ACCEPT'
uci set firewall.@zone[-1].output='ACCEPT'
uci set firewall.@zone[-1].forward='REJECT'
uci add_list firewall.@zone[-1].network='iot'
uci add firewall forwarding # =cfg27ad58
uci set firewall.@forwarding[-1].src='iot'
uci set firewall.@forwarding[-1].dest='wan'
/etc/config/wireless
uci del wireless.mt798612.disabled
uci set wireless.wifinet4=wifi-iface
uci set wireless.wifinet4.device='mt798612'
uci set wireless.wifinet4.mode='ap'
uci set wireless.wifinet4.ssid='GL Router-IoT-5G'
uci set wireless.wifinet4.encryption='psk2'
uci set wireless.wifinet4.key='goodlife'
uci set wireless.wifinet4.network='iot'
uci set wireless.wifinet4.ifname='rax2'
uci del wireless.mt798611.disabled
uci set wireless.wifinet5=wifi-iface
uci set wireless.wifinet5.device='mt798611'
uci set wireless.wifinet5.mode='ap'
uci set wireless.wifinet5.ssid='GL Router-IoT-2.4G'
uci set wireless.wifinet5.encryption='psk2'
uci set wireless.wifinet5.key='goodlife'
uci set wireless.wifinet5.network='iot'
uci set wireless.wifinet5.ifname='ra2'
Update:
Once I figured out that I needed the ethernet cable connected to port 2 on the Flint to get access to uboot mode, I did a clean install of 7.8.3 - got into the GUI then did a restore from Luci. All is back to normal once I installed the plugins that I had had.