node-red / node-red/node-red-docker

Node-RED loses connection with GPIOD after two “deploys” (frequent docker restart necessary) :(

Aperta
#166 17 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Shell
Stelle
540
Fork
434
Merge medio
24m
PR unite (30g)
5

Descrizione

What are the steps to reproduce?

Run node-red in the official docker container.

Verify that the gpiod nodes have connection to the gpiod (daemon). Skærmbillede 2020-02-09 kl  23 14 03
Check that gpio input node actually works (e.g. use a simple switch to connect pin 5 to ground and see "OK" changing to 1 or 0).

Skærmbillede 2020-02-10 kl  20 30 32

Move some nodes and click “Deploy”. Do it again.

Check that gpio input node still works (in my setup it stoppes working). The gpiod node still states "OK" which indicates the gpio daemon is running. Running ps aux confirms this.
Skærmbillede 2020-02-10 kl  19 00 17

HOWEVER -connecting a pin to ground no longer makes the node change state.

restart the docker container - now it works again, but only until you click deploy 2 times again. Then a docker restart is needed again :(

Please tell us about your environment:

Hardware: Raspberry Pi 3B+.

  • Node-RED version: 1.0.3
  • Node.js version: latest?
  • npm version: latest?
  • Platform/OS: latest docker image.
    host os: latest Raspian Buster
  • Browser: google chrome (not a browser issue).
  • pigiod is latest version:
    Skærmbillede 2020-02-09 kl  23 38 54

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci il malfunzionamento nel container Docker ufficiale su un Raspberry Pi con gpiod, seguendo la sequenza di due deploy descritta nel report. Analizza il comportamento della connessione Node-RED/gpiod dopo il redeploy; l’attività è completata quando l’input GPIO continua a cambiare stato senza riavviare il container.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, raspberry-pi
Ambito
devops, embedded-iot
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.