# Node RED OPC UA Server error

**URL:** https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297
**Category:** General
**Created:** [7 October 2025 12:54 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297 "2025-10-07T12:54:32Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![d.morani](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@d.morani](https://discourse.nodered.org/u/d.morani)
#### Post date: [7 October 2025 12:54 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/1 "2025-10-07T12:54:32Z")

</div>

## 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.

7 Oct 14:45:33 - [warn] Encrypted credentials not found  
7 Oct 14:45:33 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
7 Oct 14:45:33 - [info] Starting flows  
12:45:33.543Z :opcua\_server :1082 [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead  
7 Oct 14:45:33 - [info] Started flows  
7 Oct 14:45:33 - [info] [tcp in:ef523e60ed7e5171] listening on port 1100  
7 Oct 14:45:33 - [error] [file in:8fc25e25e06be6ed] Error: ENOENT: no such file or directory, open 'C:\home\opc\global.json'  
7 Oct 14:45:33 - [error] [function:Restore] TypeError: Cannot read properties of undefined (reading 'length')

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [7 October 2025 13:24 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/2 "2025-10-07T13:24:23Z")

</div>

> [@d.morani](#):
>
> Error: ENOENT: no such file or directory, open 'C:\home\opc\global.json'

Does the file 'C:\home\opc\global.json' exist?

---

<div class="post-metadata">

### Author: ![d.morani](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@d.morani](https://discourse.nodered.org/u/d.morani)
#### Post date: [7 October 2025 15:00 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/3 "2025-10-07T15:00:44Z")

</div>

yes it is created.

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [7 October 2025 15:03 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/4 "2025-10-07T15:03:26Z")

</div>

Are you using Docker?

---

<div class="post-metadata">

### Author: ![d.morani](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@d.morani](https://discourse.nodered.org/u/d.morani)
#### Post date: [8 October 2025 05:32 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/5 "2025-10-08T05:32:19Z")

</div>

No

Daniele Morani

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [8 October 2025 06:20 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/6 "2025-10-08T06:20:37Z")

</div>

Are you running node-red as a service or directly from command line?

Where is node-red installed - same computer as the file or is node-red installed on a remote server?

Does the account running node-red? Have permissions to read that file?

---

<div class="post-metadata">

### Author: ![d.morani](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@d.morani](https://discourse.nodered.org/u/d.morani)
#### Post date: [8 October 2025 06:35 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/7 "2025-10-08T06:35:44Z")

</div>

Hi  
Yes it is on the same computer. The strange thing is the same file were working until June then now I have this errors. On my VM it is working fine. The permissions are inside. My be I can share with you the flow ?

Daniele Morani

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [8 October 2025 06:39 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/8 "2025-10-08T06:39:47Z")

</div>

> [@d.morani](#):
>
> My be I can share with you the flow

Please answer all questions first.

> [@Steve-Mcl](#):
>
> Are you running node-red as a service or directly from command line?

> [@Steve-Mcl](#):
>
> Does the account running node-red have permissions to read that file?

---

<div class="post-metadata">

### Author: ![d.morani](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@d.morani](https://discourse.nodered.org/u/d.morani)
#### Post date: [8 October 2025 13:32 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/9 "2025-10-08T13:32:57Z")

</div>

I donìt understand why it is waiting... on my VM is the same flow and it is working

 ![image.png](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/9/29a0824f737bbaca97abd8093d57ed869a198b69.png)

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [8 October 2025 13:44 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/10 "2025-10-08T13:44:53Z")

</div>

```auto
D:\HMI\.node-red\

```

Your node-red is installed in `D`, can it access `C` volume?

The node label show `/home/opc/global.json` but it should be `C:/home/opc/global.json` or `D:/home/opc/global.json`.

---

<div class="post-metadata">

### Author: ![d.morani](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@d.morani](https://discourse.nodered.org/u/d.morani)
#### Post date: [8 October 2025 14:18 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/11 "2025-10-08T14:18:19Z")

</div>

yes i have the access in D and also the path is configured for D:

 ![image.png](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/0/b05edc184d9d47b88698ace3930449e77cd55744.png)

---

<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: [6 January 2026 14:19 UTC](https://discourse.nodered.org/t/node-red-opc-ua-server-error/99297/12 "2026-01-06T14:19:03Z")

</div>

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