Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
341 stars 52 forks source link

Default GUI/firmware after power loss #1017

Closed ftruzzi closed 3 years ago

ftruzzi commented 3 years ago

Ciao!

Shortly after updating the GUI to the latest version via the UI, I had two power losses in quick succession and now I see the Fastweb GUI wizard and I lost all network settings.

image

Does this mean my DGA4131 is now booting from the other bank? Might it be a GUI bug? How can I debug this further and recover from this?

Thanks :)

EDIT: I managed to log in via SSH and it has not switched banks:

/proc/banktable/active
bank_1
/proc/banktable/booted
bank_2
/proc/banktable/inactive
bank_2
/proc/banktable/bootedoid
5f116f2a58c6fb4e96660884
/proc/banktable/notbooted
bank_1

I then tried to reinstall the GUI and rebooted, but I lost SSH access:

ssh: connect to host 192.168.1.254 port 22: Connection refused

and this what the UI shows

image

FrancYescO commented 3 years ago

it was probably a bug of the old versions, last stable 9.6.25 should be okay but will be definitely fixed in the next versions

ftruzzi commented 3 years ago

Thanks. If it can help anyone I fixed this by doing:

However, the web UI says I'm still on 9.6.10-663c1ee8 -- shouldn't upgradegui upgrade to the latest version? I'm a bit confused, as the upgradegui log shows:

Root Script Detected upgrade!
Root Script Old GUI hash: 9032658f159aabd12f9a4c0e036fc323
Root Script New GUI hash: 831f20ebbb23aec04406a3c3422c3a60
Root Script Updating version saved to 9.6.25-3b0cbe40

EDIT: Ok, maybe uploading the old config.bin also reverted the GUI update

Dark4Codrutz commented 3 years ago

However, the web UI says I'm still on 9.6.10-663c1ee8 -- shouldn't upgradegui upgrade to the latest version? I'm a bit confused, as the upgradegui log shows:

Maybe this commit fixed what you mentioned a2ce5dd0473b4faf1a73d18cf1c374cd35a108d1

ftruzzi commented 3 years ago

Hi! I'm sorry but this is still happening. Today I rebooted my router (reboot command via SSH) and the fastweb firmware and config came up after reboot. What could it be?

ftruzzi commented 3 years ago

I found this log line after running upgradegui:

Root Script Process complete. tch-nginx-gui is now installed!
mount_root-mod: Modroot not found. Can't preserve files.

Does this help?

FrancYescO commented 3 years ago

just install directly 9.6.65

ftruzzi commented 3 years ago

I did, and I have a working setup now, but since this has happened twice already I would like to understand what went wrong and why. What could be the reasons for losing the GUI on reboot and what can we do to avoid it? Where can I look for more info?