Hi all
Recently, i tried adding 8 new node flows in my Node Red.
After that, i recieved the bellow error:
---------------------------------------------------------------------
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.
---------------------------------------------------------------------
Now, Node Red is not loading at all anymore.
I read online that for the first error, this status could be reset by below commands, but how do i execute that in thinger.io?
-
Open your Node-RED settings file (typically
~/.node-red/settings.js
- but Node-RED logs the full path to the file it is using so you can check). -
Find the
credentialSecret
entry. Remove the//
from the start of the line to uncomment it and then change the value (a-secret-key
) to be whatever string you want to use to encrypt your credentials file. You will need to remember that value if you every want to move your flows to another machine (for example). -
Restart Node-RED. Done.
Thanks for the help already!
Gus