# Node-red connection lost in google chrome

**URL:** <https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568>\
**Category:** General\
**Created:** [31 May 2020 12:16 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568 "2020-05-31T12:16:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![damiangiacone](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@damiangiacone](https://discourse.nodered.org/u/damiangiacone)\
**Post date:** [31 May 2020 12:16 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/1 "2020-05-31T12:16:36Z")

</div>

Hello my node-red installation started to fail with google chrome. Every 5 second show the messa "connection Lost". I started to work 7 months ago normally and two day ago started to fail.

I have instaled node-red 1.0.3 version in an open susse machine.

---

<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:** [31 May 2020 13:53 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/2 "2020-05-31T13:53:41Z")

</div>

Hi Damian, welcome to the forum.  
Are you 'losing connection' or is there a problem causing node-RED to continually reboot?  
Can you check the node-RED log, to see what is happening.

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [31 May 2020 14:01 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/3 "2020-05-31T14:01:18Z")

</div>

Try flushing your browser cache.

> **[How to Clear the Cache in Google Chrome - Technipages](https://www.technipages.com/google-chrome-clear-cache)**
>
> Keep the cache cleared in your Google Chrome web browser with these steps.

---

<div class="post-metadata">

**Author:** ![damiangiacone](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@damiangiacone](https://discourse.nodered.org/u/damiangiacone)\
**Post date:** [1 June 2020 13:03 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/4 "2020-06-01T13:03:28Z")

</div>

Good morning, the meesage of node-red is "connection-lost". And is only with google chrome. With Microsoft Edge are working.. I have the error log under PM2 and i dont have error message...I think is a problem of some acutalization of google chrome. Maybe a sevurity because off HTTPS i dont know

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [1 June 2020 13:04 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/5 "2020-06-01T13:04:58Z")

</div>

Try flushing your browser cache.

---

<div class="post-metadata">

**Author:** ![damiangiacone](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@damiangiacone](https://discourse.nodered.org/u/damiangiacone)\
**Post date:** [1 June 2020 20:14 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/6 "2020-06-01T20:14:42Z")

</div>

Edje11 I did the flushing of the browse cahe but the problem continue. ☹

---

<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:** [1 June 2020 20:35 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/7 "2020-06-01T20:35:24Z")

</div>

What errors (if any) are showing in the Chrome browser developers console (press F12). That should give you a clue what's happening.

---

<div class="post-metadata">

**Author:** ![damiangiacone](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@damiangiacone](https://discourse.nodered.org/u/damiangiacone)\
**Post date:** [2 June 2020 11:51 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/8 "2020-06-02T11:51:57Z")

</div>

Paul i dont have error at the console of chrome only that messages every time that the page are refreshing  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/3/b3b4484009d9864b76ee62277b24fc7eb2ebc42e.png)

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [2 June 2020 13:29 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/9 "2020-06-02T13:29:11Z")

</div>

I am getting connection lost message in chrome when one of my node-red nodes is busy for several seconds. This you can check by monitoring the CPU of the machine running node-red. If it is 100% (or 25% in case your machine has 4 CPU threads like a raspberry pi 3B) then this might be the cause of your problem.

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [2 June 2020 13:31 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/10 "2020-06-02T13:31:30Z")

</div>

Before checking the CPU, I would first check the node-red log file.

---

<div class="post-metadata">

**Author:** ![fvhemert](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fvhemert/32/20278_2.png) [@fvhemert](https://discourse.nodered.org/u/fvhemert)\
**Post date:** [2 June 2020 13:46 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/11 "2020-06-02T13:46:18Z")

</div>

I do recognize the disconnections with high CPU or nodes that take extended time. For me I traced it back to several graphs I had on my dashboard. Overtime these graphs accumulated many (many, many) data points which I also restored with a persistent node. As some point in time the number of disconnects when up and dashboard load time increase dramatically.

First test I did was clear the graph and this immediately resulted into a much more stable dashboard.

And yes, looking at the log should always be your next step..... 🙂

---

<div class="post-metadata">

**Author:** ![damiangiacone](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@damiangiacone](https://discourse.nodered.org/u/damiangiacone)\
**Post date:** [2 June 2020 15:27 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/12 "2020-06-02T15:27:26Z")

</div>

I think is a problem of the las version of google chrome 83.0.4103.61....

---

<div class="post-metadata">

**Author:** ![damiangiacone](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@damiangiacone](https://discourse.nodered.org/u/damiangiacone)\
**Post date:** [2 June 2020 15:43 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/13 "2020-06-02T15:43:07Z")

</div>

When i refresh the page and start to show the errors the log file of chrome send me

[Deprecation] Application Cache was previously restricted to secure origins only from M70 on but now secure origin use is deprecated and will be removed in M82. Please shift your use case over to Service Workers.  
DevTools failed to load SourceMap: Could not load content for [http://10.2.5.13:1880/ui/js/angular-chart.min.js.map:](http://10.2.5.13:1880/ui/js/angular-chart.min.js.map:) HTTP error: status code 404, net::ERR\_HTTP\_RESPONSE\_CODE\_FAILURE

---

<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:** [2 June 2020 17:21 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/14 "2020-06-02T17:21:28Z")

</div>

which version of dashboard nodes are you using ?

---

<div class="post-metadata">

**Author:** ![damiangiacone](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@damiangiacone](https://discourse.nodered.org/u/damiangiacone)\
**Post date:** [3 June 2020 11:49 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/15 "2020-06-03T11:49:33Z")

</div>

i am using the version 2.20

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [3 June 2020 17:16 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/16 "2020-06-03T17:16:23Z")

</div>

> [@damiangiacone](#):
>
> I think is a problem of the las version of google chrome 83.0.4103.61....

To be sure of this, you can test with other browser ( I would suggest firefox)

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [3 June 2020 17:54 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/17 "2020-06-03T17:54:14Z")

</div>

I am also investigating if Chromium trying to (automatically) upgrade may disturb a Node-RED dashboard application. Trying to find out how to disable these annoying upgrade messages too. I already upgraded Chromium a few days ago but the message appeared again today.

 ![r-04](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/e/3e5a8c8b1f75b33ec12496c22bcf7932b1cb9669.jpeg)

This application runs in a Raspberry Pi with the Desktop version of Raspian. It is a kiosk type application. I just added an ui\_control node to monitor the connection from the runtime to the dashboard. Perhaps this kind of monitoring can help you too ?

![r-02](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/5/55cef217d02856fdf3eea949027e0f007374bf7d.png)

I see quite a lot of connection lost messages in the debug node.

 ![r-05](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/f/3f5a62ea12736976e347e884938b7fc9348c2313.png)

What I find strange is that the screen is connected directly to the Raspberry Pi that runs the runtime. I can not imagine how come that the websocket between Chromium and the runtime could eventually be lost. There is no way that this can be a network issue.

UPDATE:

10 minutes after relaunch Chromium the connection lost messages are gone. I will keep monitoring. Apparently (initial assumption) is that disconnections occur whenever Chromium displays the upgrade/relaunch warning.

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [3 June 2020 19:02 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/18 "2020-06-03T19:02:43Z")

</div>

It seems to me there is a workaround for the annoying Chromium upgrade popup:

[https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=264399&start=50](https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=264399&start=50)

---

<div class="post-metadata">

**Author:** ![damiangiacone](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@damiangiacone](https://discourse.nodered.org/u/damiangiacone)\
**Post date:** [3 June 2020 21:48 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/19 "2020-06-03T21:48:00Z")

</div>

Ok Guys i found the problem. In my company the IT guys installed the Kaspersky antivirus and that antivirus generated that problem....no Google, no Node-red, the antivirus.

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [3 June 2020 22:44 UTC](https://discourse.nodered.org/t/node-red-connection-lost-in-google-chrome/27568/20 "2020-06-03T22:44:07Z")

</div>

Do you have any idea what the antivirus does that impacts the connections ? Any plan on how you will circumvent ?

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