Skip to content

[BUG] Suddenly Connector implementation not found for OPC UA #2107

@hoffi085

Description

@hoffi085

Connector name (If bug in the some connector):
OPC-UA Connector

Describe the bug
Suddenly we receive following error logs:

Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: OPC-UA library not found
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: 2026-03-16 12:20:07.504 - |INFO| - [tb_loader.py] - tb_loader - import_module - 78 - No module named 'pkg_resources'
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: 2026-03-16 12:20:07.505 - |INFO| - [tb_loader.py] - tb_loader - import_module - 78 - No module named 'asyncua'
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: 2026-03-16 12:20:07.505 - |WARNING| - [tb_gateway_service.py] - tb_gateway_service - _load_connectors - 902 - Connector implementation not found for OPC_HBA_S03
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: 2026-03-16 12:20:07.505 - |ERROR| - [tb_gateway_service.py] - tb_gateway_service - _load_connectors - 905 - The following error occurred during importing connector class: No module named 'asyncua'
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: NoneType: None
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: 2026-03-16 12:20:07.505 - |ERROR| - [tb_gateway_service.py] - tb_gateway_service - _load_connectors - 905 - The following error occurred during importing connector class: No module named 'pkg_resources'
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: NoneType: None
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: 2026-03-16 12:20:07.505 - |ERROR| - [tb_gateway_service.py] - tb_gateway_service - _load_connectors - 905 - The following error occurred during importing connector class: No module named 'asyncua'
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: NoneType: None
Mär 16 12:20:07 thingsboard-iot-gateway python3[4069]: 2026-03-16 12:20:07.505 - |INFO| - [tb_loader.py] - tb_loader - import_module - 78 - No module named 'asyncua'

OPC UA Connection therefore does not start anymore.
We tried to deactivate the connector and restart thingsboard-iot-gateway as described here with no luck.

Versions (please complete the following information):

  • OS: Debian 6.1.158-1
  • Thingsboard IoT Gateway version 3.8.2
  • Python version 3.11.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions