• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error when using a node 'OpcUaServer'
#3
I found the problem. The list of search paths is incomplete in the source code of the OPC-UA node.

I had to install another line in the list of path where the node has to look for the server node.

Code:
var serverPkg = installedPath.getInstalledPathSync('node-opcua-server', {
    paths: [
         path.join(__dirname, '..'),
          path.join(__dirname, '../..'),
         path.join(process.cwd(), './node_modules'),
   --->       path.join(process.cwd(), '../node_modules'), <----
         path.join(process.cwd(), '.node-red/node_modules'),
     ],

Then it works. This is a bug and I have to repot it to the developer and raise an issue.

I cannot solve it myself for everybody sind it is a bug. You can edit the source code yourself in the container.

Thx
Arminn
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
Error when using a node 'OpcUaServer' - by tad - May-11th-2020, 03:38 AM
RE: Error when using a node 'OpcUaServer' - by Armin@netPI - May-11th-2020, 05:52 AM
RE: Error when using a node 'OpcUaServer' - by tad - May-11th-2020, 06:30 AM
RE: Error when using a node 'OpcUaServer' - by tad - May-12th-2020, 08:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Node Red configuration LucioFiam 3 1,831 November-30th-2022, 05:14 PM
Last Post: Armin@netPI
  Initial Setup of Control Panel with admin + admin thorws error Michi 4 2,914 January-28th-2022, 09:28 AM
Last Post: Michi
  cannot execute file: Exec format error - NETPI tuliosouza 1 1,839 January-13th-2022, 01:17 PM
Last Post: Armin@netPI
  secure node-red with a username and password Christian_Rau 3 3,056 December-3rd-2021, 11:06 AM
Last Post: Armin@netPI
  cifx0 and Node-Red fabio1975 5 3,316 November-22nd-2021, 01:13 PM
Last Post: Armin@netPI
  netPI opc ua server pull image error wswitula 3 3,262 August-27th-2021, 10:47 AM
Last Post: wswitula
  Node red web UI issue DSongra 3 3,315 July-22nd-2021, 02:47 PM
Last Post: Armin@netPI
  Node-RED 'projects' possible on netPI? JG_KIT 2 2,449 July-20th-2021, 01:11 PM
Last Post: JG_KIT
  Node-RED: OpcUa Client node tad 4 4,640 June-9th-2021, 08:51 AM
Last Post: tad
  Accessing a modbus device connected to RTE port from Node-RED tad 10 8,313 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)