Skip to content
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

OTA Authenticating...FAIL #1017

Closed
pcornill opened this issue Jul 2, 2018 · 10 comments
Closed

OTA Authenticating...FAIL #1017

pcornill opened this issue Jul 2, 2018 · 10 comments

Comments

@pcornill
Copy link

pcornill commented Jul 2, 2018

This is the 4th time it happens to me so I believe something is wrong. Did anyone of you experienced this issue?
It happens to me with Sonoff Basic, TH and POW.
It is when updating from 1.12.4 to 1.12.6 but that I am not 100% sure it was the case for previous OTA errors.
Authenticating...FAIL
14:15:02 [ERROR]: No Answer to our Authentication

==> this is not a password issue because when I put the wrong password, I got this:
Authenticating...FAIL
14:22:41 [ERROR]: Authentication Failed

@xoseperez xoseperez added the ota label Jul 3, 2018
@xoseperez
Copy link
Owner

Does it always happen or it is random? It could be the device not responding on time... but then you should be able to retry and succeed.

@pcornill
Copy link
Author

pcornill commented Jul 3, 2018

It is not random. You can believe me I tried everything I could to avoid opening the box. I rebooted several times but always got that error. Same error from Telnet, nothing additional.

@xoseperez
Copy link
Owner

Does the device have enough free space for OTA?

One thing: those version numbers (1.14, 1.16) are not for ESPurna...

@pcornill
Copy link
Author

pcornill commented Jul 3, 2018

Yes Espurna, I corrected the version (my mistake).
In term of free memory, I believe they do. I am using the firmware you developed and nothing else.
If it works with any Sonoff Basic, it shouldn't be an issue, right?

@xoseperez
Copy link
Owner

Can you log into the device and check the debug log (via telnet or in the web interface) and see what happens when you try to flash it OTA?

@pcornill
Copy link
Author

pcornill commented Jul 5, 2018

As I said earlier, I also try to log with Telnet and didn't get any additional message than the one Arduino IDE shows me. I do not have ways to reproduce because I uploaded the latest Espurna using serial port - which was successful -
You may want to close that issue but at least we have a record and someone may see the same problem later on. Thx Xose for your prompt support.

@reddevil156
Copy link

I got the same message today when trying to do a OTA with the arduino IDE. I used the dev brach 1.13.1 for a magic_controller_20
After the compilation was completed a window with the password prompt appeared. I put in my password and got the error:
Authenticating...FAIL
22:45:07 [ERROR]: No Answer to our Authentication

The log file in espura shows the following message:

[115772] [WEBSOCKET] #5 connected, ip: 192.168.160.43, url: /ws
[156618] [OTA] Error #1: Begin Failed
[156626] [EEPROM] Reenabling EEPROM rotation

I think there is too few space for the flash but shows the wrong error message.

@xoseperez
Copy link
Owner

I'm keeping it open. There are a number of reasons for the error #1:

  • An update is already running
  • The boot mode is not right to reboot
  • The new image size if 0
  • Flash configuration is wrong (larger than the physical size)
  • New image size is larger than the free space

Most of the time it would be the latest reason.

@stale
Copy link

stale bot commented Sep 8, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 8, 2018
@stale
Copy link

stale bot commented Sep 15, 2018

This issue will be auto-closed because there hasn't been any activity for two months. Feel free to open a new one if you still experience this problem.

@stale stale bot closed this as completed Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants