# New version of NR, lost in \`settings.js\` file

**URL:** <https://discourse.nodered.org/t/new-version-of-nr-lost-in-settings-js-file/55165>\
**Category:** General\
**Created:** [14 December 2021 11:49 UTC](https://discourse.nodered.org/t/new-version-of-nr-lost-in-settings-js-file/55165 "2021-12-14T11:49:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [14 December 2021 12:00 UTC](https://discourse.nodered.org/t/new-version-of-nr-lost-in-settings-js-file/55165/3 "2021-12-14T12:00:06Z")

</div>

(Machine restarting NR)

Gee there is a substantial change in the `settings.js` file between 2.1.3 and 2.1.4!

I guess it is just a case of sitting down and going through them.  
But basically they are sectionalised in pretty much the same order?

(Nearly running)

Ok, so the `settings.js` can't exactly be copied from a `1.x` to `2.x` version - no? (or yes?)

I am also seeing this _message_:  
(sorry)

```auto
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.

```

Ok. I thought I had done that. (Moving on)  
I copy the `flows.json` and `flows_cred.json` file from their backup.

The `flows.json` has gone from `1.3 meg` to `2.2 meg` in size.  
??

# (machine now running NR) It worked!

(setting that line as you said.)

---

_[View the full topic](https://discourse.nodered.org/t/new-version-of-nr-lost-in-settings-js-file/55165)._
