-
Notifications
You must be signed in to change notification settings - Fork 2
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
listen node Problem #3
Comments
Hi, If I've understood it correctly:
Is that correct? The first step in debugging this is to confirm that the events are getting sent to where you expect them:
|
Hi, Quick addendum - if you are running NodeRED in a Docker container, have you forwarded UDP port 60002?
You may also need to set your config listen address to:
which is the simplest way of making sure the container's listen node is bound to the internal container network address. |
Nodered runs in host network mode, but I tried adding the ports: I changed the listen address to: Tcpdump: outside docker on the host machine: Inside the docker container: For me the traces look ok still, the "listen" node doesnt output anything. :( |
Hmm ... there may be a problem with NodeRED receiving UDP multicast packets with Docker in host networking mode (Ref. https://groups.google.com/g/node-red/c/g5ZSzr7iNI8) but I'm going to have to dig into it to figure if that's actually the case. Unfortunately host networking mode doesn't work on a Mac and I don't have a RaspberryPi to hand so it's going to take a little time to get set up. Some things to try while I do that:
Can you also please post your Dockerfile and the command you use to run it? |
Ok I simplified my setup, to remove any error regarding docker.
I honestly don't know whats wrong. |
Have to admit I'm fairly baffled as well - there are definitely networking complexities around docker, IPv4/IPv6 and the more recent Linux releases and I'm still digging into those. But .. I was able to get node-red receiving events from my local development controller on a remote (vultr) Ubuntu 20.10 VPS without doing anything at all special. These were the steps I followed:
On my development system:
The swipe event appears in the debug pane of the node-red page. You could try this just to establish a baseline working system as starting point for further debugging - or if you can let me have your public IP address am happy to temporarily set up a system that you can access. One other thing:
Some more things to try:
|
Hi, Having experimented some more with a Ubuntu 20.10 VPS I'm able to receive events using NodeRED in a docker container in both host networking mode and normal networking mode without doing anything special. The only setting that seemed critical was the listen address in the the config node, which must be set to The command lines used to start NodeRED in a docker container were:
|
BTW - if you're expecting to receive door relay and push button events, then please be aware of uhppote-core/Issue #2: Door open or closed event not generated. The CLI has an update that allows you to enable door and push button event recording. |
Hi, I'm going to close this issue - NodeRED flows on Ubuntu (both in and outside of Docker containers) were able to receive events without a problem in all configurations I tried. The only critical points to note were:
Please feel free to reopen if/when you have any more information to add. |
I'll try 0.6.7 again. Thanks alot for your help and your great work! :) |
Hmm, I don't think 0.6.7 will make any difference - it only really adds the I'm really puzzled because this 'just works' for me - can you maybe upload some Wireshark captures? Maybe I can figure out something from the actual messages.. |
I traced it on my mac not in docker. Mac ip: 192.168.1.142 I opened the web interface on my mac and opened the door --> thats the tcp, http pakets Trace: |
Thanks! That made it easy - the message bytes are:
Normally messages start with a
Which I had forgotten about and missed when doing the port to NodeRED :-(. Apologies .. I should have a fix out in the next day or so. Out of curiosity - what version is the firmware on your controller? |
Oh that is great 😊 thank you! I don't see a "firmware version" but a "driver version" in the web interface, that is: V6.62.51215 |
Yup, v6.62 was the firmware version of the controller that patch was made for - suspect it was something that got overlooked when they were updating the protocol because it was fixed in later versions. I'll make a note of it in the README. |
Hi, I've pushed an update to the I'm going to hold off on releasing it for a couple of days though, in the hope that NodeRED will release a patch for CVE-2020-28168 in one of their dependencies. If you want to try out the fix, please use the version in the |
Sure just take your time, I'll wait for the deployment. |
Hi, I've released v0.6.8 with the fix for the listen events and published it to NPM and NodeRED. Can you give it a try and see if you now receive events? |
@uhppoted |
Oh, that's great! Thanks for trying it out .. and thanks for your patience while we got to the bottom of the problem! Am very glad you're finding the node red integration straightforward - I feel like it just opens up a world of possibilities :-). |
I can't get the "listen" node to work, it doesn't receive any events.
This mqtt setup works:
I've a working mqtt Env:
UT0311-L0x.223195309.address = 192.168.1.123:60000
UT0311-L0x.223195309.door.1 = Front Door
UT0311-L0x.223195309.door.2 = Side Door
the listener is set to 192.168.1.131:60001
When I open the door, I get an event.
Node red setup:
it runs on the same "machine"/docker.
the listener is set to 192.168.1.131:60002
I choose another port, so that there is no port collision. I also tried it with 60001.
When I open the door, I dont receive an event via the listen node.
I looked at your example. All the other "api" node like get-listener, set-listener work, get-status...
i.e i did set the listener via node.
my door config:
Do a have an error in the config?
I dont get an "error" trace in the debug console, like "cannot bind adress". The listen node also doesnt show an "red error" below the node.
Can I provide some debug output somehow (the controller config is set to debug)?
thxs alot for your help!!!
The text was updated successfully, but these errors were encountered: