I had the same problem using the ESPhome UI within the Home Assistant addon, until I pressed the button âupdate allâ in de right hand corner (I only have one device) and then it compiled and updated fine.
Edit: nvm it seems to fail there as well, sometimes it works fine other times I get the error.
Iâm having the same issue too.
This started happening after I updated esphome, core and Home Assistant OS to latest.
Home Assistant 2022.9.6
Supervisor 2022.09.1
Operating System 9.0
Frontend 20220907.2 - latest
ESPHome: 2022.9.1
Also I have currently 19 esphome devices and shortly there will be more than 30 and I donât want to unless there is a speceific reason since there is constantly an update anyways and compilation+update takes long especially for all the devices. (also, donât fix it if itâs not broken)
Been able to publish setting to my esphome device using Raspberry pi 4 instead of my Raspberry Pi 3b on which I run my current HA setup. Might have something to do with avalaible ram.
The compile_process_limit: 1 fixed my problem - thanks. Just to clarify for other newbies like me - it is in the script of the individual ESPhome device and not in the global config jaml file.
Question: Is there a way I can set this on a global level for all ESPhome scripts so I donât have to specify it for every individual device?
I read somewhere else that you can also set a default_compile_process_limit in the options of ESPHome now. For me it worked and solved it without altering the individual esphome devices.
Settings â Add-ons â Esphome â configuration tab â Toggle on: âShow unused optional configuration optionsâ and then put 1 in âdefault_compile_process_limitâ
Hello, the new flag: compile_process_limit: 1 isnât fixing the problem for me.
I manually added it to my configuration.yaml:
esphome:
compile_process_limit: 1
I also followed the manual steps:
Settings â Add-ons â Esphome â configuration tab â Toggle on:
âShow unused optional configuration optionsâ and then put 1 in
âdefault_compile_process_limitâ
It still fails on my Pi3:
xtensa-lx106-elf-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
*** [/data/temp-sensor/.pioenvs/temp-sensor/src/esphome/components/web_server_base/web_server_base.cpp.o] Error 1
========================= [FAILED] Took 77.53 seconds =========================
Iâm going to try and kill processes to free up memory but just know that the new flag doesnât work for everyone.
I have the same problem on RPi3 so I manually stopped addons like Editor, Terminal, everything I donât currently need and then the compilation ran fine.