Skip to content

Unhandled exception in labjack agent #977

@BrianJKoopman

Description

@BrianJKoopman

This occurs on the tiltmeter labjacks on the LAT. Not sure the cause, but we should catch and handle the exception and retry.

2026-02-01T16:04:44+0000 start called for acq
2026-02-01T16:04:44+0000 acq:1 Status is now "starting".
2026-02-01T16:04:44+0000 init_labjack:0 LabJack module initialized.
2026-02-01T16:04:44+0000 init_labjack:0 Status is now "done".
2026-02-01T16:04:44+0000 acq:1 Status is now "running".
2026-02-01T16:04:44+0000
Stream started with a scan rate of 1.0 Hz.
2026-02-01T23:44:14+0000 acq:1 CRASH: [Failure instance: Traceback: <class 'labjack.ljm.ljm.LJMError'>: LJM library error code 1263 LJME_NO_RESPONSE_BYTES_RECEIVED
/opt/venv/lib/python3.10/site-packages/twisted/python/threadpool.py:269:inContext
/opt/venv/lib/python3.10/site-packages/twisted/python/threadpool.py:285:<lambda>
/opt/venv/lib/python3.10/site-packages/twisted/python/context.py:117:callWithContext
/opt/venv/lib/python3.10/site-packages/twisted/python/context.py:82:callWithContext
/opt/venv/lib/python3.10/site-packages/ocs/ocs_agent.py:984:_running_wrapper
/opt/venv/lib/python3.10/site-packages/socs/agents/labjack/agent.py:339:acq
/opt/venv/lib/python3.10/site-packages/labjack/ljm/ljm.py:1331:eStreamRead
]
2026-02-01T23:44:14+0000 acq:1 Status is now "done".

socs version: v0.5.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions