Hi,
I keep getting a connection closed error. My logs looks like this:
[13:55:35] INFO: Starting Node-RED...
> start
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
3 Feb 13:55:37 - [info]
Welcome to Node-RED
===================
3 Feb 13:55:37 - [info] Node-RED version: v2.2.0
3 Feb 13:55:37 - [info] Node.js version: v16.13.2
3 Feb 13:55:37 - [info] Linux 5.4.0-97-generic x64 LE
3 Feb 13:55:38 - [info] Loading palette nodes
3 Feb 13:55:41 - [info] Dashboard version 3.1.5 started at /endpoint/ui
Traceback (most recent call last):
File "/opt/node_modules/node-red-node-pi-gpio/testgpio.py", line 3, in <module>
import RPi.GPIO as GPIO
File "/usr/lib/python3.9/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!
3 Feb 13:55:41 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
3 Feb 13:55:41 - [info] Settings file : /etc/node-red/config.js
3 Feb 13:55:41 - [info] Context store : 'default' [module=memory]
3 Feb 13:55:41 - [info] User directory : /config/node-red/
3 Feb 13:55:41 - [warn] Projects disabled : editorTheme.projects.enabled=false
3 Feb 13:55:41 - [info] Flows file : /config/node-red/flows.json
3 Feb 13:55:41 - [info] Server now running at http://127.0.0.1:46836/
3 Feb 13:55:41 - [info] Starting flows
[13:55:41] INFO: Starting NGinx...
3 Feb 13:55:46 - [info] [server:Home Assistant] Connecting to http://supervisor/core
3 Feb 13:55:46 - [info] [server:Home Assistant] Connected to http://supervisor/core
3 Feb 13:55:47 - [info] [server:Home Assistant] Connection closed to http://supervisor/core
3 Feb 13:55:52 - [info] [server:Home Assistant] Connecting to http://supervisor/core
3 Feb 13:55:52 - [info] [server:Home Assistant] Connected to http://supervisor/core
3 Feb 13:55:52 - [info] [server:Home Assistant] Connection closed to http://supervisor/core
3 Feb 13:55:57 - [info] [server:Home Assistant] Connecting to http://supervisor/core
3 Feb 13:55:57 - [info] [server:Home Assistant] Connected to http://supervisor/core
3 Feb 13:55:57 - [info] [server:Home Assistant] Connection closed to http://supervisor/core
3 Feb 13:56:02 - [info] [server:Home Assistant] Connecting to http://supervisor/core
3 Feb 13:56:02 - [info] [server:Home Assistant] Connected to http://supervisor/core
3 Feb 13:56:03 - [info] [server:Home Assistant] Connection closed to http://supervisor/core
3 Feb 13:56:08 - [info] [server:Home Assistant] Connecting to http://supervisor/core
3 Feb 13:56:08 - [info] [server:Home Assistant] Connected to http://supervisor/core
3 Feb 13:56:08 - [info] [server:Home Assistant] Connection closed to http://supervisor/core
3 Feb 13:56:13 - [info] [server:Home Assistant] Connecting to http://supervisor/core
3 Feb 13:56:13 - [info] [server:Home Assistant] Connected to http://supervisor/core
3 Feb 13:56:13 - [info] [server:Home Assistant] Connection closed to http://supervisor/core
3 Feb 13:56:18 - [info] [server:Home Assistant] Connecting to http://supervisor/core
3 Feb 13:56:18 - [info] [server:Home Assistant] Connected to http://supervisor/core
3 Feb 13:56:19 - [info] [server:Home Assistant] Connection closed to http://supervisor/core
I tried restoring from a backup, tried reinstalling node red, but nothing works. Any help is greatly appreciated.