-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node-RED loses connection with GPIOD after two “deploys” (frequent docker restart necessary) :( #166
Comments
This issue remains, and more testing confirms that Node-RED loses connection to GPIOD after the second "Deploy". Frustrating issue these days where I create a lot of new flows and therefore have to restart the container several times a day. |
Amy news on this issue? Still a PITA having to restart Node-RED container everytime I make a few changes in Node-RED. |
Hello, is it possible to enable the trace mode of the node-red logging and see what happening in the logs ? |
Try this (my example uses
Find this chunk of text:
Change
The restart causes NodeRed to pay attention to the settings.js change. The logs command is like a Control-C to abort and I'm sure you can work out how to undo the change. |
Thanks for your suggestions 🙏🏻 Will try them out as soon as possible. Probably in the weekend. |
I tried the above and now have a huge logfile. What should I look for and what should I post here for you to be able to help debugging? As mentioned, everything works right after a |
how huge is the file ? |
It's a 93 MB pure text file, but I am worried that it contains confinendial information (searching for "PSK" returned more than 16,000 hits). What am I looking for? perhaps I can cut out the relevant sections? |
As it I will say any error message. |
I am not investigating this issue and it's not a best-way-solution, but you might want consider a second NR container which does the GPIO interaction and another (probably your existing container) which does the rest of all your flows.
Using the concept of "Separation of concerns" and to avoid the connection loss after each "Deployment" of your flows. |
Thanks for sharing this idea for a workaround. 👍🏻Hadn’t thought of that. I still would like this issue solved, but not sure how to get the relevant data from the log file. |
Is this being fixed at any point soon? Really frustrating when node just does not work as it should after a deploy. |
by whom ? More than happy to accept help any assistance from someone who can re-create the problem and help identify the actual issue. |
A workaround in some cases is to only deploy the changed nodes and not the whole flow or all flows. Now that I’m working on other flows this really saves me from a lot of frustration. |
In the underlying library `node_modules/js-pigpio/index.js' I see the close method
maybe try changing that to |
Just came across the thread. Thanks for the idea; I tried it but it did not solve the issue. cheers. |
Hi, is there any progress on this issues? |
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).
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).
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.
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+.
host os: latest Raspian Buster
The text was updated successfully, but these errors were encountered: