Skip to content

OTA Authentication fail. #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cmbhjv opened this issue Feb 9, 2020 · 8 comments
Open

OTA Authentication fail. #6

cmbhjv opened this issue Feb 9, 2020 · 8 comments

Comments

@cmbhjv
Copy link

cmbhjv commented Feb 9, 2020

When trying to do OTA in a device with OTA password set, authentication fails.

It doesn't ask for the password either.

My guess is that it needs to pop the Password request form (I guess it's this one here ) and pass it as the "-a" argument to espota.py (here)

@earlephilhower
Copy link
Owner

This is the mklittlefs.exe github, not related to OTA. I suggest you look at the esp8266 core for assistance.

@cmbhjv
Copy link
Author

cmbhjv commented Feb 12, 2020

Sorry, but I believe you are mistaken. mklittlefs.exe is another repository.

This is the "arduino-esp8266littlefs-plugin" github.
image

It's the arduino-esp8266littlefs-plugin who needs to ask for the password. The ESP8266LittleFS.java file in this repository calls the espota.py without the -a argument.

@earlephilhower
Copy link
Owner

Ah, you are correct. I do own both repos. However, the littlefs-java uploader is mostly a cut-n-paste version of the standard arduino 8266 one by me-no-dev:

https://github.com/esp8266/arduino-esp8266fs-plugin/blob/56a6c515545ff5301be5e679d014ab7062600d81/src/ESP8266FS.java#L322

I don't believe it gets a notice that the OTA has a password (most don't since OTA is insecure and will pass PWDs plaintext over the air). Not sure there's a way to know if a PWD has been set in the IDE. Will need a little study.

If you've got a suggestion, PRs are always appreciated. :)

@877dev
Copy link

877dev commented Sep 23, 2020

I've been having the same issue here, ArduinonIDE does not prompt for a password when uploading LittleFS OTA.

A workaround is to flash a sketch with no password, upload LittleFS, then flash sketch with password.

@LeisureLadi
Copy link

cmbhjv and 877dev,
I have forked the repo and added a dialog box for the password. The downside is, that the box will open every time, no matter if a password is required or not. But you can leave the box empty to upload without a password.
Have fun!

@877dev
Copy link

877dev commented Jul 18, 2021

cmbhjv and 877dev,
I have forked the repo and added a dialog box for the password. The downside is, that the box will open every time, no matter if a password is required or not. But you can leave the box empty to upload without a password.
Have fun!

That sounds good thank you. I’ll check that out and report back! 👍

@877dev
Copy link

877dev commented Jul 26, 2021

@LeisureLadi @cmbhjv finally I got to test this (been away for a week).
It works!

Password box appears, enter OTA password, small delay, then Authenticating...OK and Uploading..... Takes a while to upload, and there is no Finished message. But is works.

Excellent work, thank you.

@earlephilhower FYI #18

@LeisureLadi
Copy link

@877dev
The missing 'Finished' message is related with the Python script. It is missing there. Having said this, it is also missing, when you OTA a sketch. I'm not sure if it can be added there. Feel free to investigate and let us know, what you find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants