hassio-addons/addon-node-red

Startup keeps failing, reinstalling Node-red on Hass.io doesn't seem to work #664

natbrood posted onGitHub

Problem/Motivation

Yesterday I tried some new node out, node-red-contrib-python-function. After adding it to my flow and adding adding some code to the thing it crashed and has not been able to start up ever since

Expected behavior

Starts like normal

Actual behavior

It won't start, gives an 502 error message. The log gives the following information:

[13:51:42] INFO: Starting Node-RED...
> addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
22 Aug 13:51:50 - [info] 
Welcome to Node-RED
===================
22 Aug 13:51:50 - [info] Node-RED version: v1.1.3
22 Aug 13:51:50 - [info] Node.js  version: v12.18.3
22 Aug 13:51:50 - [info] Linux 4.19.127-v8 arm64 LE
22 Aug 13:51:51 - [info] Loading palette nodes
22 Aug 13:51:58 - [info] Dashboard version 2.23.2 started at /endpoint/ui
/bin/sh: /opt/node_modules/node-red-node-pi-gpio/testgpio.py: not found
22 Aug 13:51:59 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
22 Aug 13:51:59 - [info] Settings file  : /etc/node-red/config.js
22 Aug 13:51:59 - [info] Context store  : 'default' [module=memory]
22 Aug 13:51:59 - [info] User directory : /config/node-red/
22 Aug 13:51:59 - [warn] Projects disabled : editorTheme.projects.enabled=false
22 Aug 13:51:59 - [info] Flows file     : /config/node-red/flows.json
22 Aug 13:51:59 - [info] Server now running at http://127.0.0.1:46836/
22 Aug 13:52:00 - [info] Starting flows
22 Aug 13:52:00 - [info] [python-function:e88740ec.be5bf] Python function '' running on PID undefined
22 Aug 13:52:00 - [info] Started flows
22 Aug 13:52:00 - [red] Uncaught Exception:
22 Aug 13:52:00 - Error: spawn python ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! addon-node-red@ start: `node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the addon-node-red@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-08-22T11_52_00_419Z-debug.log

Steps to reproduce

Add the node to node-red.

Proposed changes

I would like to get it to work again. I'm okay with wiping the flows, but I don't know how. Uninstalling and reinstalling doesn't see to work.


The addon stores its configuration in the config/node-red folder.

You can remove this (via SMB/SSH) and restart the addon to get a fresh install.

You should also be able to edit the flows.json file there to remove the offending flow.

posted by sinclairpaul over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests