Good day,
I am currently running a node-red installation for 3 years on a raspberry-pi.
i have installed and removed multiple applications (not related to node-red) on this system so it was time to start fresh.
I installed a fresh new pi (same hardware). with all the software needed. after the test i will swap the sd-cards.
However i found somewhere that the best way to move node-red was make a backup of /root/.node-red and restore this.
this isn't working.
After starting node-red there are some errors. and the webpage is empty.(as in a new installation)
Welcome to Node-RED
===================
30 Aug 16:45:51 - [info] Node-RED version: v1.0.6
30 Aug 16:45:51 - [info] Node.js version: v10.21.0
30 Aug 16:45:51 - [info] Linux 4.19.97-v7+ arm LE
30 Aug 16:45:58 - [info] Loading palette nodes
30 Aug 16:46:16 - [info] Dashboard version 2.9.8 started at /ui
30 Aug 16:46:19 - [warn] ------------------------------------------------------
30 Aug 16:46:19 - [warn] [node-red-node-serialport/serialport] Error: The module '/root/.node-red/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
30 Aug 16:46:19 - [warn] ------------------------------------------------------
30 Aug 16:46:19 - [warn] Missing node modules:
30 Aug 16:46:19 - [warn] - node-red-node-email (0.1.29): e-mail, e-mail in
30 Aug 16:46:19 - [warn] - node-red-node-feedparser (0.1.12): feedparse
30 Aug 16:46:19 - [warn] - node-red-node-twitter (1.1.2): twitter-credentials, twitter in, twitter out
30 Aug 16:46:19 - [info] Removing modules from config
30 Aug 16:46:19 - [info] Settings file : /root/.node-red/settings.js
30 Aug 16:46:19 - [info] Context store : 'default' [module=memory]
30 Aug 16:46:19 - [info] User directory : /root/.node-red
30 Aug 16:46:19 - [warn] Projects disabled : editorTheme.projects.enabled=false
30 Aug 16:46:19 - [info] Flows file : /root/.node-red/flows_raspberrypi.json
30 Aug 16:46:19 - [info] Creating new flow file
30 Aug 16:46:19 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
30 Aug 16:46:19 - [info] Starting flows
30 Aug 16:46:19 - [info] Started flows
30 Aug 16:46:19 - [info] Server now running at http://127.0.0.1:1880/
Another way of migrating that i found is export all to clipboard and import.
but then the addons are still missing. (yes i can manualy check all the plugins and install them.... but what is the use of an backup when its not complete?)
the old system is still running.
i have the original /root/.node-red folder saved.
What is the correct way to backup & migrate?
Thanks
Mark