# \[uibuilder:runtimeSetup\] Master .config folder copy ERROR,

**URL:** <https://discourse.nodered.org/t/uibuilder-runtimesetup-master-config-folder-copy-error/100210>\
**Category:** General\
**Tags:** uibuilder\
**Created:** [21 January 2026 16:01 UTC](https://discourse.nodered.org/t/uibuilder-runtimesetup-master-config-folder-copy-error/100210 "2026-01-21T16:01:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [21 January 2026 16:01 UTC](https://discourse.nodered.org/t/uibuilder-runtimesetup-master-config-folder-copy-error/100210/1 "2026-01-21T16:01:14Z")

</div>

```auto
21 Jan 21:20:44 - [info] 

Welcome to Node-RED
===================

21 Jan 21:20:44 - [info] Node-RED version: v4.1.2
21 Jan 21:20:44 - [info] Node.js version: v24.12.0
21 Jan 21:20:44 - [info] Windows_NT 10.0.26200 x64 LE
21 Jan 21:20:44 - [info] Loading palette nodes
21 Jan 21:20:47 - [info] node-red-contrib-telegrambot version: v17.0.3
21 Jan 21:20:50 - [error] 🌐🛑[uibuilder:runtimeSetup] Master .config folder copy ERROR, path: c:\users\oee.hsr\node-red\nr\node_modules\node-red-contrib-uibuilder\templates. Could not copy 'c:\users\oee.hsr\node-red\nr\node_modules\node-red-contrib-uibuilder\templates\.config' to 'c:\users\oee.hsr\node-red\nr\uibuilder\.config'. EPIPE, The process cannot access the file because it is being used by another process. '\\?\c:\users\oee.hsr\node-red\nr\uibuilder\.config' [UibFs:copySync]
21 Jan 21:20:53 - [warn] ------------------------------------------------------
21 Jan 21:20:53 - [warn] [node-red-contrib-uibuilder/uibuilder] Error: [uibuilder:runtimeSetup] Failed to set up uibuilder root folder structure correctly. Check log for additional error messages. Root folder: c:\users\oee.hsr\node-red\nr\uibuilder. (line:337)
21 Jan 21:20:53 - [warn] ------------------------------------------------------
21 Jan 21:20:53 - [info] Settings file : c:\users\oee.hsr\node-red\NR1882\settings.js
21 Jan 21:20:53 - [info] Context store : 'default' [module=memory]
21 Jan 21:20:53 - [info] User directory : c:\users\oee.hsr\node-red\nr
21 Jan 21:20:53 - [warn] Projects disabled : editorTheme.projects.enabled=false
21 Jan 21:20:53 - [info] Flows file : C:/Users/oee.hsr/NODE-RED/NR1882/flows.json
21 Jan 21:20:53 - [info] Server now running at http://127.0.0.1:1882/
21 Jan 21:20:53 - [warn] Using unencrypted credentials
21 Jan 21:20:53 - [info] +-----------------------------------------------------
21 Jan 21:20:53 - [info] | 🌐 uibuilder v7.5.0 initialised
21 Jan 21:20:53 - [info] | root folder: c:\users\oee.hsr\node-red\nr\uibuilder
21 Jan 21:20:53 - [info] | Using Node-RED's webserver at:
21 Jan 21:20:53 - [info] | http://0.0.0.0:1882/
21 Jan 21:20:53 - [info] | Installed packages:
21 Jan 21:20:53 - [warn] Error loading flows: TypeError: Cannot read properties of undefined (reading 'uibuilder')

```

i have single node\_modules directory and i have three instances of NR running with different user directories (1880,1881,1882) but when i restart my PC, (windows, NR running as service(s)) randomly one of the instances was getting into this error, i made delayed start of service for other 2, so one of them got error. if i just restart service of this instance also , it opens without any issue,  
How to solve this problem ?

---

<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:** [21 January 2026 20:12 UTC](https://discourse.nodered.org/t/uibuilder-runtimesetup-master-config-folder-copy-error/100210/2 "2026-01-21T20:12:18Z")

</div>

> [@smanjunath211](#):
>
> `The process cannot access the file because it is being used by another process.`

Hmm, appears to be some kind of Windows file lock issue. Not reported before.

The startup always copies over the template files to `<uibRoot>/.config` so that you always get the latest copies in case you installed a new version of UIBUILDER and they have changed.

I've never seen anyone use the same Node-RED node\_modules folder for multiple different instances of Node-RED and I'll bet this doesn't happen on Linux filing systems.

The problem is that this uses Node.js's native `cpSync` which should be as robust as it can be. So hard to know how to fix this. The cpSync function should not be getting an exclusive lock on the source folder and so this _should_ work. But further investigations show that it does not reliably work.

OK, further investigation shows this to be a common problem for node.js on Windows, exacerbated by you trying to share the `node_modules` folder which often contains thousands of files and folders that Windows has to work through.

## Bottom line

What your user has built is **not safe on Windows** , even though it looks reasonable on paper.

- There is **no exclusive folder lock**
- But there _is_ unavoidable filesystem contention
- `node_modules` magnifies the problem
- Errors surfacing at the parent folder are a known Node-on-Windows symptom

One thing that _might_ help you would be to use hard links for the `node_modules` folder. This _might_ reduce the problem but I can't guarantee it. It appears that the `node_modules` folder is simply not meant to be used this way. It may well cause other oddities as well. So though it takes up more storage, your instance setup should probably pre-copy the `node_modules` folder to each instance before Node-RED startup.

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [22 January 2026 01:36 UTC](https://discourse.nodered.org/t/uibuilder-runtimesetup-master-config-folder-copy-error/100210/3 "2026-01-22T01:36:56Z")

</div>

I also have issues since flow\_cred.json also is 'shared' and gets into trouble whenever i restart the PC, restarting services is ok, ( i have merged all the credentials into one file and stored in directory where node\_modules are there)  
having node\_modules for every instance was unnecessary I thought, somewhere i had read in forum that you can share node\_modules for every instance from a central location, but unable to find it now. may be the process is wrong (global install ? or something)  
If i cant find a solution, i will make individual folders with node\_modules in it.

uibuilder is great alternative for db1 btw.

---

<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:** [22 January 2026 11:24 UTC](https://discourse.nodered.org/t/uibuilder-runtimesetup-master-config-folder-copy-error/100210/4 "2026-01-22T11:24:50Z")

</div>

> [@smanjunath211](#):
>
> having node\_modules for every instance was unnecessary I thought, somewhere i had read in forum that you can share node\_modules for every instance from a central location, but unable to find it now. may be the process is wrong (global install ? or something)

The default install for node-red is, of course, global and it is possible to install nodes under the global node-red instance and they should be available to all active instances you then run from that global install. However, this is not something I test for with UIBUILDER and I suspect would need some process tweaking to get it to work. I also don't really recommend that approach myself or even the use of a globally installed node-red.

> [@smanjunath211](#):
>
> uibuilder is great alternative for db1 btw.

😃

For DB2 as well. 😉

---

<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:** [22 April 2026 11:25 UTC](https://discourse.nodered.org/t/uibuilder-runtimesetup-master-config-folder-copy-error/100210/5 "2026-04-22T11:25:28Z")

</div>

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