thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.75k stars 845 forks source link

[HELP] Thingsboard gateway stops sending data from opcua server #552

Closed DejonckheereWard closed 3 years ago

DejonckheereWard commented 3 years ago

Describe the issue The gateway has succesfully sent data to thingsboard, where i can find it in the "latest telemetry" of the device. But has now stopped sending in new data, except for 4 values from the gateway itself: opc-uaconnectorEventsProduced opc-uaconnectorEventsSent eventsSent eventsProduced All other values except these get updated. Screenshot from thingsboard's latest telemetry: image

Configuration

opcua.json ```json { "server": { "disableSubscriptions": true, "identity": { "type": "anonymous" }, "mapping": [ { "attributes": [], "deviceNamePattern": "Device01", "deviceNodePattern": "Root\\.Objects\\.M241-M251 data", "deviceTypePattern": "rolbrug", "timeseries": [ { "key": "Bed_Claxon", "path": "ns=2;s=GVL.Bed_Claxon" }, { "key": "Bed_Gr_Sn_B", "path": "ns=2;s=GVL.Bed_Gr_Sn_B" }, { "key": "Bed_Gr_Sn_K", "path": "ns=2;s=GVL.Bed_Gr_Sn_K" }, { "key": "Bed_Gr_Sn_T", "path": "ns=2;s=GVL.Bed_Gr_Sn_T" }, { "key": "Bed_Keuze_T1", "path": "ns=2;s=GVL.Bed_Keuze_T1" }, { "key": "Bed_Keuze_T2", "path": "ns=2;s=GVL.Bed_Keuze_T2" }, { "key": "Bed_Achteruit_B", "path": "ns=2;s=GVL.Bed_Achteruit_B" } ] } ], "name": "OPC-UA Default Server", "scanPeriodInMillis": 5000, "security": "Basic128Rsa15", "showMap": true, "subCheckPeriodInMillis": 500, "timeoutInMillis": 10000, "url": "10.10.0.100:4840" } } ```
tb-gateway.yaml ```yaml connectors: - configuration: opcua.json name: OPC-UA Connector type: opcua storage: max_records_count: 1000 read_records_count: 10 type: memory thingsboard: host: tb-gateway.****.com port: 1883 remoteConfiguration: true remoteShell: false security: accessToken: 0000 ```

Connector name: OPC-Connector

Error traceback (If it was raised):

Can't find any errors, and in my rule chain in thingsboard i only get these 4 values in Debug image

Versions (please complete the following information):

DejonckheereWard commented 3 years ago

Found the issue, somehow all the access tokens got swapped, unsure yet how this happened.