# Conditions for context and global

**URL:** <https://discourse.nodered.org/t/conditions-for-context-and-global/35060>\
**Category:** Dashboard\
**Created:** [30 October 2020 08:23 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060 "2020-10-30T08:23:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chorum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chorum/32/47644_2.png) [@Chorum](https://discourse.nodered.org/u/Chorum)\
**Post date:** [30 October 2020 08:23 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/1 "2020-10-30T08:23:09Z")

</div>

Hello,

are there Conditions for context and global variables that should not be broken ?

My Node Red is crashing since yesterday. I have rebuild a minimal Flow for my Purpose and Node Red is crashing again after implementing.

The only Things i was changing where TAB connectors and some coding in a function node.

So my simple Question : am i able to crash Node Red without using any orders for Node Red itself?

I dont Restart Node Red, Reset or anything else from the Flow.

Greetings  
Chorum

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [30 October 2020 08:47 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/2 "2020-10-30T08:47:50Z")

</div>

You haven’t really given much information. Not knowing what you are doing/have done leaves anyone trying to help just guessing.

If this is reproducible, can you provide your flow?

---

<div class="post-metadata">

**Author:** ![Chorum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chorum/32/47644_2.png) [@Chorum](https://discourse.nodered.org/u/Chorum)\
**Post date:** [30 October 2020 08:54 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/3 "2020-10-30T08:54:56Z")

</div>

when node red is running again i will post the flows.

The Thing is, i dont used new nodes and i dont builded new loops.

The funcion node that i was working on is saving(-\>context) a single value from an object and the topic from the payload, deleted the Message and put a new one together.

i will post the flow as soon i get my fingers on it...

---

<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:** [30 October 2020 10:49 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/4 "2020-10-30T10:49:49Z")

</div>

Also tell us what you mean by node-red crashing? How do you know it is crashing?  
Start node red in a terminal and run it till it crashes, then copy/paste the log here. Use the `</>` button at the top of the forum text window when pasting it in.

---

<div class="post-metadata">

**Author:** ![Chorum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chorum/32/47644_2.png) [@Chorum](https://discourse.nodered.org/u/Chorum)\
**Post date:** [30 October 2020 13:30 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/5 "2020-10-30T13:30:26Z")

</div>

I am not the Admin for the Node Red Machines. I only develop flows for a local System.

The Admin and i couldnt figure out what caused the Problem. ATM i try to bring back a Minimum Flow with a Flow Export before every implementation. I think Monday i will post that Minimum Flow.  
If Node Red freezes in that time, i will know wich Change causes the Problem.

In some Weeks we will use GIT, but for now thats the way.

---

<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:** [30 October 2020 13:40 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/6 "2020-10-30T13:40:34Z")

</div>

You didn't tell us what you mean by crashing (I note that now you use the term freezing which is quite different) or how you know that it is crashing (or freezing).

Is it possible it is in a continuous loop (via mqtt or a loop in a function node for example)? That can cause node red to freeze or slow down dramatically.

---

<div class="post-metadata">

**Author:** ![Chorum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chorum/32/47644_2.png) [@Chorum](https://discourse.nodered.org/u/Chorum)\
**Post date:** [2 November 2020 12:50 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/7 "2020-11-02T12:50:58Z")

</div>

I rebuild the actual flow very slow.  
I will Reply here after i am done with that. May be i cant reproduce the Problem, for i am checking every node again.

---

<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:** [2 November 2020 13:25 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/8 "2020-11-02T13:25:06Z")

</div>

You still haven't answered the questions.

---

<div class="post-metadata">

**Author:** ![Chorum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chorum/32/47644_2.png) [@Chorum](https://discourse.nodered.org/u/Chorum)\
**Post date:** [2 November 2020 13:36 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/9 "2020-11-02T13:36:24Z")

</div>

I can discribe the Problem with Node Red only as "Freezing" and no reaction until Restart.  
In Flow and in Dashboard.  
There was no new loop implemented .

But i cant give new informations About the Problem atm, because i am rebuilding the flow step by step and that takes time. I dont want to crash or "Freeze" Node Red every 15 minutes.

If i rebuilded the flow i will bring the flow and pics, i think i have answered the Questions as good as i can atm...

---

<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:** [2 November 2020 14:57 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/10 "2020-11-02T14:57:20Z")

</div>

OK, so freezing, not crashing. If node red had crashed you would get 'no connection' errors in the browser

---

<div class="post-metadata">

**Author:** ![Chorum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chorum/32/47644_2.png) [@Chorum](https://discourse.nodered.org/u/Chorum)\
**Post date:** [4 November 2020 11:44 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/11 "2020-11-04T11:44:44Z")

</div>

I had "no Connection " Errors. But as i said i am not the one who was restarting Node Red, thats why i dont have specific Informations.

The flow is back with the same funcionality but rebuilded in other way, not like it was before. So i dont get These Problems anymore. I think i have messed something up with a variable or a message.

So case closed i think, sorry if there wasnt enough informations...

---

<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:** [4 December 2020 11:44 UTC](https://discourse.nodered.org/t/conditions-for-context-and-global/35060/12 "2020-12-04T11:44:46Z")

</div>

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