Hello,
I want to automate my boiler. I deployed Node-RED to retrieve JSON values.
But I can’t get it to work.
Every time I try a flow, I get this 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.
On the forums I found similar errors. I tried entering a key in the settings.js file, but that doesn’t change anything;
Do you have any idea how to proceed?
Hi @lesaintsgeosmois and welcome back to Gladys 
Did you restart Node-RED after modifying the file?
Hello,
I have just re-run the tests.
Indeed, when I restart Node-RED, the configuration file settings.js is deleted and recreated with the default values.
The modified parameter is therefore not taken into account since the file is restored with the original values at each restart of the container.
Can you give us more information about exactly what you’re doing?
Are you running Node-RED by launching it yourself or via Gladys?
When you say « restart the container », what exactly do you do? Are we talking about a docker restart?
Hello Pierre-Gilles
Thanks for the pointer.
Indeed I had disabled it from the Gladys interface.
I hadn’t understood the difference with docker restart, which does not overwrite the config file.
For Node-RED I therefore filled in the credentialSecret: field in the settings.js file
1 Like