Closed alka79 closed 1 month ago
Interesting I just unzipped your file and restored it to two different ESP32 devices and it worked just fine. Be sure you are not editing that file before uploading it. Some text editors change the line endings and do other goofy things.
???? I did not edit any of the backup files. I'll install 2.4.3 and data locally instead of github and restore again.
Are you recompiling the firmware? If so which board are you selecting in the IDE?
I did not recompile, updated from 2.4.3pre to 2.4.3 final via github update.
I just now downloaded source files and uploaded locally both firmware an litlefls to the board. Then restored my backup and it is all back again :-)
I have no clue what happend and why update via github gave a different result.
I'll try to replicate this by downgrading/upgrading and see where it ends up. The ESP32 filesystem (littlefs) does not give any error if the file write fails. It could be that all you needed to do is re-install v2.4.3 from the github update and restore your file. I turn everything off but the update process when downloading the fs but there really is no way to verify a successful write when it is done.
Did you have to use this method in the past?
I tried this several times and was not able to duplicate it. The only thing I can think of is that the write to littlefs failed. Unfortunately, there is no way to read back bytes that were just written to verify them when writing filesystem blocks. Prior to the update to Arduino core 2.016 there was a PR that fixed the writing of the fs buffers in some circumstances where writing OTA.
Perhaps this is what you experienced. I am going to close this for now but keep it in the back of my mind.
Did you have to use this method in the past?
only two attempts to update via github, first was 2.4.3pre. Both failed. Not a the same stage. First time the webUi could not load .js file.
In the future I will always download first and update local OTA. More reliable.
Hardware
ESP32
Firmware version
2.4.3
Application version
2.4.3
What happened? What did you expect to happen?
I updated to release 2.4.3 stable via github. Update went well.
Stupid me!, I then restored from the backup file created just before update from 2.4.3-pre3. Restore failed.
I tried with other backup files, back to 2.4.2 stable : always the same error in the serial port:
and later after reset
All my Somfy settings are gone :-(
Attached is the latest backup file. I don't see anything wrong. Is there something I can fix by editing the file ?
How to reproduce it (step by step)
Logs
No response