Hi
I updated node red from version (i belive 10.xxx) to newest and i have strange problem. when i try to deploy anything it shows error 502 bad gateway. BUT… when I click several times deploy, deploy,deploy it finaly deploys with information “succesfuly deployed”.
when i created simple program with inject node and call service node i have thesame problem. it works when he wants and moustly it does not work with error
“Call-Service attempted without connection to server.”
and also when i click node inject several times it finaly turn the light on.
I am sure it is due to update. everythig before update worked perfect.
is there a way to downgrade?
nodered is installed as addon. i have homeassistant as vistual mashine on unraid server.
logs from nodered below.
Welcome to Node-RED
===================
8 May 01:30:21 - [info] Node-RED version: v2.2.2
8 May 01:30:21 - [info] Node.js version: v16.14.2
8 May 01:30:21 - [info] Linux 5.10.108 x64 LE
8 May 01:30:22 - [info] Loading palette nodes
8 May 01:30:23 - [info] Dashboard version 3.1.6 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!
8 May 01:30:23 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
8 May 01:30:23 - [info] Settings file : /etc/node-red/config.js
8 May 01:30:23 - [info] Context store : 'memoryOnly' [module=memory]
8 May 01:30:23 - [info] Context store : 'default' [module=localfilesystem]
8 May 01:30:23 - [info] User directory : /config/node-red/
8 May 01:30:23 - [warn] Projects disabled : editorTheme.projects.enabled=false
8 May 01:30:23 - [info] Flows file : /config/node-red/flows.json
8 May 01:30:23 - [info] Server now running at http://127.0.0.1:46836/
8 May 01:30:23 - [info] Starting flows
8 May 01:30:23 - [info] Started flows
8 May 01:30:28 - [info] [server:Home Assistant] Connecting to http://supervisor/core
8 May 01:30:28 - [info] [server:Home Assistant] Connected to http://supervisor/core
8 May 01:30:33 - [red] Uncaught Exception:
8 May 01:30:33 - [error] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "No device".
[01:30:33] INFO: Starting Node-RED...