# i am getting the following message whenever i try to open my node-red inside my raspberry pi

**URL:** <https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412>\
**Category:** General\
**Created:** [5 November 2020 22:30 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412 "2020-11-05T22:30:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumyamitra1704065](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/soumyamitra1704065/32/31501_2.png) [@soumyamitra1704065](https://discourse.nodered.org/u/soumyamitra1704065)\
**Post date:** [5 November 2020 22:30 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/1 "2020-11-05T22:30:25Z")

</div>

i am getting the following message whenever i try to open my node-red inside my raspberry pi

> 6 Nov 03:39:52 - [info] [udp out:8a2aee6c.3c7c6] udp ready: [0.0.0.0:5005](https://0.0.0.0:5005)

> 6 Nov 03:39:52 - [info] [udp out:15b7225d.69ed5e] udp re-use socket: -\> [0.0.0.0:5005](https://0.0.0.0:5005)

> 6 Nov 03:39:52 - [red] Uncaught Exception:

> 6 Nov 03:39:52 - Error: setBroadcast EBADF

> at Socket.setBroadcast (dgram.js:770:11)

> at Timeout.\_onTimeout (/usr/lib/node\_modules/node-red/node\_modules/@node-red/nodes/core/network/32-udp.js:184:26)

> at listOnTimeout (internal/timers.js:554:17)

> at processTimers (internal/timers.js:497:7)

initially it opened once and i created certain nodes for udp data transfer after i deployed it, it terminated the node-red connection and since then whenever i try to open node-red the above quoted message comes up any help will be appriciated

thank you

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [5 November 2020 22:50 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/2 "2020-11-05T22:50:35Z")

</div>

restart Node-RED manually from the command line with the `--safe` option added - this will start it without running the flow which will allow you to edit out the offending udp node.  
If possible grab a screen shot of how you have that configured as we shouldn't break like that so I'd like to know how you have it configured.

---

<div class="post-metadata">

**Author:** ![soumyamitra1704065](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/soumyamitra1704065/32/31501_2.png) [@soumyamitra1704065](https://discourse.nodered.org/u/soumyamitra1704065)\
**Post date:** [6 November 2020 07:26 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/4 "2020-11-06T07:26:09Z")

</div>

Thank you for your response  
my flow looks like this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/1/716bc782ab8070f89b4dc079722237e220705611.png)

i have the same flow tested on my ubuntu and windows OS but the problem occurs in raspbian in the pi

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [6 November 2020 08:05 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/5 "2020-11-06T08:05:10Z")

</div>

Can you try just having one UDP out port and wiring all three flows to that one instance.

---

<div class="post-metadata">

**Author:** ![soumyamitra1704065](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/soumyamitra1704065/32/31501_2.png) [@soumyamitra1704065](https://discourse.nodered.org/u/soumyamitra1704065)\
**Post date:** [6 November 2020 09:56 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/7 "2020-11-06T09:56:09Z")

</div>

thank you for the reply i tried what you asked  
but the result was same as before the same error occurred.  
i would also like to add that during this time i tried using the same flow with ip of my other pi  
so the upd receiving program was on my other pi and it worked fine but the moment i changed the ip to localhost the same error occurred again and it made me wonder if it is due to some architectural drawback of raspberry pi as it was fine with windows OS and Ubuntu in my personal system but i found nothing related to it on the internet so far

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [6 November 2020 12:49 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/8 "2020-11-06T12:49:34Z")

</div>

rather than 0.0.0.0 can you use the actual broadcast address for your subnet ?

---

<div class="post-metadata">

**Author:** ![soumyamitra1704065](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/soumyamitra1704065/32/31501_2.png) [@soumyamitra1704065](https://discourse.nodered.org/u/soumyamitra1704065)\
**Post date:** [8 November 2020 05:55 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/9 "2020-11-08T05:55:12Z")

</div>

i tried using my broadcast ip this time around as suggested, and it got deployed at first without any problem but the moment i started the upd program to receive data the same error came and node-red got disconnected

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 November 2020 08:06 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/10 "2020-11-08T08:06:54Z")

</div>

> [@soumyamitra1704065](#):
>
> so the upd receiving program was on my other pi

So are you using UDP nodes to perform data transfer between 2 node-red on raspberry pis?

If so, Is there any reason you didn't use something much easier like MQTT?

---

<div class="post-metadata">

**Author:** ![soumyamitra1704065](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/soumyamitra1704065/32/31501_2.png) [@soumyamitra1704065](https://discourse.nodered.org/u/soumyamitra1704065)\
**Post date:** [8 November 2020 08:36 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/11 "2020-11-08T08:36:44Z")

</div>

Both the pis don't have node red  
The other Pi has a program that recieves the data based on some security parameter that will be applied once this gets done

You are right that using mqtt would have been much easier but mqtt uses TCP that requires acknowledgment whereas UDP don't

So data transfer will be faster in upd based backend

While it's also true that mqtt-sn can be used for UDP or other protocols so I won't say I thought of it and it was thanks to you that I realised I can use that 😁

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 January 2021 08:36 UTC](https://discourse.nodered.org/t/i-am-getting-the-following-message-whenever-i-try-to-open-my-node-red-inside-my-raspberry-pi/35412/12 "2021-01-07T08:36:56Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
