# Node-Red "Connection Lost"

**URL:** <https://discourse.nodered.org/t/node-red-connection-lost/27843>\
**Category:** General\
**Created:** [5 June 2020 17:27 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843 "2020-06-05T17:27:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [5 June 2020 17:27 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/1 "2020-06-05T17:27:45Z")

</div>

Hello,

I have a "Lost Connection" problem on all my browsers and on various devices (Phone, PC and tablet).  
I tried to empty the caches ==\> problem still exists.  
I reinstalled my RPI 3B several times ==\> always the same problem

Help, I'm getting discouraged!

Thank you

_Start Log_ :

**5 Jun 18:56:06 - [info] Node-RED version: v1.0.6**  
**5 Jun 18:56:06 - [info] Node.js version: v12.17.0**  
**5 Jun 18:56:06 - [info] Linux 4.19.118-v7+ arm LE**  
**5 Jun 18:56:07 - [info] Loading palette nodes**  
**5 Jun 18:56:11 - [info] Dashboard version 2.22.1 started at /ui**  
**5 Jun 18:56:11 - [info] Settings file : /home/pi/.node-red/settings.js**  
**5 Jun 18:56:11 - [info] Context store : 'default' [module=memory]**  
**5 Jun 18:56:11 - [info] User directory : /home/pi/.node-red**  
**5 Jun 18:56:11 - [warn] Projects disabled : editorTheme.projects.enabled=false**  
**5 Jun 18:56:11 - [info] Flows file : /home/pi/.node-red/flows\_raspberrypi.json**  
**5 Jun 18:56:11 - [warn]**  
**---------------------------------------------------------------------**  
**Your flow credentials file is encrypted using a system-generated key.**  
**If the system-generated key is lost for any reason, your credentials**  
**file will not be recoverable, you will have to delete it and re-enter**  
**your credentials.**  
**You should set your own key using the 'credentialSecret' option in**  
**your settings file. Node-RED will then re-encrypt your credentials**  
**file using your chosen key the next time you deploy a change.**  
**---------------------------------------------------------------------**  
**5 Jun 18:56:11 - [info] Starting flows**  
**5 Jun 18:56:11 - [info] Started flows**  
**5 Jun 18:56:11 - [info] Server now running at [https://127.0.0.1:1880/](https://127.0.0.1:1880/)**

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [5 June 2020 17:37 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/2 "2020-06-05T17:37:56Z")

</div>

Welcome to the forum!  
Everything looks fine with your installation! Node red is running. You have to put the IP of your Pi into a browser that is not on the Pi, NOT [https://127.0.0.1:1880/](https://127.0.0.1:1880/)  
https://[ip address of the pi running node red]:1880/

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [5 June 2020 17:48 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/3 "2020-06-05T17:48:50Z")

</div>

Further to what Garry has said above... to find your Pi's IP address, enter `ifconfig` in a terminal and you should be able to find your IP address towards the bottom of the printout. Something like 192.168.1.??

---

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [5 June 2020 17:55 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/4 "2020-06-05T17:55:58Z")

</div>

Hello Ghayne and Paul-Reed,

I connect well with my @IP in 192 and not in 127

For Information, I have activated the password to connect to Node-Red and I installed mosquitto broker

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [5 June 2020 18:02 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/5 "2020-06-05T18:02:04Z")

</div>

> [@Safety147](#):
>
> I have activated the password to connect to Node-Red and I installed mosquitto broker

Great! there is no turning back now 😉

---

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [5 June 2020 18:04 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/6 "2020-06-05T18:04:05Z")

</div>

Does that mean I have to redo a test without activating the password and MQTT?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [5 June 2020 18:06 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/7 "2020-06-05T18:06:30Z")

</div>

A test? what test...

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [5 June 2020 18:08 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/8 "2020-06-05T18:08:19Z")

</div>

I assumed @Safety147 is having the intermittent "disconnected" notifications on the editor. That is often caused by Node-RED crashing and restarting all the time? By the look of the log it doesn't seem so though...

---

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [5 June 2020 18:08 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/9 "2020-06-05T18:08:23Z")

</div>

Not a test, but reinstalling Raspbian without the MQTT and password activation

---

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [5 June 2020 18:18 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/10 "2020-06-05T18:18:32Z")

</div>

Yes, that's my problem. The logs don't report any problems. I will try a new installation of Raspbian without putting a password and without MQTT.

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [5 June 2020 18:22 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/11 "2020-06-05T18:22:05Z")

</div>

I don't think they could be the issue here. Do you have a firewall in between that could somehow be causing some issues? Or is the Raspberry on wifi, and if it is, is the connection stable?

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [5 June 2020 18:24 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/12 "2020-06-05T18:24:42Z")

</div>

Have you read this thread which I believe is about a similar issue [Node-red connection lost in google chrome](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568)? Perhaps suggestions there could be of help.

---

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [6 June 2020 06:05 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/13 "2020-06-06T06:05:01Z")

</div>

No, I didn't install a firewall or antivirus for RPI. I don't have a proxy server either.

---

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [6 June 2020 06:08 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/14 "2020-06-06T06:08:35Z")

</div>

Yes, I have seen this post but not having an antivirus it does not apply to me.  
The problem is on all my web browsers: Safari, Edge Chromium, Chrome and Firefox ☹  
Could the problem be the flows I created on Node-Red?

---

<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:** [6 June 2020 06:14 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/15 "2020-06-06T06:14:29Z")

</div>

> [@Safety147](#):
>
> Could the problem be the flows I created on Node-Red

It is possible if they are doing heavy processing, to cause the update back to the browser to be delayed.

Do you have any loops or heavy computation going on in your flows? Working with large images perhaps? Or is the node-red device cpu usage very high?

---

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [6 June 2020 06:21 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/16 "2020-06-06T06:21:11Z")

</div>

I'm reading temperature readings on three probes:  
1 DHT22 and 2 DS18B20.  
The readings are taken every second with the use of the Broker Mosquitto to have a 24 hour history.  
I also use the "SMS Free" node to send SMS in case of too low or too high temperature.  
Being a new user of Linux and Node-Red, I surely made the system heavier!

I also have a question about my method of installing Node-Red. I use this script found on a tuto : bash \<(curl -sl [https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered](https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered))  
What do you think?

---

<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:** [6 June 2020 06:26 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/17 "2020-06-06T06:26:17Z")

</div>

> [@Safety147](#):
>
> The readings are taken every second with the use of the Broker Mosquitto to have a 24 hour history

Surely temperature cannot fluctuate much in 1 second?

Have you tried reducing this to say 30s?

Also, you say 24h history? Where is this historical data saved? In context? 3x60x60x24 == 259200 data points. Are you transmitting these somewhere? Perhaps to a dashboard chart?

That script is the recommended install method for RPI/Ubuntu so I wouldn't be looking there just yet.

---

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [6 June 2020 06:28 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/18 "2020-06-06T06:28:27Z")

</div>

I'll test this.

The data is retrieved via Mosquitto so saved on my RPI and visualized on the Node-Red dashboard.

---

<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:** [6 June 2020 06:29 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/19 "2020-06-06T06:29:37Z")

</div>

Well if you are sending that amount of data to dashboard every second OR trying to visualise more data than actual pixels, you're asking for trouble 😉

---

<div class="post-metadata">

**Author:** ![Safety147](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Safety147](https://discourse.nodered.org/u/Safety147)\
**Post date:** [6 June 2020 06:32 UTC](https://discourse.nodered.org/t/node-red-connection-lost/27843/20 "2020-06-06T06:32:49Z")

</div>

I overestimated the capabilities of the RPI 😉  
I'm going to lower all this to reduce disk and memory accesses.  
I reinstall the system and test without Mosquitto.  
Thanks for your support 😉

[Next page](https://discourse.nodered.org/t/node-red-connection-lost/27843.md?page=2)
