BUG: Connection closed without apparent cause, and resulted in constant output date.

Unexplained closing of the connection between fridge and DecsVisa.

An Application Error was logged, but process was still running afterwards. Last log line says a new WAMP Component was started, but no new connection to the fridge was established.

From this point onward, CryoAgent was outputting constant values for a few days. Not sure if that is an issue in DecsVisa or in CryoAgent.

Either:

  • CryoAgent buffers the last value read from the Proteox Driver.
  • DecsVisa buffers the last value read from the fridge, but fails to reconnect and resume measurement.
2025-02-27 14:04:37,628 - decsvisa.processes.tcp - INFO - Listening on (127.0.0.1, 33577)
2025-02-27 14:04:37,722 - decsvisa.processes.wamp - INFO - Started WAMPComponent
2025-02-27 14:04:37,738 - decsvisa.utils.wamp.component - INFO - WAMP connection made
2025-02-27 14:04:37,738 - decsvisa.utils.wamp.component - INFO - Starting WAMP-CRA authentication on realm 'ucss' as user 'API_Controller_1'
2025-02-27 14:04:37,738 - decsvisa.utils.wamp.component - INFO - Established session: 118
2025-02-27 14:04:37,738 - decsvisa.utils.wamp.component - INFO - Ready to process WAMP RPCs
2025-02-27 14:04:38,050 - decsvisa.processes.tcp - INFO - Accepted connection from ('127.0.0.1', 58257)
2025-02-28 04:44:04,684 - decsvisa.utils.wamp.component - INFO - Leaving WAMP session: wamp.close.transport_lost
2025-02-28 04:44:04,699 - decsvisa.utils.wamp.component.WAMPComponent - WARNING - session closed with reason wamp.close.transport_lost [WAMP transport was lost without closing the session 118 before]
2025-02-28 04:44:04,699 - decsvisa.utils.wamp.component.WAMPComponent - INFO - Cancelling 1 outstanding requests
2025-02-28 04:44:04,699 - decsvisa.utils.wamp.component - INFO - Stopping WAMP event_loop
2025-02-28 04:44:04,699 - asyncio - ERROR - Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<WAMPComponent.onJoin() running at C:\decs-visa\.venv\Lib\site-packages\decsvisa\utils\wamp\component.py:124> wait_for=<Future finished exception=ApplicationError('WAMP transport was lost without closing the session 118 before')>>
2025-02-28 04:44:04,699 - decsvisa.utils.wamp.component - INFO - WAMP closing session
2025-02-28 04:44:04,715 - decsvisa.utils.wamp.component.WAMPComponent - WARNING - session is not joined on a realm - no session to leave
2025-02-28 04:44:04,715 - asyncio - ERROR - Future exception was never retrieved
future: <Future finished exception=ApplicationError('WAMP transport was lost without closing the session 118 before')>
autobahn.wamp.exception.ApplicationError: ApplicationError(error=<wamp.close.transport_lost>, args=['WAMP transport was lost without closing the session 118 before'], kwargs={}, enc_algo=None, callee=None, callee_authid=None, callee_authrole=None, forward_for=None)
2025-02-28 04:44:04,715 - decsvisa.processes.wamp - INFO - Stopped WAMPComponent
2025-02-28 04:44:04,715 - decsvisa.processes.wamp - INFO - Started WAMPComponent