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

Error binary size: not enough space to store OTA file using ESPHome 23.11.1 #22

Open
Imlbrown opened this issue Nov 16, 2023 · 4 comments

Comments

@Imlbrown
Copy link

When updating the PFL12 plug based on the ESPHome 2023.11.1 firmware released today. I receive the following error:

Error binary size: Error: ESP does not have enough space to store OTA file.

Output size of firmware.bin is 610880 bytes and compressed to 420785 bytes.

Hope that is enough info.

Thanks,
Larry

@Imlbrown
Copy link
Author

I did see the response from a previous similar issue and it said a work around was to disable api encryption, but since the size issue, using api encryption, was corrected between that version of ESPHome and this current version, I didn't know if you were going to attempt a fix that would work with api encryption enabled.

@bkaufx
Copy link

bkaufx commented Nov 17, 2023

Yea I will try to figure it out but not sure how quick I will be able to get to it. I would recommend just removing api encryption, but if you want to keep it you can hobble along by going through the -minimal.yaml package temporarily every time you update or you could also just move to minimal permanently. The main yaml doesn't add that much that you couldn't implement yourself with much more basic yaml.

@Imlbrown
Copy link
Author

Imlbrown commented Nov 17, 2023 via email

@wildfire305
Copy link

wildfire305 commented Nov 27, 2023

I managed to get the firmware for 2023.11.1+ to work with api enabled by outputting the bin file and compressing it manually with 7zip using the gzip option. This made it smaller than esphome output, and thus it was able to fit within the size needed. I go to the device and manually upload that bin.gz file and it has worked the last four updates. I did do a full reset to 2.052, just to confirm that it wasn't just a wonky setting and it produced the same result with esphome outputting a file that was too large.

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

3 participants