Skip to content

OTA Authentication fail. #6

Open
@cmbhjv

Description

@cmbhjv

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)

Activity

earlephilhower

earlephilhower commented on Feb 10, 2020

@earlephilhower
Owner

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

cmbhjv

cmbhjv commented on Feb 12, 2020

@cmbhjv
Author

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

earlephilhower commented on Feb 12, 2020

@earlephilhower
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

877dev commented on Sep 23, 2020

@877dev

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

LeisureLadi commented on Jul 18, 2021

@LeisureLadi

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

877dev commented on Jul 18, 2021

@877dev

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

877dev commented on Jul 26, 2021

@877dev

@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

LeisureLadi commented on Jul 29, 2021

@LeisureLadi

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @earlephilhower@cmbhjv@LeisureLadi@877dev

        Issue actions

          OTA Authentication fail. · Issue #6 · earlephilhower/arduino-esp8266littlefs-plugin