• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to save node-red flows persistent?
#1
Hello.

I’m using hilschernetpi/netpi-nodered:latest. So far everything is fine.
But now I wonder how to save my flows in a persistent way.
The official node-red documentation tells that beginning with version 1.0 
setting, user and flow directory resides within /data directory which should be mapped to a persistent volume.
By the way the documentation mentions that this directory should be owned by the user node-red (1000:1000).

I have no glue how to do this on the netPi (running Firmware Version 1.2.0.0).
 
The log of above image gives me the following output.

Welcome to Node-RED
===================
5 Nov 12:57:42 - [info] Node-RED version: v0.20.8
5 Nov 12:57:42 - [info] Node.js  version: v8.16.1
5 Nov 12:57:42 - [info] Linux 4.9.80-rt62 arm LE
5 Nov 12:57:43 - [info] Loading palette nodes
5 Nov 12:57:55 - [s7comm-Info] - Debug configuration for logLevelNodeS7:{"debug":0,"silent":true}
5 Nov 12:57:55 - [s7comm-Info] - Debug configuration for logLevelNodeRED:{"debug":2,"silent":true}
5 Nov 12:57:59 - [info] Dashboard version 2.16.3 started at /ui
5 Nov 12:58:00 - [info] Settings file  : /root/.node-red/settings.js
5 Nov 12:58:00 - [info] Context store  : 'default' [module=memory]
5 Nov 12:58:00 - [info] User directory : /root/.node-red
5 Nov 12:58:00 - [warn] Projects disabled : editorTheme.projects.enabled=false
5 Nov 12:58:00 - [info] Flows file     : /root/.node-red/flows_xxxxxxx.json
5 Nov 12:58:00 - [info] Creating new flow file
5 Nov 12:58:00 - [warn] 

 
So how to map /root/.node-red directory to any persistent volume?

Editing settings.js doesn't help either because this file is destroyed too at a container restart.


Regards
 
P.S.: I have searched the forum many times but didn’t find any answer. So I wonder again if nobody else has this problem. Maybe I missed something.
  Reply


Messages In This Thread
How to save node-red flows persistent? - by hsammer - November-5th-2019, 02:25 PM
RE: How to save node-red flows persistent? - by Armin@netPI - November-5th-2019, 02:59 PM
RE: How to save node-red flows persistent? - by hsammer - November-5th-2019, 03:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Node Red configuration LucioFiam 3 1,783 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 3,009 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,265 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  Node red web UI issue DSongra 3 3,276 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,401 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Node-RED: OpcUa Client node tad 4 4,583 June-9th-2021, 08:51 AM
Last Post: tad
  Accessing a modbus device connected to RTE port from Node-RED tad 10 8,226 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  5 x NL 50-Mpi and Node Red like colector data? Jotarod 4 4,042 September-14th-2020, 01:59 PM
Last Post: Armin@netPI
  Node-Red "http in"-Node not working DWxPro 8 7,826 June-19th-2020, 01:12 AM
Last Post: DWxPro
  using node.js on NIOT-E-TP151-EN-RE COswald 9 10,660 May-20th-2020, 12:54 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 2 Guest(s)