# UI-State-Trail persistence data help

**URL:** <https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143>\
**Category:** Dashboard\
**Created:** [25 August 2021 05:42 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143 "2021-08-25T05:42:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [25 August 2021 05:42 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/1 "2021-08-25T05:42:43Z")

</div>

Can you tag people @hotNipi ??

I'm struggling with the persistence setup on this node. I assume if I correctly set the setting.js (below) then the node should store its own data? if this is the case I dont understand why I am seeing "Store: N/A" (below2)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/5/355c12ff889d0589aec017ec350fed8923305e4b.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/3/53b05a4cf8472b9ab2ca78cf2a0f217078fa73b4.png)

Help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [25 August 2021 06:04 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/2 "2021-08-25T06:04:07Z")

</div>

Settings seems to be correct.  
Do you have any other node, using the persistent storage? Do they work correctly?  
How (where) are you running the node red? Locally? Cloud?

---

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [25 August 2021 06:18 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/3 "2021-08-25T06:18:57Z")

</div>

its a local box (running in one of many docker containers)

I've changed my config to be same as seen in the example so now it looks like this.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/d/9db15ea33141aafc5b6da55dd9c7d6189ae530a8.png)  
done a restart and still not grafting.  
Going to look at storing some manual data now see if that works..

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [25 August 2021 06:20 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/4 "2021-08-25T06:20:51Z")

</div>

I'm not an expert of docker installations but it seems that Node-RED can't access the file system.

---

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [25 August 2021 06:30 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/5 "2021-08-25T06:30:21Z")

</div>

not sure how to word this in one question

should the node be saving to to context regardless of persistence settings?  
should I be able to view node data in the node context once its running?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [25 August 2021 06:40 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/6 "2021-08-25T06:40:36Z")

</div>

Node uses same storage options as if you can use in function node - `context.set('data',data)`  
Yes you can see it - navigate to `.node-red` folder and see if there is context folder, inside that you'll find folders with sort of id's  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/d/9d1ce12cfd100a4b603b36ffbfd3b809e1b1b79e.png)  
and one of them should have JSON file inside with interested node's id as the name of file.  
And it is pretty simple json with your states in it.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/9/69dc274e1bf00fda221b5741e32b65c6f8d8e5b8.png)

If you are using projects, the context folder is moved to project space. Do search ...

---

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [25 August 2021 06:41 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/7 "2021-08-25T06:41:50Z")

</div>

should I be able to view data here?

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

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [25 August 2021 06:43 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/8 "2021-08-25T06:43:03Z")

</div>

Yes, that should show also.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/df25d4aee5963d59ca9221f0402b3ff2d693d00e.png)

---

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [25 August 2021 06:44 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/9 "2021-08-25T06:44:33Z")

</div>

ok, saves me digger through the docker containers to find the file.

I would assume that even with persistence setup that node conext should fill for the session but it isnt.

I'm going to spin up a container with the latest node-red to see if that solves it

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [25 August 2021 06:48 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/10 "2021-08-25T06:48:56Z")

</div>

> [@JoshuaG](#):
>
> I would assume that even with persistence setup that node conext should fill for the session but it isnt.

No. Node holds live data in local object and does not even try to use context if persistence is not available.

---

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [25 August 2021 06:49 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/11 "2021-08-25T06:49:48Z")

</div>

Balls.

Back to digging

---

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [25 August 2021 07:02 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/12 "2021-08-25T07:02:59Z")

</div>

Fettled it.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/8/08af91e87254915f09465f085a16a2ad373b9ff1.png)  
For reference if anyone else finds this.

Docker systems contains two settings.js files I was editing the one under

```auto
/usr/src/node0red/node_modules/node-red/settings.js

```

the actually settings file is located

```auto
/data/settings.js

```

---

<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:** [8 September 2021 07:03 UTC](https://discourse.nodered.org/t/ui-state-trail-persistence-data-help/50143/13 "2021-09-08T07:03:51Z")

</div>

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