Page 1 of 1

GUI login not possible after upgrade

Posted: 07 Oct 2021, 15:47
by wg25
Hello,

I upgraded my working ESP32 with the internal upgrade function from mega-20210802 to mega-20211005. I used the following binary: ESP_Easy_mega_20211005_normal_ESP32_4M316k.bin.

The ESP32 reboots and it's running, I still receive the values with my server. But it's not possible to login into the web-interface. The user/pass popup comes back again and again. Before the update it was possible to login...

Any ideas?

Thanks.

Re: GUI login not possible after upgrade

Posted: 07 Oct 2021, 16:24
by TD-er
Are you able to access the /tools URL (and thus OTA downgrade to the previous build)
Can you also try another browser? (or incognito mode, to make sure there isn't a session active or taken)

Re: GUI login not possible after upgrade

Posted: 08 Oct 2021, 12:25
by wg25
No chance, always same behaviour. Login window comes up and up again. But the esp32 is working...

Re: GUI login not possible after upgrade

Posted: 08 Oct 2021, 20:30
by TD-er
If you can access the serial (and have not disabled serial) you can clear the password to regain access.
No idea what's wrong here. Have to test myself.

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 15:52
by wg25
I stupidly disabled the serial. :roll:
I just flashed the previous version with flash_download_tool and it's running again, config was not erased. Login is possible.
I tried to flash the new version with flash_download_tool again. Same behaviour, no login possible. So I will stay on the 202108 version. ;)

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 16:16
by TD-er
OK, I will try to reproduce it.
I don't think it makes a difference whether it is ESP32 or ESP8266, since you're not using Ethernet.

Does your password have any special characters?
Or maybe a length close to what could be the max. of the field length? (what length does your password have?)

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 16:20
by wg25
Password is just in small letters, 8 characters long, nothing special.

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 18:31
by mrwee
I had the same issue some releases back (Can't recall how far). Drove me crazy, since I experienced it at the same time as the problems with toggling back/forth rule pages, which was pretty unstable. Have not seen it recent releases (ESP8266) at all :D :D
I decided to flash with relevant blank.bin and then the relevant ESPEasy.bin, and re-do the configs.

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 19:06
by TD-er
If clearing the settings and start over does fix it, then you could also clear the password (in an older build), flash the latest build and set a password again.

When this does fix it, I really would like to know, as we then have a (maybe serious???) bug regarding to where data is stored in the settings files.

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 22:19
by wg25
Build 20210802 --> Settings cleared, no password, reboot, everything is fine.
Update to Build 20211005 via WebInterface, no password, reboot, everything is fine.
Load settings via WebInterface, no password, reboot, everything is fine.
Set admin password, reboot, login loop!!!

Erase ESP32 via flash_tool, flash 20211005 (factory.bin) via flash_tool, reboot, everything is fine
no settings loaded, set admin password, reboot, login loop.

For me, the 20211005 is not working on ESP32. Going back to 20210802.

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 22:21
by TD-er
Thanks for testing, will have a look here too.

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 22:32
by TD-er
Just tested and indeed it is now broken (tested on ESP32)
Not sure if it is also a problem on ESP8266, still need to test.

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 23:40
by TD-er
Without trying on ESP8266, I can see it is very likely only related to ESP32 builds.
When I switch the ESP32 SDK to the PlatformIO platform:

Code: Select all

platform                  = espressif32 @ 3.3.1
It does allow login.
But that version is extremely unstable on WiFi response.

Will look into it tomorrow and make a fix.

Re: GUI login not possible after upgrade

Posted: 10 Oct 2021, 23:58
by TD-er
Well still 3 minutes before "tomorrow".
But here is the PR: https://github.com/letscontrolit/ESPEasy/pull/3802

Re: GUI login not possible after upgrade

Posted: 06 Nov 2021, 14:04
by wg25
Just updated to 20211105... same behaviour like 20211005... no GUI login possible. Have to go back to 20210802.

Re: GUI login not possible after upgrade

Posted: 06 Nov 2021, 14:14
by TD-er
wg25 wrote: 06 Nov 2021, 14:04 Just updated to 20211105... same behaviour like 20211005... no GUI login possible. Have to go back to 20210802.
Huh?
That's strange as I am frequently typing my login for weeks now on my test/dev nodes without disabling it as I know I need to keep testing it.