Luci reports 502 bad gateway after installing luci-nginx

Flint2 running 4.6.8. Recently installed luci-nginx (git-20.161.73418-219f0ce). Luci reports 502 bad gateway. Removed luci-nginx including dependencies; Luci still reports 502 bad gateway. How does one restore luci interface functionality?

Nginx log reports:
2025/06/01 09:00:26 [error] 5111#0: *107 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.2, server: , request: "GET /cgi-bin/luci HTTP/1.1", upstream: "http://127.0.0.1:8080/cgi-bin/luci", host: "192.168.1.1", referrer: "http://192.168.1.1/"

Hello,

Please do not install the plugin nginx, since the GL GUI and Luci are working with nginx (in 4.6.x).

You can re-install the firmware with "keep settings" in GL GUI.
If the GL GUI is also broken, please install the firmware in uboot (settings will be lost).

https://dl.gl-inet.com/router/mt6000/stable

Thanks for the advice. The modem is the Flint2. Do you have the firmware link? Thanks. The thing is that it would be best if the DHCP assignments (some are assigned as static in luci) can be restored as part of the process. Please confirm if this is the case with the suggested keep settings method.

Many thanks

Hello,

DL the firmware in this URL:

Enable keep settings when installing firmware, this is suitable in your case.