GUI login not possible after upgrade

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
wg25
New user
Posts: 6
Joined: 12 Nov 2020, 21:28

GUI login not possible after upgrade

#1 Post by wg25 » 07 Oct 2021, 15:47

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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GUI login not possible after upgrade

#2 Post by TD-er » 07 Oct 2021, 16:24

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)

wg25
New user
Posts: 6
Joined: 12 Nov 2020, 21:28

Re: GUI login not possible after upgrade

#3 Post by wg25 » 08 Oct 2021, 12:25

No chance, always same behaviour. Login window comes up and up again. But the esp32 is working...

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GUI login not possible after upgrade

#4 Post by TD-er » 08 Oct 2021, 20:30

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.

wg25
New user
Posts: 6
Joined: 12 Nov 2020, 21:28

Re: GUI login not possible after upgrade

#5 Post by wg25 » 10 Oct 2021, 15:52

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. ;)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GUI login not possible after upgrade

#6 Post by TD-er » 10 Oct 2021, 16:16

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?)

wg25
New user
Posts: 6
Joined: 12 Nov 2020, 21:28

Re: GUI login not possible after upgrade

#7 Post by wg25 » 10 Oct 2021, 16:20

Password is just in small letters, 8 characters long, nothing special.

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: GUI login not possible after upgrade

#8 Post by mrwee » 10 Oct 2021, 18:31

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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GUI login not possible after upgrade

#9 Post by TD-er » 10 Oct 2021, 19:06

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.

wg25
New user
Posts: 6
Joined: 12 Nov 2020, 21:28

Re: GUI login not possible after upgrade

#10 Post by wg25 » 10 Oct 2021, 22:19

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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GUI login not possible after upgrade

#11 Post by TD-er » 10 Oct 2021, 22:21

Thanks for testing, will have a look here too.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GUI login not possible after upgrade

#12 Post by TD-er » 10 Oct 2021, 22:32

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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GUI login not possible after upgrade

#13 Post by TD-er » 10 Oct 2021, 23:40

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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GUI login not possible after upgrade

#14 Post by TD-er » 10 Oct 2021, 23:58

Well still 3 minutes before "tomorrow".
But here is the PR: https://github.com/letscontrolit/ESPEasy/pull/3802

wg25
New user
Posts: 6
Joined: 12 Nov 2020, 21:28

Re: GUI login not possible after upgrade

#15 Post by wg25 » 06 Nov 2021, 14:04

Just updated to 20211105... same behaviour like 20211005... no GUI login possible. Have to go back to 20210802.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GUI login not possible after upgrade

#16 Post by TD-er » 06 Nov 2021, 14:14

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests