hassio-addons/addon-node-red

JavaScript heap out of memory #492

mikesac posted onGitHub

Problem/Motivation

Nodered addon is crashing at boot with error

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Installation was working fine and error started after some image parsing flow, so I suspect I should increase max_old_space_size parameter, but since the addon is running into a docker container on a Raspberry Pi 4 I'd like to konw the proper way to add it in a permanent way.

As a workaround is there a way to dump and then delete my flow to let nodered restart with mint configuration ?

Last question: I'm running HA/Nodered on Raspian, which ships with nodered as well. Is there a way to use the addon with standalone nodered and avoid additional docker container ?

Add-on version: 6.1.0 There is an update available for this add-on! Latest add-on version: 6.1.3 Please consider upgrading as soon as possible. System: Raspbian GNU/Linux 10 (buster) (armv7 / raspberrypi4) Home Assistant Core: 0.105.5 Home Assistant Supervisor: 207


:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

posted by addons-assistant[bot] about 5 years ago

so I suspect I should increase max_old_space_size parameter, but since the addon is running into a docker container on a Raspberry Pi 4 I'd like to konw the proper way to add it in a permanent way

You can't, and I would doubt this is the root cause, I would investigate the Nodes you use

As a workaround is there a way to dump and then delete my flow to let nodered restart with mint configuration ?

All your config is in the config/node-red folder, including the flows.json. You should be able to stop the addon, remove the folder, then restart.

Last question: I'm running HA/Nodered on Raspian, which ships with nodered as well. Is there a way to use the addon with standalone nodered and avoid additional docker container ?

Not sure what you mean, by this, if the question is can I use Node-Red outside of the Add on with the HA nodes, then yes absolutely. Obviously you would need to configure this all yourself.

posted by sinclairpaul about 5 years ago

thanks @sinclairpaul , the config/node-red/flows.json folder was exactly what I was looking for. I renamed flows.json and gain back a working NodeRed process :)

Not sure what you mean, by this, if the question is can I use Node-Red outside of the Add on with the HA nodes, then yes absolutely. Obviously you would need to configure this all yourself. Yes, that was exactly my point! Do you know if and guide is available to perform such configuration?

posted by mikesac about 5 years ago

Documentation for those nodes is at https://zachowj.github.io/node-red-contrib-home-assistant-websocket/

<blockquote><div><strong><a href="https://zachowj.github.io/node-red-contrib-home-assistant-websocket/">node-red-contrib-home-assistant-websocket</a></strong></div><div>Node-RED integration with Home Assistant through the WebSocket and HTTP API</div></blockquote>

posted by sinclairpaul about 5 years ago

Fund this Issue

$0.00
Funded

Pull requests