Jump to content

Disconnect error and slow response


glarsen

Recommended Posts

Posted (edited)

I am running on polisy still (eisy is in the mail 🙂), PG3 3.1.16 and ELK 3.5.7.  Since the upgrade to 3.5.7 and to library version 2.2.1 I see this in the Node Server log frequently:

023-01-13 06:42:17,479 Thread-4691 elkm1_lib.connection WARNING  connection:disconnect: ElkM1 at elk://elkm1g.internal.home disconnecting 
2023-01-13 06:42:17,489 Thread-4691 udi_interface      ERROR    udi_interface:write: Exception in thread
2023-01-13 06:42:17,490 Thread-4691 udi_interface      ERROR    udi_interface:write: Thread-4691
2023-01-13 06:42:17,491 Thread-4691 udi_interface      ERROR    udi_interface:write: :
2023-01-13 06:42:17,492 Thread-4691 udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2023-01-13 06:42:17,493 Thread-4691 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
2023-01-13 06:42:17,497 Thread-4691 udi_interface      ERROR    udi_interface:write: self.run()
2023-01-13 06:42:17,498 Thread-4691 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run
2023-01-13 06:42:17,501 Thread-4691 udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2023-01-13 06:42:17,502 Thread-4691 udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/000db952bff4_3/nodes/Controller.py", line 593, in stop
2023-01-13 06:42:17,506 Thread-4691 udi_interface      ERROR    udi_interface:write: self.elk_stop()
2023-01-13 06:42:17,507 Thread-4691 udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/000db952bff4_3/nodes/Controller.py", line 571, in elk_stop
2023-01-13 06:42:17,509 Thread-4691 udi_interface      ERROR    udi_interface:write: self.elk.disconnect()
2023-01-13 06:42:17,510 Thread-4691 udi_interface      ERROR    udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/elkm1_lib/elk.py", line 141, in disconnect
2023-01-13 06:42:17,512 Thread-4691 udi_interface      ERROR    udi_interface:write: self._connection.disconnect()
2023-01-13 06:42:17,513 Thread-4691 udi_interface      ERROR    udi_interface:write: File "/var/polyglot/.local/lib/python3.9/site-packages/elkm1_lib/connection.py", line 178, in disconnect
2023-01-13 06:42:17,516 Thread-4691 udi_interface      ERROR    udi_interface:write: if asyncio.current_task() != task:
2023-01-13 06:42:17,516 Thread-4691 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/asyncio/tasks.py", line 38, in current_task
2023-01-13 06:42:17,520 Thread-4691 udi_interface      ERROR    udi_interface:write: loop = events.get_running_loop()
2023-01-13 06:42:17,521 Thread-4691 udi_interface      ERROR    udi_interface:write: RuntimeError
2023-01-13 06:42:17,521 Thread-4691 udi_interface      ERROR    udi_interface:write: :
2023-01-13 06:42:17,522 Thread-4691 udi_interface      ERROR    udi_interface:write: no running event loop
2023-01-13 06:42:35,621 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2023-01-13 06:42:38,656 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.51 Starting...

This happened this morning when disarming the ELK.  The response from commands is also somewhat slower, maybe 2 or 3 seconds after sending them the ELK responds.

The node server appears to recover as it seems a restart happens.

The loglevel was only set to ERROR when this ocurred.  I'll set it to debug and see what else is shown.

Edit: I just noticed that the same error occurs at the point a manual stop or restart is issued to the node server.

Edited by glarsen
Posted (edited)

Yes, those ERRORS happen when node server is stopped or restarted, I need to figure out fix, but it shouldn't cause an issue.

Interesting that you are seeing a delay on Polisy, we are seeing that on eisy but hadn't seen an issue on Polisy.

You say library version 2.2.1, is it for this?
[admin@polisy ~]$ sudo -u polyglot pip list | grep elk
elkm1-lib             2.1.0

The node server doesn't support 2.2.0 or above, and specifically excludes that from the install so not sure how that happened?

Edit: and besides that issue, I am running the same versions on both my Polisy's and see no delay.

Edited by Jimbo.Automates
Posted

Yes, definitely elkm1-lib 2.2.1. It happened when I did a polisy upgrade last week.  I'll have to see if I can roll it back.

 

The delay I'm seeing is much shorter than what those reporting it on the eisy say.

Guest
This topic is now closed to further replies.

×
×
  • Create New...