Node RED OPC UA Server error

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/
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')

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

yes it is created.

Are you using Docker?

No

Daniele Morani

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?

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

Please answer all questions first.

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

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.

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