# Not able to deploy flows

**URL:** <https://discourse.nodered.org/t/not-able-to-deploy-flows/64458>\
**Category:** General\
**Tags:** docker\
**Created:** [28 June 2022 11:25 UTC](https://discourse.nodered.org/t/not-able-to-deploy-flows/64458 "2022-06-28T11:25:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![An-ji](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/an-ji/32/26678_2.png) [@An-ji](https://discourse.nodered.org/u/An-ji)\
**Post date:** [28 June 2022 11:25 UTC](https://discourse.nodered.org/t/not-able-to-deploy-flows/64458/1 "2022-06-28T11:25:43Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/f/cf0c7216a658cf3e4f39c72389b2e77b1bd221b7.png)

I've made configuration in YAML file which will copy flows\_cred.json file when it container restarts so that credentials don't get wipe out but now another file flows\_cred.json.$$$ is getting generated even if i remove this files it gets created back and not able to deploy the flow and getting below error

Flushing file flows\_cred.json to disk failed : Error: EBUSY: resource busy or locked, rename 'flows\_cred.json.$$$' -\> 'flows\_cred.json

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [28 June 2022 20:51 UTC](https://discourse.nodered.org/t/not-able-to-deploy-flows/64458/2 "2022-06-28T20:51:51Z")

</div>

Looks to me as though you've got a separate process that is locking the flows\_cred.json file. So when Node-RED tries to flush the data that needs to be in that file to disk via the temporary file that ends with `$$$` (most likely a safety measure to ensure no data loss or race conditions), it can't do it because the actual live file which presumably should have been removed, is still there or locked.

Look to your copy process because that will be what is causing the issue.

---

<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:** [27 August 2022 20:52 UTC](https://discourse.nodered.org/t/not-able-to-deploy-flows/64458/3 "2022-08-27T20:52:33Z")

</div>

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