Node-red fonctionne quelques heures puis s’arrête du moins un flow fonctionne puis s’arrête.
Lorsque je veux accéder à node-red cela m’affiche « 502 Bad Gateway nginx »
Je suis débutant et j’ai besoin d’aide.
merci pour votre aide
Ma configuration
[center]## System Health
version
core-2021.12.3
installation_type
Home Assistant OS
dev
false
hassio
true
docker
true
user
root
virtualenv
false
python_version
3.9.7
os_name
Linux
os_version
5.10.63-v8
arch
aarch64
timezone
Europe/Paris
Home Assistant Community Store
GitHub API
ok
Github API Calls Remaining
4900
Installed Version
1.13.2
Stage
running
Available Repositories
985
Installed Repositories
2
AccuWeather
can_reach_server
ok
remaining_requests
7
Home Assistant Cloud
logged_in
false
can_reach_cert_server
ok
can_reach_cloud_auth
ok
can_reach_cloud
ok
Home Assistant Supervisor
host_os
Home Assistant OS 7.0
update_channel
stable
supervisor_version
supervisor-2021.12.2
docker_version
20.10.9
disk_total
109.3 GB
disk_used
11.8 GB
healthy
true
supported
true
board
rpi3-64
supervisor_api
ok
version_api
ok
installed_addons
Check Home Assistant configuration (3.9.0), File editor (5.3.3), Duck DNS (1.14.0), VLC (0.1.3), InfluxDB (4.3.0), SSH & Web Terminal (10.0.0), Let’s Encrypt (4.12.0), Samba share (9.5.1), Plex Media Server (2.7.0), Z-Wave JS (0.1.50), Node-RED (10.2.0)
Lovelace
dashboards
1
resources
0
views
3
mode
storage
[/center]
Comment récupérer ma configuration :
Dans votre HA, Menu latéral `Configuration` > `Info` > bouton copier > `Pour Github`

