# Nodered very slow

**URL:** <https://discourse.nodered.org/t/nodered-very-slow/64899>\
**Category:** General\
**Created:** [10 July 2022 08:26 UTC](https://discourse.nodered.org/t/nodered-very-slow/64899 "2022-07-10T08:26:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Herbert](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@Herbert](https://discourse.nodered.org/u/Herbert)\
**Post date:** [10 July 2022 08:26 UTC](https://discourse.nodered.org/t/nodered-very-slow/64899/1 "2022-07-10T08:26:33Z")

</div>

Hello. I tried something with MQTT from one Pi3to Pi400 in both directions.  
Some days after deploy the Pi 3 were slow. Today so slow I can´t do anything with Nodered. The rest of Pi works.  
I have an old flow export. I tried to import the old flows, but I cam´t deploy. It takes 3 min and the result: Over time. Not possible to deploy.

I tried to type sudo node-red-stop and then sudo node-red-start --safe  
But I think it doesn´t work. It runs normally and also very slow.

How can I run nodered in Stop mode to delete maybe caused flow?  
Maybe there is a problemwith the WebSocket?

While start nodered the comand line write:  
10 Jul 10:34:34 - [warn] Communication send error: Error: WebSocket is not open: readyState 3 (CLOSED)

Maybe it helps to find the reason

---

<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:** [10 July 2022 09:24 UTC](https://discourse.nodered.org/t/nodered-very-slow/64899/2 "2022-07-10T09:24:54Z")

</div>

I would suspect you have managed o set up an mqtt loop where you are sending to a topic - that then gets sent back and then sent again etc... but stopping and starting (in safe mode) should stop it. - Worst case turn off one end - and then restart it not connected to the network (if possible) and then restart node-red in safe mode. - then sort out the flow, reconnect the network, and deploy.

---

<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:** [10 July 2022 09:26 UTC](https://discourse.nodered.org/t/nodered-very-slow/64899/3 "2022-07-10T09:26:23Z")

</div>

> [@Herbert](#):
>
> node-red-start --safe

You need to do `node-red --safe`

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 July 2022 11:09 UTC](https://discourse.nodered.org/t/nodered-very-slow/64899/4 "2022-07-10T11:09:15Z")

</div>

If you are using Mosquitto then it can be configured to automatically sync specified topics across servers in a way that protects against loops.

---

<div class="post-metadata">

**Author:** ![Herbert](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@Herbert](https://discourse.nodered.org/u/Herbert)\
**Post date:** [10 July 2022 16:55 UTC](https://discourse.nodered.org/t/nodered-very-slow/64899/5 "2022-07-10T16:55:49Z")

</div>

Thanks colleagues, you are both right. Your command node-red --safe works, that was not the cause. So I try to uninstall NodeRed and reinstall it. I hope I can import my old Flows. The problem is, I had a encryption of Nodered. I know the key and I hope that I can import that again. We will see.  
Main topic is: I can use Nodered 😉

Also correct is I use Mosquitto. This Mosquitto works for my photovoltaik (PV) devices and also to implement the commands in NodeRed. My plan is: Raspberry 3 is responsible for PV and sends the MQTT commands to my Pi400 (ioBroker and Nodered). Then I have in both Pi´s all issues.

If you have experience for Mosquitto configuration, please give me some information how I can do this. Thanks

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 July 2022 09:50 UTC](https://discourse.nodered.org/t/nodered-very-slow/64899/6 "2022-07-11T09:50:33Z")

</div>

This is a good guide to bridging between mosquitto servers.

> **[Mosquitto MQTT Bridge-Usage and Configuration](http://www.steves-internet-guide.com/mosquitto-bridge-configuration/)**
>
> How to configure the Mosquitto broker as a bridge. Basic configuration and topic remapping

---

<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:** [25 July 2022 09:51 UTC](https://discourse.nodered.org/t/nodered-very-slow/64899/7 "2022-07-25T09:51:13Z")

</div>

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