# Node-red says disconnected but publish still works

**URL:** https://discourse.nodered.org/t/node-red-says-disconnected-but-publish-still-works/16585
**Category:** General
**Created:** [11 October 2019 05:00 UTC](https://discourse.nodered.org/t/node-red-says-disconnected-but-publish-still-works/16585 "2019-10-11T05:00:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![esalles](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@esalles](https://discourse.nodered.org/u/esalles)
#### Post date: [11 October 2019 05:00 UTC](https://discourse.nodered.org/t/node-red-says-disconnected-but-publish-still-works/16585/1 "2019-10-11T05:00:49Z")

</div>

Guy,

I launch 2 instances of Node-Red (on Debian 9 virtual machine) by systemctl services (different home directory and settings file).  
But when I browse hte admin pages, I have a message "Connection lost to the server. Reconnecting in... try now)".  
But Publish action still works! But no data visible in debug window...

I'm quite new in LINUX/Node-Red world.

Any idea form where to start researches?

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [11 October 2019 05:42 UTC](https://discourse.nodered.org/t/node-red-says-disconnected-but-publish-still-works/16585/2 "2019-10-11T05:42:34Z")

</div>

> [@esalles](#):
>
> (different home directory and settings file).

and different ports???

Look at the log messages Node-RED prints on startup

---

<div class="post-metadata">

### Author: ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)
#### Post date: [11 October 2019 06:00 UTC](https://discourse.nodered.org/t/node-red-says-disconnected-but-publish-still-works/16585/3 "2019-10-11T06:00:58Z")

</div>

Could be the websocket connection that is failing (the `/comms` endpoint). Deploy uses a normal HTTP request.

Are you by any chance using a reverse proxy for your instances?

Are there any messages in your browser log?

---

<div class="post-metadata">

### Author: ![esalles](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@esalles](https://discourse.nodered.org/u/esalles)
#### Post date: [11 October 2019 06:52 UTC](https://discourse.nodered.org/t/node-red-says-disconnected-but-publish-still-works/16585/4 "2019-10-11T06:52:08Z")

</div>

Than ks guys for your fast answer.  
yes port is different, configured in both settings files.  
Startup logs was normal.

In the mean time, I had to move from home and hte issue disappeared. What was done:

- PC reboot
- Internet connection change from shared mobile connection to direct box connection (but Node-Red usage through is same connection was fine till now.

I don't know if one these actions fixes the problem.  
In another hand, I had an Open VPN connection active (not related to Node-Red server access). But once again, it is not the first time I use Node-Red in addition to this VPN. Maybe it comes in some starting scenario (like VPN open before Node-Red first acces! or something else!..)

Maybe we can live this disccussion if anybody else faces the same problem. And if I fall bacl into this again, I will post a new message.

Once again, thanks for your time (good to work on solutions where we can count on gentlemen help).

---

<div class="post-metadata">

### Author: ![tilleul](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tilleul/32/78_2.png) [@tilleul](https://discourse.nodered.org/u/tilleul)
#### Post date: [11 October 2019 07:26 UTC](https://discourse.nodered.org/t/node-red-says-disconnected-but-publish-still-works/16585/5 "2019-10-11T07:26:38Z")

</div>

are you using Google Chrome ? I have had several websocket disconnections problems since NR 1.0 using Chrome. Restarting Chrome solves the problem.  
You may also want to inspect your browser console, if there's a specific websocket error, it will be displayed there ... (my error was "unknown reason" though 😕 )

---

<div class="post-metadata">

### Author: ![esalles](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@esalles](https://discourse.nodered.org/u/esalles)
#### Post date: [11 October 2019 07:37 UTC](https://discourse.nodered.org/t/node-red-says-disconnected-but-publish-still-works/16585/6 "2019-10-11T07:37:17Z")

</div>

Yes, it was on Chrome. Thanks for the tip. I keep this on top of my head if I face again this issue.
