-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Stochastic OTA Behavior (IDFGH-1198) #3504
Comments
The following error condition has also appeared:
|
It turns out the successful update log listed above is from an older firmware (the one pulled via the OTA). Despite the resets, it appears that the OTA may be working, although the reset is ungraceful. |
@gregjesl Thanks for reporting, which example from IDF you are using, also do you have any changes done on your side? |
I'm using a custom application but I can try the simple OTA example. I do not have any changes to the IDF on my side. I just pulled the latest from the master branch. I now receive the following error:
|
I disabled assertions and the OTA worked; however, the MQTT client is failing to establish a SSL connection with the broker after the OTA (we connect to the broker, send a message saying the update was successful, and then disconnect).
We are using the same certificate (in the same memory location in code) for the MQTT client and the OTA HTTPS client. It looks like the OTA client may be trying to free the certificate memory... |
The issue is that
|
I've created a pull request to resolve the issue: #3513 |
@gregjesl the problem is that Thats why you have |
I'm not tracking what you mean by mangled. Are you referring to the recast here?
|
Sorry, my bad. In PR i had to scroll too high and i thought this is beginning of function:
and this parameter name is the same as variable in here:
So, ignore my previous comment please. Sorry. |
@chegewara No problem. Is removing |
@gregjesl I think removing |
Closes espressif#3504 Merges espressif#3513 Signed-off-by: Jitin George <jitin@espressif.com>
Environment
Problem Description
HTTPS OTA behavior is stochastic. ~40% of the time the OTA works:
~50% of the time I receive the following error:
~10% of the time I receive the following error:
I've also noticed that the OTA succeeds when writing to partition subtype 17 and fails when writing to partition subtype 16. It is not clear why the subtype is stochastic.
The message
I (510346) esp_https_ota: Please Wait. This may take time
also appears in successful attempts and does not appear when the OTA fails.The text was updated successfully, but these errors were encountered: