TC400 agent crash when disconnected
Open
Nobody has claimed this yet.
agent: pfeiffer tc400
bug
- Dominant language
- Python
- Stars
- 17
- Forks
- 20
- Avg merge
- 1h 22m
- Merged PRs (30d)
- 2
Description
During a network outage this occurs in the agent:
1772556455110 2026-03-03T16:47:35+0000 Error in collecting data: gauge response too short to be valid
1772556458109 2026-03-03T16:47:38+0000 Error in collecting data: gauge response too short to be valid
1772556461112 2026-03-03T16:47:41+0000 Error in collecting data: gauge response too short to be valid
1772556464116 2026-03-03T16:47:44+0000 Error in collecting data: gauge response too short to be valid
1772556466504 2026-03-03T16:47:46+0000 acq:1 CRASH: [Failure instance: Traceback: <class 'serial.serialutil.SerialException'>: read failed: [Errno 113] No route to host
1772556466504 /opt/venv/lib/python3.10/site-packages/twisted/python/threadpool.py:269:inContext
1772556466504 /opt/venv/lib/python3.10/site-packages/twisted/python/threadpool.py:285:<lambda>
1772556466504 /opt/venv/lib/python3.10/site-packages/twisted/python/context.py:117:callWithContext
1772556466504 /opt/venv/lib/python3.10/site-packages/twisted/python/context.py:82:callWithContext
1772556466504 /opt/venv/lib/python3.10/site-packages/ocs/ocs_agent.py:984:_running_wrapper
1772556466504 /opt/venv/lib/python3.10/site-packages/socs/agents/pfeiffer_tc400/agent.py:131:acq
1772556466504 /opt/venv/lib/python3.10/site-packages/socs/agents/pfeiffer_tc400/drivers.py:64:get_turbo_drive_voltage
1772556466504 /opt/venv/lib/python3.10/site-packages/pfeiffer_vacuum_protocol/pfeiffer_vacuum_protocol.py:38:_read_gauge_response
1772556466504 /opt/venv/lib/python3.10/site-packages/serial/urlhandler/protocol_socket.py:178:read
1772556466504 ]
1772556466504 2026-03-03T16:47:46+0000 acq:1 Status is now "done".
socs version: v0.5.8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading socs/agents/pfeiffer_tc400/agent.py and drivers.py, then trace the failing call into pfeiffer_vacuum_protocol._read_gauge_response. Reproduce a network outage and observe the SerialException path. Done means the TC400 agent handles the disconnected device without crashing its acquisition task.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100