libretiny-eu / libretiny

PlatformIO development platform for IoT modules
http://docs.libretiny.eu/
MIT License
383 stars 55 forks source link

ERROR Error auth result: Error: Authentication invalid. #183

Closed kurtdefeyter closed 9 months ago

kurtdefeyter commented 9 months ago

Please help the noob I have no idea why i get this , would someone be kind enough logs_kickstart-bk7231n_run.txt to point me in a direction Many thanks

Cossid commented 9 months ago

It appears you're trying to OTA on a device the currently is running ESPHome with an OTA password. You must include the old password, (and set the new one to blank if that is your intention)

https://esphome.io/components/ota.html#updating-the-password use simply "" for a blank password.

Alternately, you would need to flash via serial.

kurtdefeyter commented 9 months ago

ok , allow me to ask one more stupid question ...at what stage did i set that password , i did put esp home on it with cloutcutter ?

Cossid commented 9 months ago

Yes, if you compiled a custom ESPHome firmware, it was included in that.

kurtdefeyter commented 9 months ago

i am afraid that i lost the device , i went thru all the logs in cloudcutter and i never have set a password during the process., so its end of the line i am afraid

Cossid commented 9 months ago

You had to have compiled an esphome firmware to upload to it, that is where the OTA password would have been set. The Kickstart firmwares included with CloudCutter do not contain an OTA password. You would need the yaml you used to compile that firmware.

Alternately, you can serial flash, OTA password is then ignored.