Flint 2 - Web UI not working after power outage

Currently on 4.8.3

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?

Hi,

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.

Thank for the reply.

My sysupgrade.conf comprises:

/root/backup/
/root/bin/
/etc/openvpn/
/etc/config/gl_nas/
/etc/AdGuardHome

In my backup I have a list of the 3rd party stuff

bark-router-client
etherwake
kmod-sched-cake
liblucihttp-lua
liblucihttp0
luci-app-firewall
luci-app-opkg
luci-app-sqm
luci-app-wol
luci-base
luci-i18n-base-en
luci-i18n-base-zh-cn
luci-i18n-firewall-en
luci-i18n-firewall-zh-cn
luci-i18n-opkg-en
luci-i18n-opkg-zh-cn
luci-lib-base
luci-lib-ip
luci-lib-jsonc
luci-lib-nixio
luci-mod-admin-full
luci-mod-network
luci-mod-status
luci-mod-system
luci-proto-ipv6
luci-proto-ppp
luci-theme-bootstrap
luci
nano
rpcd-mod-luci
rpcd-mod-rrdns
sqm-scripts

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'

These configurations were created via UCI, so they should be restored from the backup file.

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.

1 Like