Node-red-contrib-iiot-opcua - OPCUA Client cannot access to the object on OPCUA server

Hello everyone,

A opcua client cannot access to the objects of OPCUA server generate with node-red-contrib-iiot-opcua 4.1.2. Node-red is working over docker, and after reboot problem is solve and there is no problem to connect and read objects and parameters. The thing is that after a time running it seems that OPCUA server is not available. Attached log. What could be the problem? session timeout? Any help? Thank you.

{"log":"Welcome to Node-RED\n","stream":"stdout","time":"2024-01-24T10:05:53.727913831Z"}
{"log":"===================\n","stream":"stdout","time":"2024-01-24T10:05:53.727928345Z"}
{"log":"\n","stream":"stdout","time":"2024-01-24T10:05:53.727942487Z"}
{"log":"24 Jan 11:05:53 - [info] Node-RED version: v3.1.0\n","stream":"stdout","time":"2024-01-24T10:05:53.729295195Z"}
{"log":"24 Jan 11:05:53 - [info] Node.js  version: v16.20.2\n","stream":"stdout","time":"2024-01-24T10:05:53.729903869Z"}
{"log":"24 Jan 11:05:53 - [info] Linux 5.14.21-150400.24.46-default x64 LE\n","stream":"stdout","time":"2024-01-24T10:05:53.730356882Z"}
{"log":"24 Jan 11:05:54 - [info] Loading palette nodes\n","stream":"stdout","time":"2024-01-24T10:05:54.834203602Z"}
{"log":"using @peculiar/webcrypto\n","stream":"stderr","time":"2024-01-24T10:05:58.946153173Z"}
{"log":"24 Jan 11:06:00 - [info] Settings file  : /data/settings.js\n","stream":"stdout","time":"2024-01-24T10:06:00.311204683Z"}
{"log":"24 Jan 11:06:00 - [info] Context store  : 'default' [module=memory]\n","stream":"stdout","time":"2024-01-24T10:06:00.313505845Z"}
{"log":"24 Jan 11:06:00 - [info] User directory : /data\n","stream":"stdout","time":"2024-01-24T10:06:00.315611078Z"}
{"log":"24 Jan 11:06:00 - [warn] Projects disabled : editorTheme.projects.enabled=false\n","stream":"stdout","time":"2024-01-24T10:06:00.316491638Z"}
{"log":"24 Jan 11:06:00 - [info] Flows file     : /data/flows.json\n","stream":"stdout","time":"2024-01-24T10:06:00.318947235Z"}
{"log":"24 Jan 11:06:00 - [info] Server now running at http://127.0.0.1:1880/\n","stream":"stdout","time":"2024-01-24T10:06:00.345815794Z"}
{"log":"24 Jan 11:06:00 - [warn] \n","stream":"stdout","time":"2024-01-24T10:06:00.351707034Z"}
{"log":"\n","stream":"stdout","time":"2024-01-24T10:06:00.351752048Z"}
{"log":"---------------------------------------------------------------------\n","stream":"stdout","time":"2024-01-24T10:06:00.35177524Z"}
{"log":"Your flow credentials file is encrypted using a system-generated key.\n","stream":"stdout","time":"2024-01-24T10:06:00.351796391Z"}
{"log":"\n","stream":"stdout","time":"2024-01-24T10:06:00.351816522Z"}
{"log":"If the system-generated key is lost for any reason, your credentials\n","stream":"stdout","time":"2024-01-24T10:06:00.351836059Z"}
{"log":"file will not be recoverable, you will have to delete it and re-enter\n","stream":"stdout","time":"2024-01-24T10:06:00.351856163Z"}
{"log":"your credentials.\n","stream":"stdout","time":"2024-01-24T10:06:00.351909073Z"}
{"log":"\n","stream":"stdout","time":"2024-01-24T10:06:00.351930769Z"}
{"log":"You should set your own key using the 'credentialSecret' option in\n","stream":"stdout","time":"2024-01-24T10:06:00.35195012Z"}
{"log":"your settings file. Node-RED will then re-encrypt your credentials\n","stream":"stdout","time":"2024-01-24T10:06:00.351969959Z"}
{"log":"file using your chosen key the next time you deploy a change.\n","stream":"stdout","time":"2024-01-24T10:06:00.35199005Z"}
{"log":"---------------------------------------------------------------------\n","stream":"stdout","time":"2024-01-24T10:06:00.352044969Z"}
{"log":"\n","stream":"stdout","time":"2024-01-24T10:06:00.352072622Z"}
{"log":"24 Jan 11:06:00 - [info] Starting flows\n","stream":"stdout","time":"2024-01-24T10:06:00.421024941Z"}
{"log":"10:06:00.558Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-24T10:06:00.55923723Z"}
{"log":"24 Jan 11:06:00 - [info] Started flows\n","stream":"stdout","time":"2024-01-24T10:06:00.606970111Z"}
{"log":"24 Jan 11:06:00 - [info] [mqtt-broker:Mosquitto] Connected to broker: mqtt://192.168.0.1:1883\n","stream":"stdout","time":"2024-01-24T10:06:00.638145589Z"}
{"log":"24 Jan 11:34:45 - [info] Stopping flows\n","stream":"stdout","time":"2024-01-24T10:34:45.182403698Z"}
{"log":"24 Jan 11:34:45 - [error] [OPCUA-IIoT-Connector:CONN] Error: The connection may have been rejected by server,\n","stream":"stdout","time":"2024-01-24T10:34:45.217828706Z"}
{"log":"Err = (Secure Channel Closed)\n","stream":"stdout","time":"2024-01-24T10:34:45.217889683Z"}
{"log":"24 Jan 11:34:45 - [info] [mqtt-broker:Mosquitto] Disconnected from broker: mqtt://192.168.0.1:1883\n","stream":"stdout","time":"2024-01-24T10:34:45.235694887Z"}
{"log":"24 Jan 11:34:46 - [info] Stopped flows\n","stream":"stdout","time":"2024-01-24T10:34:46.365162186Z"}
{"log":"24 Jan 11:34:46 - [info] Updated flows\n","stream":"stdout","time":"2024-01-24T10:34:46.366581106Z"}
{"log":"24 Jan 11:34:46 - [info] Starting flows\n","stream":"stdout","time":"2024-01-24T10:34:46.37307559Z"}
{"log":"10:34:46.420Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-24T10:34:46.42111586Z"}
{"log":"24 Jan 11:34:46 - [info] Started flows\n","stream":"stdout","time":"2024-01-24T10:34:46.475113328Z"}
{"log":"24 Jan 11:34:46 - [info] [mqtt-broker:Mosquitto] Connected to broker: mqtt://192.168.0.1:1883\n","stream":"stdout","time":"2024-01-24T10:34:46.484091666Z"}
{"log":"10:56:28.103Z :server_end_point              :628   PREVENTING DDOS ATTACK =\u003e maxConnection =10\n","stream":"stdout","time":"2024-01-24T10:56:28.104159164Z"}
{"log":"10:56:28.105Z :server_end_point              :648   Closing channel  15\n","stream":"stdout","time":"2024-01-24T10:56:28.10595337Z"}
{"log":"10:56:39.434Z :server_end_point              :628   PREVENTING DDOS ATTACK =\u003e maxConnection =10\n","stream":"stdout","time":"2024-01-24T10:56:39.435419998Z"}
{"log":"10:56:39.435Z :server_end_point              :648   Closing channel  22\n","stream":"stdout","time":"2024-01-24T10:56:39.436217392Z"}
{"log":"10:57:22.486Z :server_end_point              :628   PREVENTING DDOS ATTACK =\u003e maxConnection =10\n","stream":"stdout","time":"2024-01-24T10:57:22.486568169Z"}
{"log":"10:57:22.486Z :server_end_point              :648   Closing channel  23\n","stream":"stdout","time":"2024-01-24T10:57:22.487262698Z"}
{"log":"11:01:29.017Z :server_end_point              :628   PREVENTING DDOS ATTACK =\u003e maxConnection =10\n","stream":"stdout","time":"2024-01-24T11:01:29.018736476Z"}
{"log":"11:01:29.017Z :server_end_point              :648   Closing channel  24\n","stream":"stdout","time":"2024-01-24T11:01:29.018799845Z"}
{"log":"11:01:29.021Z :packet_assembler              :50    maximum chunk size exceeded (maxChunkSize=4096 current chunk size = 1129336623)\n","stream":"stdout","time":"2024-01-24T11:01:29.021590521Z"}
{"log":"12:06:31.067Z :server_secure_channel_layer   :504    Security token has really expired and shall be discarded !!!! (lifetime is =  3600000 )\n","stream":"stdout","time":"2024-01-24T12:06:31.068423648Z"}
{"log":"12:06:31.068Z :server_secure_channel_layer   :505    Server will now refuse message with token  1\n","stream":"stdout","time":"2024-01-24T12:06:31.069279238Z"}
{"log":"12:06:41.936Z :server_secure_channel_layer   :504    Security token has really expired and shall be discarded !!!! (lifetime is =  3600000 )\n","stream":"stdout","time":"2024-01-24T12:06:41.937129524Z"}
{"log":"12:06:41.937Z :server_secure_channel_layer   :505    Server will now refuse message with token  1\n","stream":"stdout","time":"2024-01-24T12:06:41.937416972Z"}
{"log":"12:07:05.546Z :server_secure_channel_layer   :504    Security token has really expired and shall be discarded !!!! (lifetime is =  3600000 )\n","stream":"stdout","time":"2024-01-24T12:07:05.547189032Z"}
{"log":"12:07:05.547Z :server_secure_channel_layer   :505    Server will now refuse message with token  1\n","stream":"stdout","time":"2024-01-24T12:07:05.547872265Z"}
{"log":"12:08:19.462Z :server_secure_channel_layer   :504    Security token has really expired and shall be discarded !!!! (lifetime is =  3600000 )\n","stream":"stdout","time":"2024-01-24T12:08:19.46285658Z"}
{"log":"12:08:19.463Z :server_secure_channel_layer   :505    Server will now refuse message with token  1\n","stream":"stdout","time":"2024-01-24T12:08:19.463522556Z"}
{"log":"12:08:28.110Z :server_secure_channel_layer   :504    Security token has really expired and shall be discarded !!!! (lifetime is =  3600000 )\n","stream":"stdout","time":"2024-01-24T12:08:28.111122606Z"}
{"log":"12:08:28.111Z :server_secure_channel_layer   :505    Server will now refuse message with token  1\n","stream":"stdout","time":"2024-01-24T12:08:28.111896381Z"}
{"log":"12:08:39.446Z :server_secure_channel_layer   :504    Security token has really expired and shall be discarded !!!! (lifetime is =  3600000 )\n","stream":"stdout","time":"2024-01-24T12:08:39.446871877Z"}
{"log":"12:08:39.446Z :server_secure_channel_layer   :505    Server will now refuse message with token  1\n","stream":"stdout","time":"2024-01-24T12:08:39.447180518Z"}
{"log":"12:09:22.494Z :server_secure_channel_layer   :504    Security token has really expired and shall be discarded !!!! (lifetime is =  3600000 )\n","stream":"stdout","time":"2024-01-24T12:09:22.49549292Z"}
{"log":"12:09:22.495Z :server_secure_channel_layer   :505    Server will now refuse message with token  1\n","stream":"stdout","time":"2024-01-24T12:09:22.496240231Z"}
{"log":"23:00:00.193Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-24T23:00:00.194201454Z"}
{"log":"23:00:00.208Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-25T23:00:00.209272472Z"}
{"log":"23:00:00.184Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-26T23:00:00.185316299Z"}
{"log":"23:00:00.204Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-27T23:00:00.20504892Z"}
{"log":"28 Jan 21:07:44 - [error] [OPCUA-IIoT-Connector:CONN] Error: The connection may have been rejected by server,\n","stream":"stdout","time":"2024-01-28T20:07:44.777042894Z"}
{"log":"Err = (getaddrinfo EAI_AGAIN 1144e96f4d73)\n","stream":"stdout","time":"2024-01-28T20:07:44.777117784Z"}
{"log":"23:00:00.199Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-28T23:00:00.199680272Z"}
{"log":"23:00:00.186Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-29T23:00:00.187326981Z"}
{"log":"23:00:00.203Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-30T23:00:00.204146246Z"}
{"log":"12:41:32.421Z :server_engine                 :1315  Server: closing SESSION  active OIGateway-OPCUABrowser ns=1;g=36428532-59B4-7F64-EEDC-0EF0A577B90A  because of timeout =  1200000  has expired without a keep alive channel =  ::ffff:76.4.3.191  port =  59074\n","stream":"stdout","time":"2024-01-31T12:41:32.422510859Z"}
{"log":"23:00:00.222Z :opcua_server                  :497   [NODE-OPCUA-W21] maxAllowedSessionNumber property is now deprecated , please use serverCapabilities.maxSessions instead\n","stream":"stdout","time":"2024-01-31T23:00:00.222996817Z"}
{"log":"1 Feb 08:54:13 - [info] Stopping flows\n","stream":"stdout","time":"2024-02-01T07:54:13.326900632Z"}

Have you tried node-red-contrib-opcua, a specific note listed below.

OPC UA application note

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