richonguzman / LoRa_APRS_iGate

LoRa APRS iGATE for ESP32 Based Board with Rx + Tx capabilities
MIT License
239 stars 72 forks source link

OTA password issue #37

Closed iw2ejh closed 8 months ago

iw2ejh commented 8 months ago

With latest version (web interface) 2024-02-25 when I go to page /update/ for OTA update, I was asked for a password, but the this was not accepted. The password is set in the previous page (web interface). I also tryied with a blank password, but get the same behavior.

richonguzman commented 8 months ago

can you delete any character on the OTA part of the configuration Web Page?

iw2ejh commented 8 months ago

Yes, I did that too. no username no passord
then I go on the OTA page, and I'm asked for a password, I let all blank and I'm asked again and again for password

richonguzman commented 8 months ago

maybe cleaning/deleting the browser cache will help you with it

iw2ejh commented 8 months ago

I used a new browser just for that page, but seme behavior

richonguzman commented 8 months ago

SAVE the configuration, it will download a .json file

open it in textEditor app to see if a character is saved there as "user"+"password"

PS: which IP are you using for it?

iw2ejh commented 8 months ago

from the saved file (backup) : > "ota":{"username":"","password":""}} I'm connecting to 192.168.1.230 that is assigned to the iGate in my network

richonguzman commented 8 months ago

so the " 192.168.1.230/update " page does not open or asks for password?

iw2ejh commented 8 months ago

the page "192.168.1.230/update does not open (blank page) and is asking for a user name and password in a popup. If I close the page using Abort, the page give " HTTP ERROR 401 " Screenshot 2024-02-27 164434

SQ2CPA commented 8 months ago

On configuration page you don't have filled OTA username and password? Can you check that for me?

iw2ejh commented 8 months ago

immagine

iw2ejh commented 8 months ago

even if I put some number like Username 1 password 1, I got the same behavior

iw2ejh commented 8 months ago

immagine

immagine

immagine

Same behavior

iw2ejh commented 8 months ago

I took down the igate and flashed it again (VSC) with the empty conf.json file and using the webpage to configure everything work now.
I still have a couple of questions: 1- Can we still flash the new version using VisualStudioC with the conf.json filled with data, or should we aways flash it with the conf.json file empty and go through the local hotspot for the first config and then continue config via web interface?? 2- It seems to me that if you configure the igate with the BME function active, when it reboot, if the BME is not connected, you get the message in the display, but also you cannot connect to the Igate anymore, until you reconnect the BME sensor.

SQ2CPA commented 8 months ago

You can flash using VSC or you can flash using our installer but it is currently experimental. Both ways should work fine without any problems :)

If we are talking about BME - I will test it after some time when I will modify the code related to it