macjeff Posted March 22, 2023 Posted March 22, 2023 Says something about threads can only be started once. All I did was reboot PG3. Jeff 2023-03-22 09:33:58,336 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2023-03-22 09:34:02,071 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.55 Starting... 2023-03-22 09:34:02,537 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.1.18 [ISY: 5.5.9, Slot: 15] 2023-03-22 09:34:02,540 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '172.16.1.210', 'netmask': '255.255.255.0', 'broadcast': '172.16.1.255'} 2023-03-22 09:34:02,543 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:1888 2023-03-22 09:34:02,547 MainThread udi_interface.interface WARNING interface:start: No node server version specified. Using deprecated server.json version 2023-03-22 09:34:02,549 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: controller not found in database. 2023-03-22 09:34:02,551 MainThread udi_interface DEBUG Controller:init_typed: enter 2023-03-22 09:34:02,552 MainThread udi_interface.custom INFO custom:_save: Sending data customtypedparams to Polyglot. 2023-03-22 09:34:02,553 MainThread udi_interface DEBUG Controller:init_typed: exit 2023-03-22 09:34:02,554 MainThread udi_interface.custom INFO custom:_save: Sending data notices to Polyglot. 2023-03-22 09:34:02,555 MainThread udi_interface.interface INFO interface:addNode: Adding node Notification Controller(controller) [None] 2023-03-22 09:34:02,555 MainThread udi_interface.interface INFO interface:setController: Using node "controller", driver "ST" for connection status. 2023-03-22 09:34:02,626 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-03-22 09:34:02,628 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:2c:34_15 - MID: 1 Result: 0 2023-03-22 09:34:02,638 Publish udi_interface ERROR udi_interface:write: Exception in thread 2023-03-22 09:34:02,638 MQTT udi_interface.interface ERROR interface:_startMqtt: MQTT Connection SSLError: [SSL: BAD_LENGTH] bad length (_ssl.c:2488), Will retry in a few seconds. Traceback (most recent call last): File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 530, in _startMqtt self._mqttc.loop_forever() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1181, in _loop rc = self.loop_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1577, in loop_write rc = self._packet_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2464, in _packet_write write_length = self._sock_send( File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 649, in _sock_send return self._sock.send(buf) File "/usr/local/lib/python3.9/ssl.py", line 1174, in send return self._sslobj.write(data) ssl.SSLError: [SSL: BAD_LENGTH] bad length (_ssl.c:2488) 2023-03-22 09:34:02,639 Publish udi_interface ERROR udi_interface:write: Publish 2023-03-22 09:34:02,661 Publish udi_interface ERROR udi_interface:write: : 2023-03-22 09:34:02,662 Publish udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2023-03-22 09:34:02,662 Publish udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner 2023-03-22 09:34:02,666 Publish udi_interface ERROR udi_interface:write: self.run() 2023-03-22 09:34:02,667 Publish udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run 2023-03-22 09:34:02,670 Publish udi_interface ERROR udi_interface:write: self._target(*self._args, **self._kwargs) 2023-03-22 09:34:02,672 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 616, in _sendThread 2023-03-22 09:34:02,674 Publish udi_interface ERROR udi_interface:write: self._mqttc.publish(topic, json.dumps(message), retain=False) 2023-03-22 09:34:02,675 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1257, in publish 2023-03-22 09:34:02,679 Publish udi_interface ERROR udi_interface:write: rc = self._send_publish( 2023-03-22 09:34:02,680 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2693, in _send_publish 2023-03-22 09:34:02,687 Publish udi_interface ERROR udi_interface:write: return self._packet_queue(PUBLISH, packet, mid, qos, info) 2023-03-22 09:34:02,687 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3016, in _packet_queue 2023-03-22 09:34:02,695 Publish udi_interface ERROR udi_interface:write: return self.loop_write() 2023-03-22 09:34:02,696 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1577, in loop_write 2023-03-22 09:34:02,701 Publish udi_interface ERROR udi_interface:write: rc = self._packet_write() 2023-03-22 09:34:02,702 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2464, in _packet_write 2023-03-22 09:34:02,708 Publish udi_interface ERROR udi_interface:write: write_length = self._sock_send( 2023-03-22 09:34:02,709 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 649, in _sock_send 2023-03-22 09:34:02,712 Publish udi_interface ERROR udi_interface:write: return self._sock.send(buf) 2023-03-22 09:34:02,713 Publish udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/ssl.py", line 1174, in send 2023-03-22 09:34:02,718 Publish udi_interface ERROR udi_interface:write: return self._sslobj.write(data) 2023-03-22 09:34:02,719 Publish udi_interface ERROR udi_interface:write: OSError 2023-03-22 09:34:02,719 Publish udi_interface ERROR udi_interface:write: : 2023-03-22 09:34:02,720 Publish udi_interface ERROR udi_interface:write: [Errno 14] Bad address 2023-03-22 09:34:05,763 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-03-22 09:34:05,765 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:2c:34_15 - MID: 8 Result: 0 2023-03-22 09:34:05,766 MQTT udi_interface.interface ERROR interface:_startMqtt: MQTT Connection error: An exception of type RuntimeError occurred. Arguments: ('threads can only be started once',) Traceback (most recent call last): File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 530, in _startMqtt self._mqttc.loop_forever() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3039, in _packet_handle return self._handle_connack() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3138, in _handle_connack on_connect( File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 322, in _connect self._outThread.start() File "/usr/local/lib/python3.9/threading.py", line 894, in start raise RuntimeError("threads can only be started once") RuntimeError: threads can only be started once 2023-03-22 09:36:24,610 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2023-03-22 09:36:27,246 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.55 Starting... 2023-03-22 09:36:27,285 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.1.18 [ISY: 5.5.9, Slot: 15] 2023-03-22 09:36:27,287 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '172.16.1.210', 'netmask': '255.255.255.0', 'broadcast': '172.16.1.255'} 2023-03-22 09:36:27,289 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:1888 2023-03-22 09:36:27,292 MainThread udi_interface.interface WARNING interface:start: No node server version specified. Using deprecated server.json version 2023-03-22 09:36:27,293 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: controller not found in database. 2023-03-22 09:36:27,294 MainThread udi_interface DEBUG Controller:init_typed: enter 2023-03-22 09:36:27,295 MainThread udi_interface.custom INFO custom:_save: Sending data customtypedparams to Polyglot. 2023-03-22 09:36:27,296 MainThread udi_interface DEBUG Controller:init_typed: exit 2023-03-22 09:36:27,297 MainThread udi_interface.custom INFO custom:_save: Sending data notices to Polyglot. 2023-03-22 09:36:27,298 MainThread udi_interface.interface INFO interface:addNode: Adding node Notification Controller(controller) [None] 2023-03-22 09:36:27,298 MainThread udi_interface.interface INFO interface:setController: Using node "controller", driver "ST" for connection status. 2023-03-22 09:36:27,344 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-03-22 09:36:27,346 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:2c:34_15 - MID: 1 Result: 0 2023-03-22 09:36:27,355 MQTT udi_interface.interface ERROR interface:_startMqtt: MQTT Connection SSLError: EOF occurred in violation of protocol (_ssl.c:2488), Will retry in a few seconds. Traceback (most recent call last): File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 530, in _startMqtt self._mqttc.loop_forever() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1181, in _loop rc = self.loop_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1577, in loop_write rc = self._packet_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2464, in _packet_write write_length = self._sock_send( File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 649, in _sock_send return self._sock.send(buf) File "/usr/local/lib/python3.9/ssl.py", line 1174, in send return self._sslobj.write(data) ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2488) 2023-03-22 09:36:30,439 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-03-22 09:36:30,441 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:2c:34_15 - MID: 9 Result: 0 2023-03-22 09:36:30,442 MQTT udi_interface.interface ERROR interface:_startMqtt: MQTT Connection error: An exception of type RuntimeError occurred. Arguments: ('threads can only be started once',) Traceback (most recent call last): File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 530, in _startMqtt self._mqttc.loop_forever() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3039, in _packet_handle return self._handle_connack() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3138, in _handle_connack on_connect( File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 322, in _connect self._outThread.start() File "/usr/local/lib/python3.9/threading.py", line 894, in start raise RuntimeError("threads can only be started once") RuntimeError: threads can only be started once 2023-03-22 09:37:42,214 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2023-03-22 09:37:45,389 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.55 Starting... 2023-03-22 09:37:45,440 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.1.18 [ISY: 5.5.9, Slot: 15] 2023-03-22 09:37:45,443 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '172.16.1.210', 'netmask': '255.255.255.0', 'broadcast': '172.16.1.255'} 2023-03-22 09:37:45,446 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:1888 2023-03-22 09:37:45,450 MainThread udi_interface.interface WARNING interface:start: No node server version specified. Using deprecated server.json version 2023-03-22 09:37:45,451 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: controller not found in database. 2023-03-22 09:37:45,453 MainThread udi_interface DEBUG Controller:init_typed: enter 2023-03-22 09:37:45,455 MainThread udi_interface.custom INFO custom:_save: Sending data customtypedparams to Polyglot. 2023-03-22 09:37:45,456 MainThread udi_interface DEBUG Controller:init_typed: exit 2023-03-22 09:37:45,457 MainThread udi_interface.custom INFO custom:_save: Sending data notices to Polyglot. 2023-03-22 09:37:45,458 MainThread udi_interface.interface INFO interface:addNode: Adding node Notification Controller(controller) [None] 2023-03-22 09:37:45,459 MainThread udi_interface.interface INFO interface:setController: Using node "controller", driver "ST" for connection status. 2023-03-22 09:37:45,525 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-03-22 09:37:45,527 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:2c:34_15 - MID: 1 Result: 0 2023-03-22 09:37:45,536 MQTT udi_interface.interface ERROR interface:_startMqtt: MQTT Connection SSLError: EOF occurred in violation of protocol (_ssl.c:2488), Will retry in a few seconds. Traceback (most recent call last): File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 530, in _startMqtt self._mqttc.loop_forever() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1181, in _loop rc = self.loop_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1577, in loop_write rc = self._packet_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2464, in _packet_write write_length = self._sock_send( File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 649, in _sock_send return self._sock.send(buf) File "/usr/local/lib/python3.9/ssl.py", line 1174, in send return self._sslobj.write(data) ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2488) 2023-03-22 09:37:45,539 Publish udi_interface ERROR udi_interface:write: Exception in thread 2023-03-22 09:37:45,557 Publish udi_interface ERROR udi_interface:write: Publish 2023-03-22 09:37:45,558 Publish udi_interface ERROR udi_interface:write: : 2023-03-22 09:37:45,559 Publish udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2023-03-22 09:37:45,560 Publish udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner 2023-03-22 09:37:45,564 Publish udi_interface ERROR udi_interface:write: self.run() 2023-03-22 09:37:45,565 Publish udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run 2023-03-22 09:37:45,568 Publish udi_interface ERROR udi_interface:write: self._target(*self._args, **self._kwargs) 2023-03-22 09:37:45,569 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 616, in _sendThread 2023-03-22 09:37:45,572 Publish udi_interface ERROR udi_interface:write: self._mqttc.publish(topic, json.dumps(message), retain=False) 2023-03-22 09:37:45,574 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1257, in publish 2023-03-22 09:37:45,579 Publish udi_interface ERROR udi_interface:write: rc = self._send_publish( 2023-03-22 09:37:45,580 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2693, in _send_publish 2023-03-22 09:37:45,588 Publish udi_interface ERROR udi_interface:write: return self._packet_queue(PUBLISH, packet, mid, qos, info) 2023-03-22 09:37:45,589 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3016, in _packet_queue 2023-03-22 09:37:45,597 Publish udi_interface ERROR udi_interface:write: return self.loop_write() 2023-03-22 09:37:45,598 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1577, in loop_write 2023-03-22 09:37:45,602 Publish udi_interface ERROR udi_interface:write: rc = self._packet_write() 2023-03-22 09:37:45,604 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2464, in _packet_write 2023-03-22 09:37:45,610 Publish udi_interface ERROR udi_interface:write: write_length = self._sock_send( 2023-03-22 09:37:45,612 Publish udi_interface ERROR udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 649, in _sock_send 2023-03-22 09:37:45,616 Publish udi_interface ERROR udi_interface:write: return self._sock.send(buf) 2023-03-22 09:37:45,617 Publish udi_interface ERROR udi_interface:write: File "/usr/local/lib/python3.9/ssl.py", line 1174, in send 2023-03-22 09:37:45,621 Publish udi_interface ERROR udi_interface:write: return self._sslobj.write(data) 2023-03-22 09:37:45,622 Publish udi_interface ERROR udi_interface:write: ssl 2023-03-22 09:37:45,623 Publish udi_interface ERROR udi_interface:write: . 2023-03-22 09:37:45,624 Publish udi_interface ERROR udi_interface:write: SSLError 2023-03-22 09:37:45,625 Publish udi_interface ERROR udi_interface:write: : 2023-03-22 09:37:45,625 Publish udi_interface ERROR udi_interface:write: [SSL: BAD_LENGTH] bad length (_ssl.c:2488) 2023-03-22 09:37:48,616 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-03-22 09:37:48,618 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:2c:34_15 - MID: 9 Result: 0 2023-03-22 09:37:48,619 MQTT udi_interface.interface ERROR interface:_startMqtt: MQTT Connection error: An exception of type RuntimeError occurred. Arguments: ('threads can only be started once',) Traceback (most recent call last): File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 530, in _startMqtt self._mqttc.loop_forever() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3039, in _packet_handle return self._handle_connack() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3138, in _handle_connack on_connect( File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 322, in _connect self._outThread.start() File "/usr/local/lib/python3.9/threading.py", line 894, in start raise RuntimeError("threads can only be started once") RuntimeError: threads can only be started once 2023-03-22 09:42:10,821 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2023-03-22 09:42:13,468 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.55 Starting... 2023-03-22 09:42:13,510 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.1.18 [ISY: 5.5.9, Slot: 15] 2023-03-22 09:42:13,512 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '172.16.1.210', 'netmask': '255.255.255.0', 'broadcast': '172.16.1.255'} 2023-03-22 09:42:13,515 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:1888 2023-03-22 09:42:13,519 MainThread udi_interface.interface WARNING interface:start: No node server version specified. Using deprecated server.json version 2023-03-22 09:42:13,521 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: controller not found in database. 2023-03-22 09:42:13,523 MainThread udi_interface DEBUG Controller:init_typed: enter 2023-03-22 09:42:13,525 MainThread udi_interface.custom INFO custom:_save: Sending data customtypedparams to Polyglot. 2023-03-22 09:42:13,526 MainThread udi_interface DEBUG Controller:init_typed: exit 2023-03-22 09:42:13,528 MainThread udi_interface.custom INFO custom:_save: Sending data notices to Polyglot. 2023-03-22 09:42:13,529 MainThread udi_interface.interface INFO interface:addNode: Adding node Notification Controller(controller) [None] 2023-03-22 09:42:13,536 MainThread udi_interface.interface INFO interface:setController: Using node "controller", driver "ST" for connection status. 2023-03-22 09:42:13,598 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-03-22 09:42:13,599 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:2c:34_15 - MID: 1 Result: 0 2023-03-22 09:42:13,610 MQTT udi_interface.interface ERROR interface:_startMqtt: MQTT Connection SSLError: EOF occurred in violation of protocol (_ssl.c:2488), Will retry in a few seconds. Traceback (most recent call last): File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 530, in _startMqtt self._mqttc.loop_forever() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1181, in _loop rc = self.loop_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1577, in loop_write rc = self._packet_write() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2464, in _packet_write write_length = self._sock_send( File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 649, in _sock_send return self._sock.send(buf) File "/usr/local/lib/python3.9/ssl.py", line 1174, in send return self._sslobj.write(data) ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2488) 2023-03-22 09:42:16,694 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2023-03-22 09:42:16,695 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:53:2c:34_15 - MID: 9 Result: 0 2023-03-22 09:42:16,697 MQTT udi_interface.interface ERROR interface:_startMqtt: MQTT Connection error: An exception of type RuntimeError occurred. Arguments: ('threads can only be started once',) Traceback (most recent call last): File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 530, in _startMqtt self._mqttc.loop_forever() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3039, in _packet_handle return self._handle_connack() File "/var/polyglot/.local/lib/python3.9/site-packages/paho/mqtt/client.py", line 3138, in _handle_connack on_connect( File "/var/polyglot/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 322, in _connect self._outThread.start() File "/usr/local/lib/python3.9/threading.py", line 894, in start raise RuntimeError("threads can only be started once") RuntimeError: threads can only be started once
Jimbo.Automates Posted March 22, 2023 Posted March 22, 2023 It's really hard to read a log inserted directly in a post, please edit the post and inset the log as code using the "<>" icon in the forum, or just attach it. May need help from @bpwwer to debug this. 1
macjeff Posted March 22, 2023 Author Posted March 22, 2023 I rebooted again and its working I downloaded a log file earlier so see if this helps. Notification_3-22-2023_73720-AM.zip 1
Jimbo.Automates Posted March 22, 2023 Posted March 22, 2023 I rebooted again and its working I downloaded a log file earlier so see if this helps. Notification_3-22-2023_73720-AM.zipThis looks similar to an issue that @bpwwer is looking into.Sent from my Pixel 6 Pro using Tapatalk 1
macjeff Posted March 22, 2023 Author Posted March 22, 2023 I reported it to him @bpwwer in PM. Just so you know I reported I am having issues where some nodeservers say PRODUCTION with no version. Restarting PG3 brings back the version. He said its a known issue and as real updates come out they will be fixed as its part of the code that needs to be added to each nodeserver not pg3. But this AM, I had 3 nodeservers with update needed message and notification was one of them. BUT they were already up to date. And checking the store showed no update in last day or so and I check daily for updates. So I went ahead and restarted the three nodeservers. The version number reappeared and message went away. But 2 min later one of them came back. So I restarted pg3. Now all of them show versions and no update message. But Notifcation said failed and airthings said failed too. So I rebooted again. Notification was working then but airthings still said failed. I left it and went out and came back and airthings message changed. It now said my poll was 60 and needs to be 120 so I changed poll to 180 and its working now. So for now its all working but wanted to let you know the chain of events.
Jimbo.Automates Posted March 22, 2023 Posted March 22, 2023 Yes, the version issue is understood and no reason to keep restarting mode servers just for that issue. Bob and I had discussed that issue before you reported it, and as he mentioned in another post it is fixed in the new interface but will take a while to propagate to all installations.Sent from my Pixel 6 Pro using Tapatalk 1
macjeff Posted March 22, 2023 Author Posted March 22, 2023 I did not realize it would also report false updates so from now on I will sort the store by date and if the date shows a recent update then I will update.
Recommended Posts