Flows are not saved

703 views
Skip to first unread message

Alexander Pivovarov

unread,
Mar 10, 2016, 1:50:21 AM3/10/16
to Node-RED
Another issue I encountered is lost all changes I did yesterday. The flows was deployed. I added some new flows. The restarted the node-red.
All works are gone - I was pushed back to some intermediate state and lot of work was lost. 

I checked JSON files in .node-red but they are old one... I would wish to have Save As button. 

Meanwhile will save backups manually via export to clipboard :-)

Mark Setrem

unread,
Mar 10, 2016, 4:01:34 AM3/10/16
to Node-RED
If you lost ALL the changes you made the chances are that you have somehow managed to load a different flows file.

How did you install node-red? which platform are you running on? which version of node-red and Nodejs? How do you start nodered?

Alexander Pivovarov

unread,
Mar 10, 2016, 4:53:24 AM3/10/16
to Node-RED

If you lost ALL the changes you made the chances are that you have somehow managed to load a different flows file.

How did you install node-red? which platform are you running on? which version of node-red and Nodejs? How do you start nodered?


I installed node-red with sudo npm install -g node-red and run with node-red without arguments. 

10 Mar 09:09:36 - [info] Node-RED version: v0.13.3

10 Mar 09:09:36 - [info] Node.js  version: v4.2.4

Platform: OSX


I deployed changes quite many times since the version I got....

Probably I could run node-red from different locations - could it be the root of the issue?

Nicholas O'Leary

unread,
Mar 10, 2016, 4:58:29 AM3/10/16
to Node-RED Mailing List
When it starts up, it also logs the exact flow file its using.

Have a look in the directory of that file is see if you have other flow files in there. By default it uses the hostname as part of the filename.

Nick



--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.

Dave C-J

unread,
Mar 10, 2016, 5:00:32 AM3/10/16
to node...@googlegroups.com
and also we keep a one-level backup as .flows_{your_hostname}.json.backup - so that may still exist.. - but of course by now it may have been overwritten by any more recent deploy.

Alexander Pivovarov

unread,
Mar 10, 2016, 5:55:26 AM3/10/16
to Node-RED
!!!!

flows_Alexanders-MBP.json

flows_Alexanders-MBP_cred.json

flows_Alexanders-MacBook-Pro.local.json

flows_Alexanders-MacBook-Pro.local_cred.json


and it seems .local.json is what I need - so my work is not lost!
how to load it?

четверг, 10 марта 2016 г., 13:00:32 UTC+3 пользователь Dave C-J написал:

Nicholas O'Leary

unread,
Mar 10, 2016, 5:57:11 AM3/10/16
to Node-RED Mailing List
You can specify the exact flow file to use on the command line - http://nodered.org/docs/getting-started/running#command-line-usage

Nick

--

Mark Setrem

unread,
Mar 10, 2016, 6:14:49 AM3/10/16
to Node-RED
Unfortunately that's a common issue with MacOS X networking in the past 2 versions of MacOS X the Mac can picks up one of those names on boot. So as Nick says if you specify the flows file you will avoid the issue.

Alexander Pivovarov

unread,
Mar 11, 2016, 1:19:05 AM3/11/16
to Node-RED
Ok, thanks! 

четверг, 10 марта 2016 г., 14:14:49 UTC+3 пользователь Mark Setrem написал:
Reply all
Reply to author
Forward
0 new messages