Traceback (most recent call last):
File "<string>", line 30, in <module>
File "/usr/local/lib/python3.10/dist-packages/sorunlib/smurf.py", line 209, in take_bgmap
check_response(resp)
File "/usr/local/lib/python3.10/dist-packages/sorunlib/_internal.py", line 35, in check_response
raise RuntimeError(error)
RuntimeError: Task failed to complete successfully.
OCSReply: OK : Operation "take_bgmap" is currently not running (FAILED).
take_bgmap[session=541]; status=done with ERROR 61.2 s ago, took 4.6 s
messages (4 of 4):
1698922951.696 Status is now "starting".
1698922951.699 Status is now "running".
1698922956.276 CRASH: [Failure instance: Traceback: <class 'UnboundLocalError'>: local variable 'init_current_mode' referenced before assignment
/usr/lib/python3.8/threading.py:932:_bootstrap_inner
/usr/lib/python3.8/threading.py:870:run
/usr/local/lib/python3.8/dist-packages/twisted/_threads/_threadworker.py:47:work
/usr/local/lib/python3.8/dist-packages/twisted/_threads/_team.py:182:doWork
--- <exception caught here> ---
/usr/local/lib/python3.8/dist-packages/twisted/python/threadpool.py:244:inContext
/usr/local/lib/python3.8/dist-packages/twisted/python/threadpool.py:260:<lambda>
/usr/local/lib/python3.8/dist-packages/twisted/python/context.py:117:callWithContext
/usr/local/lib/python3.8/dist-packages/twisted/python/context.py:82:callWithContext
/usr/local/lib/python3.8/dist-packages/socs/agents/pysmurf_controller/agent.py:654:take_bgmap
/usr/local/src/pysmurf/python/pysmurf/client/util/pub.py:50:wrapper
/sodetlib/sodetlib/operations/bias_steps.py:1067:take_bgmap
/usr/local/src/pysmurf/python/pysmurf/client/util/pub.py:50:wrapper
/sodetlib/sodetlib/operations/bias_steps.py:1205:take_bias_steps
]
1698922956.284 Status is now "done".
other keys in .session: op_code, data
From a crash last night on satp1 it looks like
operations.bias_steps.take_bias_stepssometimes fails in this try block and hits anUnboundLocalErrordue to the variableinit_current_modenot being set when an exception is raised during the try:sodetlib/sodetlib/operations/bias_steps.py
Lines 1169 to 1209 in c7bc197
The full traceback: