# Node-Red intermittently loses connection with Unifi UDM Pro LAN port

**URL:** <https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204>\
**Category:** General\
**Created:** [5 May 2022 01:26 UTC](https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204 "2022-05-05T01:26:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dankkster](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dankkster](https://discourse.nodered.org/u/dankkster)\
**Post date:** [5 May 2022 01:26 UTC](https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204/1 "2022-05-05T01:26:39Z")

</div>

I am using node-red on a raspberry pi 4 with and I am experiencing some issues with connectivity. It is directly plugged into a Unifi UDMPro port as well. I find it seriously weird that the connection is being reported as disconnected when it has a 100% full time wired connection.

> Node-Red v2.2.2  
> Node-JS is v14.19.1

> Raspbian info:  
> PRETTY\_NAME="Raspbian GNU/Linux 10 (buster)"  
> NAME="Raspbian GNU/Linux"  
> VERSION\_ID="10"  
> VERSION="10 (buster)"  
> VERSION\_CODENAME=buster

Is there any way to investigate this further so that I may get to the bottom of why it is doing this? I am not seeing anything else exhibit this behavior that isn't expected, such as shutting something down, a reboot, etc...

![derp](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/922e58d9946bb8b9bf35e076dfd1de394074872f.png)

TIA for any insights and I will be happy to provide any additional information that I may have missed.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [5 May 2022 04:38 UTC](https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204/2 "2022-05-05T04:38:09Z")

</div>

The screenshot is from the unifi device.  
The events state (dis)connected to/from `IoT`

What is IoT, is this the udm ?  
The issue sounds more like a network related issue than a node-red issue.

---

<div class="post-metadata">

**Author:** ![dankkster](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dankkster](https://discourse.nodered.org/u/dankkster)\
**Post date:** [5 May 2022 04:55 UTC](https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204/3 "2022-05-05T04:55:07Z")

</div>

IoT is Internet of Things and I would agree that it is a network related issue, but possibly because of  
`Node-Red`

I am wondering if there is anything I can do to further understand why this is happening as this raspberry pi didnt drop off like this until after `Node-Red` was installed.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [5 May 2022 05:05 UTC](https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204/4 "2022-05-05T05:05:04Z")

</div>

Check the log file `/var/log/messages` to see if the nic was down/up.  
Or was the Pi overutilized in terms of CPU that it could no longer respond ?

---

<div class="post-metadata">

**Author:** ![EmilWesselink](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/emilwesselink/32/65829_2.png) [@EmilWesselink](https://discourse.nodered.org/u/EmilWesselink)\
**Post date:** [5 May 2022 05:07 UTC](https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204/5 "2022-05-05T05:07:57Z")

</div>

What kind of flows are you running?

And I can not think of a node that would cause this. But to troubleshoot, remove node red and keep monitoring.

To be honest I think it is a problem with the power to your raspberry pi. Move it to an other spot with an other adapter.

Maybe the node red service just made your consumption too high. Like the drop overflowing the bucket.

---

<div class="post-metadata">

**Author:** ![dankkster](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dankkster](https://discourse.nodered.org/u/dankkster)\
**Post date:** [5 May 2022 05:13 UTC](https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204/6 "2022-05-05T05:13:48Z")

</div>

@bakman2  
Thank you, I will look into that.

@EmilWesselink  
The power issue should not be any problem. I dont use anything other than rated adapters for any rpi. But I will still have a look into that as well. This is an odd problem I will admit.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [5 May 2022 07:12 UTC](https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204/7 "2022-05-05T07:12:31Z")

</div>

Your log shows 3 disconnection events, each after slightly less than 14 days?  
Could it be related to the DHCP lease time?

---

<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:** [4 July 2022 07:12 UTC](https://discourse.nodered.org/t/node-red-intermittently-loses-connection-with-unifi-udm-pro-lan-port/62204/8 "2022-07-04T07:12:52Z")

</div>

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