Hi everybody,
so I didn’t update HA for quite a while. Now I did and everything is blown apart.
Beside some other annoying problems with custom components that aren’t loaded any more and stuff like that the most important one is to get Node-RED up again.
I always get 502 Bad Gateway and in the logs I note that it keeps restarting all the time:
[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...
Any suggestions?