___
ce matin une nouvelle mise à jour était disponible, je l’ai donc éxécuté.
Redémarrage HA et toujours le même message.
Info complémentaire, je suis un débutant sur HA.
je te copie ci-dessous le journal suite à ce démarrage.
Flow-based programming for the Internet of Things
-----------------------------------------------------------
Add-on version: 10.2.1
You are running the latest version of this add-on.
System: Home Assistant OS 7.0 (aarch64 / raspberrypi3-64)
Home Assistant Core: 2021.12.3
Home Assistant Supervisor: 2021.12.2
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] customizations.sh: executing...
[cont-init.d] customizations.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] node-red.sh: executing...
patching file nodes/ui_base.html
Hunk #1 succeeded at 1162 (offset 631 lines).
up to date, audited 9 packages in 6s
found 0 vulnerabilities
[cont-init.d] node-red.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[07:36:31] INFO: Starting Node-RED...
> start
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
20 Dec 07:36:42 - [info]
Welcome to Node-RED
===================
20 Dec 07:36:42 - [info] Node-RED version: v2.1.4
20 Dec 07:36:42 - [info] Node.js version: v16.13.1
20 Dec 07:36:42 - [info] Linux 5.10.63-v8 arm64 LE
20 Dec 07:36:46 - [info] Loading palette nodes
20 Dec 07:37:04 - [info] Dashboard version 3.1.2 started at /endpoint/ui
20 Dec 07:37:08 - [info] Settings file : /etc/node-red/config.js
20 Dec 07:37:08 - [info] Context store : 'default' [module=localfilesystem]
20 Dec 07:37:08 - [info] Context store : 'memoryOnly' [module=memory]
20 Dec 07:37:08 - [info] User directory : /config/node-red/
20 Dec 07:37:08 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
20 Dec 07:37:08 - [info] Flows file : /config/node-red/flows.json
20 Dec 07:37:09 - [info] Server now running at http://127.0.0.1:46836/
20 Dec 07:37:09 - [info] Starting flows
[07:37:09] INFO: Starting NGinx...
20 Dec 07:37:10 - [info] [cronplus:296ad0f514ca936d] createTask - index: 0, static: true, opt: {"name":"schedule1","topic":"schedule1","payloadType":"default","payload":"","expressionType":"cron","expression":"0 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}
20 Dec 07:37:10 - [info] [cronplus:6e3204753d4e682c] createTask - index: 0, static: true, opt: {"name":"schedule1","topic":"schedule1","payloadType":"default","payload":"","expressionType":"cron","expression":"0 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}
20 Dec 07:37:10 - [info] Started flows
20 Dec 07:37:10 - [info] [server:InfDb_RC] Connecting to undefined
20 Dec 07:37:10 - [info] [serialconfig:541e7166.407bd8] serial port /dev/ttyUSB0 opened at 1200 baud 7E1
'PHC' 'Y' 'D' => Bad Checksum '4'
20 Dec 07:37:11 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:11 - [error] [ha-entity:edfdb_BWR] Sensor update attempted without connection to server.
20 Dec 07:37:11 - [error] [ha-entity:index_HP] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_HCJB] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_HPJB] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_HCJW] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_HPJW] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_HCJR] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_HPJR] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_demain] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_BWR] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:index_HP] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_PUKWH] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_hier] Sensor update attempted without connection to server.
20 Dec 07:37:13 - [error] [ha-entity:edfdb_TODAY] Sensor update attempted without connection to server.
20 Dec 07:37:16 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:18 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:21 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:21 - [error] [ha-entity:edfdb_HPJR] Sensor update attempted without connection to server.
20 Dec 07:37:21 - [error] [ha-entity:edfdb_BWR] Sensor update attempted without connection to server.
20 Dec 07:37:21 - [error] [ha-entity:index_HP] Sensor update attempted without connection to server.
20 Dec 07:37:24 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:26 - [info] [server:InfDb_RC] Connecting to undefined
20 Dec 07:37:26 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:29 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:29 - [error] [ha-entity:edfdb_HPJR] Sensor update attempted without connection to server.
20 Dec 07:37:29 - [error] [ha-entity:edfdb_BWR] Sensor update attempted without connection to server.
20 Dec 07:37:29 - [error] [ha-entity:index_HP] Sensor update attempted without connection to server.
20 Dec 07:37:31 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:33 - [info] [server:InfDb_RC] Connecting to undefined
20 Dec 07:37:34 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:37 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
20 Dec 07:37:38 - [info] [server:InfDb_RC] Connecting to undefined
20 Dec 07:37:39 - [info] [server:InfDb_RC] Connected to undefined
20 Dec 07:37:39 - [error] [ha-entity:edfdb_iinst] Node-RED custom integration needs to be installed in Home Assistant for this node to function correctly.
20 Dec 07:37:39 - [error] [ha-entity:edfdb_HPJR] Node-RED custom integration needs to be installed in Home Assistant for this node to function correctly.
20 Dec 07:37:39 - [error] [ha-entity:edfdb_BWR] Node-RED custom integration needs to be installed in Home Assistant for this node to function correctly.
20 Dec 07:37:39 - [error] [ha-entity:index_HP] Node-RED custom integration needs to be installed in Home Assistant for this node to function correctly.
20 Dec 07:37:40 - [error] [ha-entity:edfdb_BWR] Error registering entity. Error Message: expected bool for dictionary value @ data['state']. Got None
20 Dec 07:37:40 - [error] [ha-entity:index_HP] Error registering entity. Error Message: expected bool for dictionary value @ data['state']. Got None
le lien entre HA et NR ne marche pas. Il faudra reprendre la doc d’installation de l’add-on. Il doit manquer quelque chose.
en plus de l’addon, le flot que tu utilises (je ne sais pas d’ou il vient) a besoin de la custom integration. Donc, dans les intégrations de HA, chercher celle de nodered (c’est bien en plus de l’addon) et installe-la.
Et autre chose me surprend:
Comme je n’ai pas exactement la même configuration, c’est peut-être normal.
Déjà, corriger la connection et installer l’intégration. Après, on verra ce qu’il se passe.
bonjour et merci pour ton aide.
hier soir, sans autre modification que de rallumer mon PC, disparition de l’erreur GATEWAY.
Du coup je recupere mon accès NODE-RED, je change DB INFLUX_DB et je relance le tout.
Tout à fonctionné sans retour de l’erreur GATEWAYet si je comprends bien le log, il y a eut un décrochage ce matin à 5h11.
Je te mets le log complet ci-dessous:
Concernant l’intégration, elle est installé puisque cela fonctionne (temporairement sur plusieurs heures).
pour info complémentaire, ce flow NODE-RED récupère mes index du compteur EDF pour créer un sensor que je reprend dans le module ENERGY. Je suis en TEMPO j’ai 6 index à lire et additionner.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Add-on: Node-RED
Flow-based programming for the Internet of Things
-----------------------------------------------------------
Add-on version: 10.2.1
You are running the latest version of this add-on.
System: Home Assistant OS 7.0 (aarch64 / raspberrypi3-64)
Home Assistant Core: 2021.12.3
Home Assistant Supervisor: 2021.12.2
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] customizations.sh: executing...
[cont-init.d] customizations.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] node-red.sh: executing...
patching file nodes/ui_base.html
Hunk #1 succeeded at 1162 (offset 631 lines).
up to date, audited 9 packages in 4s
found 0 vulnerabilities
[cont-init.d] node-red.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:48:44] INFO: Starting Node-RED...
> start
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
20 Dec 22:48:53 - [info]
Welcome to Node-RED
===================
20 Dec 22:48:53 - [info] Node-RED version: v2.1.4
20 Dec 22:48:53 - [info] Node.js version: v16.13.1
20 Dec 22:48:53 - [info] Linux 5.10.63-v8 arm64 LE
20 Dec 22:48:57 - [info] Loading palette nodes
20 Dec 22:49:13 - [info] Dashboard version 3.1.2 started at /endpoint/ui
20 Dec 22:49:17 - [info] Settings file : /etc/node-red/config.js
20 Dec 22:49:17 - [info] Context store : 'default' [module=localfilesystem]
20 Dec 22:49:17 - [info] Context store : 'memoryOnly' [module=memory]
20 Dec 22:49:17 - [info] User directory : /config/node-red/
20 Dec 22:49:17 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
20 Dec 22:49:17 - [info] Flows file : /config/node-red/flows.json
20 Dec 22:49:17 - [info] Server now running at http://127.0.0.1:46836/
[22:49:17] INFO: Starting NGinx...
20 Dec 22:49:18 - [info] Starting flows
20 Dec 22:49:19 - [info] [cronplus:296ad0f514ca936d] createTask - index: 0, static: true, opt: {"name":"schedule1","topic":"schedule1","payloadType":"default","payload":"","expressionType":"cron","expression":"0 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}
20 Dec 22:49:19 - [info] Started flows
20 Dec 22:49:20 - [info] [server:EDF_DB] Connecting to undefined
20 Dec 22:49:20 - [info] [serialconfig:541e7166.407bd8] serial port /dev/ttyUSB0 opened at 1200 baud 7E1
20 Dec 22:49:20 - [error] [function:Valide la trame] TypeError: Cannot read properties of undefined (reading 'length')
20 Dec 22:49:20 - [info] [server:EDF_DB] Connected to undefined
20 Dec 22:54:07 - [info] Stopping modified flows
20 Dec 22:54:07 - [info] Stopped modified flows
20 Dec 22:54:07 - [info] Starting modified flows
20 Dec 22:54:07 - [info] Started modified flows
21 Dec 05:11:24 - [info] [server:EDF_DB] Connection closed to undefined
21 Dec 05:11:25 - [error] [ha-entity:edfdb_iinst] Entity API error.
21 Dec 05:11:25 - [error] [ha-entity:edfdb_iinst] Entity API error.
21 Dec 05:11:25 - [error] [ha-entity:edfdb_HCJR] Entity API error.
21 Dec 05:11:25 - [error] [ha-entity:edfdb_iinst] Entity API error.
21 Dec 05:11:25 - [error] [ha-entity:edfdb_BWR] Entity API error.
21 Dec 05:11:25 - [error] [ha-entity:index_HP] Entity API error.
21 Dec 05:11:25 - [error] [ha-entity:edfdb_HCJR] Entity API error.
21 Dec 05:11:25 - [error] [ha-entity:edfdb_iinst] Entity API error.
21 Dec 05:11:25 - [error] [ha-entity:edfdb_BWR] Sensor update attempted without connection to server.
21 Dec 05:11:25 - [error] [ha-entity:index_HP] Sensor update attempted without connection to server.
21 Dec 05:11:25 - [error] [ha-entity:edfdb_HCJR] Sensor update attempted without connection to server.
21 Dec 05:11:25 - [error] [ha-entity:edfdb_BWR] Sensor update attempted without connection to server.
21 Dec 05:11:25 - [error] [ha-entity:index_HP] Sensor update attempted without connection to server.
21 Dec 05:11:25 - [info] [server:EDF_DB] Connecting to undefined
21 Dec 05:11:36 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
21 Dec 05:11:36 - [error] [ha-entity:edfdb_HCJR] Sensor update attempted without connection to server.
21 Dec 05:11:36 - [error] [ha-entity:edfdb_BWR] Sensor update attempted without connection to server.
21 Dec 05:11:36 - [error] [ha-entity:index_HP] Sensor update attempted without connection to server.
21 Dec 05:11:47 - [error] [ha-entity:edfdb_iinst] Sensor update attempted without connection to server.
21 Dec 05:11:47 - [error] [ha-entity:edfdb_HCJR] Sensor update attempted without connection to server.
21 Dec 05:11:47 - [error] [ha-entity:edfdb_BWR] Sensor update attempted without connection to server.
21 Dec 05:11:47 - [error] [ha-entity:index_HP] Sensor update attempted without connection to server.
21 Dec 05:11:48 - [info] [server:EDF_DB] Connected to undefined
21 Dec 05:11:57 - [error] [influxdb out:IINST] Error: read ECONNRESET
21 Dec 05:12:08 - [error] [influxdb out:IINST] Error: read ECONNRESET
21 Dec 05:12:18 - [error] [influxdb out:IINST] Error: read ECONNRESET
21 Dec 05:12:29 - [error] [influxdb out:IINST] Error: socket hang up