# OpenFlow NodeRed agent keeps disconnecting

**URL:** <https://discourse.openiap.io/t/openflow-nodered-agent-keeps-disconnecting/1358>\
**Category:** OpenCore\
**Created:** [May 29, 2024, 9:43am UTC](https://discourse.openiap.io/t/openflow-nodered-agent-keeps-disconnecting/1358 "2024-05-29T09:43:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![renierduvenhage](https://discourse.openiap.io/letter_avatar_proxy/v4/letter/r/5f8ce5/32.png) [@renierduvenhage](https://discourse.openiap.io/u/renierduvenhage)\
**Post date:** [May 29, 2024, 9:43am UTC](https://discourse.openiap.io/t/openflow-nodered-agent-keeps-disconnecting/1358/1 "2024-05-29T09:43:16Z")

</div>

Hi

I have an issue on OpenFlow v1.5.9 where the nodered agents (deployed from the web interface in OpenFlow) keeps on disconnecting (every few seconds). When inspecting, the following errors occur in the console:

 ![image](https://discourse.openiap.io/uploads/default/original/2X/b/b7858cbb6e2e43ead47ec1c49dd935a34c251ad3.png)

It then asks to reload the site as it lost connection to the server.

The weird thing is that as soon as this happens, the “New User Interface in OpenFlow” message is displayed in the OpenFlow portal (as if it keeps on logging in as the user whenever the disconnection happens):  
 ![image](https://discourse.openiap.io/uploads/default/original/2X/1/17c8ca29a769e591f146f9f88c2c23a519f0b64d.png)

I tested this on a normal user and an admin user - it is the same result on both.

What should I look out for to fix the issue? This seems quite strange - not sure if it is one of the flows in the NodeRed instance, but not sure if the flows can cause this issue.

---

<div class="post-metadata">

**Author:** ![renierduvenhage](https://discourse.openiap.io/letter_avatar_proxy/v4/letter/r/5f8ce5/32.png) [@renierduvenhage](https://discourse.openiap.io/u/renierduvenhage)\
**Post date:** [May 29, 2024, 9:47am UTC](https://discourse.openiap.io/t/openflow-nodered-agent-keeps-disconnecting/1358/2 "2024-05-29T09:47:38Z")

</div>

To add: if I don’t wait for the automatic refresh to happen and I do a manual refresh in the browser, I get a “Bad gateway” message followed by a “Not started” message.

Therefore also not sure if NodeRed keeps on restarting but I can’t see a restart in the logs on the web interface.

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [May 29, 2024, 1:33pm UTC](https://discourse.openiap.io/t/openflow-nodered-agent-keeps-disconnecting/1358/3 "2024-05-29T13:33:38Z")

</div>

please check the docker logs for errors  
could try with traefik first, then the api

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [June 5, 2024, 1:34pm UTC](https://discourse.openiap.io/t/openflow-nodered-agent-keeps-disconnecting/1358/4 "2024-06-05T13:34:35Z")

</div>

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