# Constantly losing data

**URL:** <https://discourse.nodered.org/t/constantly-losing-data/44055>\
**Category:** General\
**Created:** [12 April 2021 16:39 UTC](https://discourse.nodered.org/t/constantly-losing-data/44055 "2021-04-12T16:39:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HZB](https://avatars.discourse-cdn.com/v4/letter/h/77aa72/32.png) [@HZB](https://discourse.nodered.org/u/HZB)\
**Post date:** [12 April 2021 16:39 UTC](https://discourse.nodered.org/t/constantly-losing-data/44055/1 "2021-04-12T16:39:47Z")

</div>

Hi everyone.

I am designing a Node Red based system for a company. We re using IBM cloud for the node red (paid version). The only problem we are facing is "we are constantly losing data" after every update or so. Some times pipelines fails. Some times it say's "Flow stopped due to missing node types" although that node is properly installed. Sometimes it say "failed to deploy"

What's the best solution for this?

Is there is a way we can have 2 different cloud based instances and if any updates comes it only update one instance and if everything goes smooth then it will update both the instances

---

<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:** [12 April 2021 20:36 UTC](https://discourse.nodered.org/t/constantly-losing-data/44055/2 "2021-04-12T20:36:45Z")

</div>

The question is too vague to provide a meaningful answer. The next time something unexpected happens describe exactly what the problem is so that it can be analysed and the underlying cause determined.

Exactly what is it that gets updated?

---

<div class="post-metadata">

**Author:** ![HZB](https://avatars.discourse-cdn.com/v4/letter/h/77aa72/32.png) [@HZB](https://discourse.nodered.org/u/HZB)\
**Post date:** [13 April 2021 12:03 UTC](https://discourse.nodered.org/t/constantly-losing-data/44055/3 "2021-04-13T12:03:30Z")

</div>

Yesterday when i came to work, my dashboard was down. I opened the flow and got this message on the other hand ui\_multistate\_switch was installed.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/c/5c0e7cbf4ea1111b1f830ee589606e4403234fd3.png)

Then to fix this i removed all the ui\_multistate\_switch nodes from my flow, reinstalled and deploy. My dashboard was back. But all the data that i stored in the cloudant database was gone.

---

<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:** [13 April 2021 12:52 UTC](https://discourse.nodered.org/t/constantly-losing-data/44055/4 "2021-04-13T12:52:36Z")

</div>

you must install extra nodes (like the multistate switch) by adding them to your package.json by using the deploy pipeline tools to edit that file - and not by installing via the menu. If you install by the menu then they will get lost if the machine gets redeployed for any reason.

---

<div class="post-metadata">

**Author:** ![HZB](https://avatars.discourse-cdn.com/v4/letter/h/77aa72/32.png) [@HZB](https://discourse.nodered.org/u/HZB)\
**Post date:** [13 April 2021 17:01 UTC](https://discourse.nodered.org/t/constantly-losing-data/44055/5 "2021-04-13T17:01:39Z")

</div>

@dceejay thanks. Can you guide me in the direction that how to install extra nodes to package.json by using the deploy pipeline tools?

I am new to this and to install nodes from palette is pretty easy though.

---

<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:** [12 June 2021 17:01 UTC](https://discourse.nodered.org/t/constantly-losing-data/44055/6 "2021-06-12T17:01:59Z")

</div>

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