Node-RED restart loop #584
HorizonKane posted onGitHub
Problem/Motivation
After upgrading HomeAssistant on hassio to 0.110.5, HassOS to 4.9 and Node-RED to 6.3.0, Node-RED keeps restarting all the time, throwing the following into the log:
[10:51:33] INFO: Starting Node-RED... addon-node-red@ start /opt node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js" 6 Jun 10:51:36 - [info] Welcome to Node-RED =================== 6 Jun 10:51:36 - [info] Node-RED version: v1.0.6 6 Jun 10:51:36 - [info] Node.js version: v12.15.0 6 Jun 10:51:36 - [info] Linux 5.4.42-v7l arm LE 6 Jun 10:51:37 - [info] Loading palette nodes 6 Jun 10:51:41 - [info] Dashboard version 2.22.1 started at /endpoint/ui Traceback (most recent call last): File "/opt/node_modules/node-red-node-pi-gpio/testgpio.py", line 4, in <module> import RPi.GPIO as GPIO File "/usr/lib/python2.7/site-packages/RPi/GPIO/init.py", line 23, in <module> from RPi._GPIO import * RuntimeError: This module can only be run on a Raspberry Pi! 6 Jun 10:51:42 - [warn] rpi-gpio : Raspberry Pi specific node set inactive 6 Jun 10:51:42 - [info] Settings file : /etc/node-red/config.js 6 Jun 10:51:42 - [info] Context store : 'default' [module=memory] 6 Jun 10:51:42 - [info] User directory : /config/node-red/ 6 Jun 10:51:42 - [warn] Projects disabled : editorTheme.projects.enabled=false 6 Jun 10:51:42 - [info] Flows file : /config/node-red/flows.json 6 Jun 10:51:42 - [info] Server now running at http://127.0.0.1:46836/ 6 Jun 10:51:42 - [info] Starting flows 6 Jun 10:51:43 - [info] Started flows 6 Jun 10:51:43 - [red] Uncaught Exception: 6 Jun 10:51:43 - Api Error: Unexpected response status; 404 at requireStatusCode200 (/config/node-red/node_modules/node-hue-api/hue-api/httpPromise.js:100:15) at _fulfilled (/config/node-red/node_modules/q/q.js:787:54) at /config/node-red/node_modules/q/q.js:816:30 at Promise.promise.promiseDispatch (/config/node-red/node_modules/q/q.js:749:13) at /config/node-red/node_modules/q/q.js:557:44 at flush (/config/node-red/node_modules/q/q.js:108:17) at processTicksAndRejections (internal/process/task_queues.js:76:11) 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-06-06T08_51_43_992Z-debug.log [10:51:44] INFO: Starting Node-RED...
Expected behavior
Node-RED actually starting.
Actual behavior
Keeps restarting.
Steps to reproduce
I updated to the most current version. Regarding to the log, the installed hue api might be the problem.
Proposed changes
I would like to know if there is a way to remove the hue-api and then see if it works again. However, I can't find the correct folders on my HassOS shell. I already reinstalled Node-RED with no success.