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

Compiling 2 or more nodes at the same time. #5785

Open
WNTLtd opened this issue May 13, 2024 · 5 comments
Open

Compiling 2 or more nodes at the same time. #5785

WNTLtd opened this issue May 13, 2024 · 5 comments

Comments

@WNTLtd
Copy link

WNTLtd commented May 13, 2024

The problem

OK - So this isn't so much as an issue - because I wouldn't have thought that most people would actually do what I just did - BUT - I thought I'd flag it up anyway maybe (if not already) it goes in the docs somewhere.

I had the HASS app open on my Mac - and I updated the yaml on a couple of ESPHome nodes.
I also had the same page open as a web gui in Chrome.
While the app was doing a compile for one node - I thought - I wonder if it can do two at the same time?
So I instigated a second compile of the other node I updated, from within chrome (all based on the same HASS instance)

Suffice to say - about 10 secs in, it all stopped - I lost comms with HASS, and HASS rebooted.

Everything came back up as normalI and I could run the compiles again one at a time.

So I guess the general rule of thumb - don't try and run two or more compiles for your ESPHome devices AT THE SAME TIME!! LOL.

Which version of ESPHome has the issue?

2.4.5.0b3

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

24.5.3

What platform are you using?

ESP32

Board

nodemcu

Component causing the issue

n/a

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@ssieb
Copy link
Member

ssieb commented May 13, 2024

What are you running HA on? You're most likely running out of memory, although that still shouldn't cause it to reboot. But unless you have a lot of RAM, you shouldn't do two compiles at once.

@WNTLtd
Copy link
Author

WNTLtd commented May 13, 2024

Running on an Odroid HA Blue.
4Gb ram.
So I didn't/don't know if the reboot was because ESPHome just wasn't built to be able to do two or more compiles at the same time - or if HASS was running out of hardware resources?

Perhaps Jesse could chip in here...?
Is it theoretically possible to do more than one compile at the same time?

@ssieb
Copy link
Member

ssieb commented May 13, 2024

It's theoretically possible, but 4GB might not be enough RAM.

@WNTLtd
Copy link
Author

WNTLtd commented May 13, 2024

Fair enough. 👍

@Rudd-O
Copy link

Rudd-O commented May 14, 2024

Is it theoretically possible to do more than one compile at the same time?

I compile 3 or 4 at a time, running on a Xen VM with 4 GB RAM, doesn't even break a sweat.

Your hardware is bad, it is overheating, or your PSU is too weak for the jerb.

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