# Credentials file not found

**URL:** <https://discourse.nodered.org/t/credentials-file-not-found/70333>\
**Category:** General\
**Created:** [9 November 2022 15:36 UTC](https://discourse.nodered.org/t/credentials-file-not-found/70333 "2022-11-09T15:36:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [9 November 2022 15:36 UTC](https://discourse.nodered.org/t/credentials-file-not-found/70333/1 "2022-11-09T15:36:53Z")

</div>

I copied a flows.json from one node to another node (new installation), there are no credentials used in the flow, NR starts up:

```auto
9 Nov 16:31:12 - [warn] Encrypted credentials not found

$ touch flows_cred.json
....
9 Nov 16:31:12 - [warn] Existing credentials file is empty
9 Nov 16:31:12 - [warn] Encrypted credentials not found

```

How do i get rid of these warnings ?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 November 2022 16:01 UTC](https://discourse.nodered.org/t/credentials-file-not-found/70333/2 "2022-11-09T16:01:01Z")

</div>

The reason we warn if the file is missing, or empty is because we don't know if that's what the user intended or not - and could be a sign that something is wrong and the flows won't work because credentials are missing.

If you really want to get rid of the warnings, then you'll need a valid credentials file - even if the credentials in it are empty.

No-one has asked for a way to do this before, so the method is a bit convoluted.

1. add an HTTP Request node, tick the authentication box and enter username/password. Deploy. That will generate a valid creds file.
2. delete the request node and hit deploy - that will update the creds file with nothing in it - but an _encrypted_ nothing in it.

At that point, you'll have an empty creds file for that instance of Node-RED, which has been properly encrypted for that instance.

As I said, quite convoluted, but this simply isn't a scenario anyone has asked us to do anything different with.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [9 November 2022 16:13 UTC](https://discourse.nodered.org/t/credentials-file-not-found/70333/3 "2022-11-09T16:13:09Z")

</div>

I should have just imported the flow. But your solution works, thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 November 2022 16:13 UTC](https://discourse.nodered.org/t/credentials-file-not-found/70333/4 "2022-11-23T16:13:45Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
